Skip to content

Commit

Permalink
Move gh-pages to docs/
Browse files Browse the repository at this point in the history
The files in the root directory are the gem or repository files only.
All other files related to GitHub Pages hosting are now moved to a
separate directory "docs/". The directory structure was refactored to
match the new changes.

docs/ contains two configuration files:

 - _config.yml     : used for GitHub Pages hosting.
 - _config.dev.yml : used for local development.

To run the theme locally use the following commands:

    gem build portfolyou-jekyll-theme.gemspec
    cd docs/
    bundle install
    bundle exec jekyll serve --config _config.dev.yml
  • Loading branch information
yousinix committed Jan 18, 2020
1 parent 00bbb10 commit 3500121
Show file tree
Hide file tree
Showing 80 changed files with 80 additions and 22 deletions.
3 changes: 0 additions & 3 deletions Gemfile

This file was deleted.

6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,6 @@

[![Get the theme][button]](https://youssefraafatnasry.github.io/portfolYOU/docs#installation)

[header]: https://github.com/YoussefRaafatNasry/portfolYOU/blob/master/docs/assets/Logo.png?raw=true
[preview]: https://github.com/YoussefRaafatNasry/portfolYOU/blob/master/docs/assets/Preview.gif?raw=true
[button]: https://github.com/YoussefRaafatNasry/portfolYOU/blob/master/docs/assets/Button.png?raw=true
[header]: https://github.com/YoussefRaafatNasry/portfolYOU/blob/master/imgs/Logo.png?raw=true
[preview]: https://github.com/YoussefRaafatNasry/portfolYOU/blob/master/imgs/Preview.gif?raw=true
[button]: https://github.com/YoussefRaafatNasry/portfolYOU/blob/master/imgs/Button.png?raw=true
3 changes: 3 additions & 0 deletions docs/Gemfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
source "https://rubygems.org"

gem "portfolyou-jekyll-theme", path: "../"
64 changes: 64 additions & 0 deletions docs/_config.dev.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
### Site Settings ###
title : portfolYOU-dev
description : Running in Dev Mode
baseurl : "/portfolYOU"
repository : YoussefRaafatNasry/portfolYOU
theme : portfolyou-jekyll-theme


### Navbar Settings ###
nav_exclude:
- pages/404.html
- pages/index.md
- blog/tags.html
- blog/page-:num/index.html
- pages/documentation/**


### Author Info ###
author:
name : John Doe
image : https://bit.ly/2KCvgVJ
github : your_username


### Pagination ###
paginate: 6
paginate_path: "/blog/page-:num/"


### Posts Permalink ###
permalink: blog/:title


### Collections ###
collections:
projects:
output: true
permalink: /projects/:name
elements:
output: true


### Defaults for collections ###
defaults:
- scope:
path: ""
type: "projects"
values:
layout: "page"
- scope:
path: ""
type: "elements"
values:
layout: "element"


### Plugins ###
plugins:
- jekyll-default-layout
- jekyll-gist
- jekyll-github-metadata
- jekyll-include-cache
- jekyll-paginate
- jemoji
17 changes: 5 additions & 12 deletions _config.yml → docs/_config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,16 +8,15 @@ description : >- # >- means to ignore newl
url : "" # base hostname & protocol for your site (e.g. http://example.com)
baseurl : "/portfolYOU" # subpath of your site (e.g. /blog) [IMPORTANT: use "" if your are hosting at https://username.github.io directly]
repository : YoussefRaafatNasry/portfolYOU # repository metadata on GitHub Pages [know more at https://help.github.com/en/articles/repository-metadata-on-github-pages]
#remote_theme : YoussefRaafatNasry/portfolYOU # uncomment this if you are using it as a remote theme

remote_theme : YoussefRaafatNasry/portfolYOU # uncomment this if you are using it as a remote theme

### Navbar Settings ###
nav_exclude: # Pages with the following paths will be excluded from navbar
- 404.html
- index.html
- pages/404.html
- pages/index.md
- blog/tags.html
- blog/page-:num/index.html
- docs/partials/**
- pages/documentation/**


### Author Info ###
Expand Down Expand Up @@ -60,6 +59,7 @@ collections:
elements:
output: true


### Defaults for collections ###
defaults:
- scope:
Expand All @@ -76,11 +76,6 @@ defaults:

### Plugins ###
plugins:
- jekyll-default-layout
- jekyll-gist
- jekyll-github-metadata
- jekyll-include-cache
- jekyll-paginate
- jemoji


Expand All @@ -89,6 +84,4 @@ exclude:
- README.md
- CONTRIBUTING.md
- LICENSE
- Gemfile
- portfolyou-jekyll-theme.gemspec
- "*.log"
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
1 change: 1 addition & 0 deletions 404.html → docs/pages/404.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
---
permalink: /404.html
---

<!DOCTYPE html>
Expand Down
File renamed without changes.
7 changes: 3 additions & 4 deletions docs/docs.md → docs/pages/docs.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,9 @@ weight: 5
# About portfolYOU <small class="text-muted">{{ site.github.latest_release.tag_name }}</small>
{:.no_toc}

{%- assign partials = site.static_files | where_exp:"file", "file.path contains 'docs/partials/'" -%}

{% for partial in partials %}
{% include_relative {{ partial.path | remove: '/docs/' }} %}
{%- assign docs = site.static_files | where_exp:"file", "file.path contains '/documentation/'" -%}
{% for doc in docs %}
{% include_relative {{ doc.path | remove: '/pages/' }} %}
{% endfor %}

{% include elements/github-edit-footer.html %}
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
1 change: 1 addition & 0 deletions index.html → docs/pages/index.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
---
layout: default
permalink: /
---

{% include landing.html %}
File renamed without changes.
File renamed without changes.
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes

0 comments on commit 3500121

Please sign in to comment.