Skip to content

Commit

Permalink
Add documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
yousinix committed Feb 16, 2019
1 parent e4be6a9 commit fffd304
Show file tree
Hide file tree
Showing 7 changed files with 217 additions and 64 deletions.
75 changes: 12 additions & 63 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,69 +10,18 @@
<sub><sup>© 2019 portfolYOU, licensed under the <a href="./LICENSE">MIT License</a>.</sup></sub>
</div>

## Download & Usage
## Installation

1. Clone or [Download][download] this repo.
1. Delete unnecessary files and folders:
- README.md
- LICENSE
- docs/
1. Change the configuration options in `_config.yml` depending on your needs.
1. Add `project-name.md` to `_projects` directory to add a new project.
1. Add `YYYY-MM-DD-article-name.md` to `_posts` directory to add a new article.
1. Modify `_data/` files to add new skills or items to the timeline.
1. Modify `pages/about.md` to write your own bio.
1. Set up portfolYOU [locally] or publish it to [GitHub Pages][gh-pages].
Just check the [Documentation](https://youssefraafatnasry.github.io/portfolYOU/docs).

[download]: https://github.com/YoussefRaafatNasry/portfolYOU/archive/master.zip
[gh-pages]: https://help.github.com/articles/configuring-a-publishing-source-for-github-pages/
[locally]: https://help.github.com/articles/setting-up-your-github-pages-site-locally-with-jekyll/
## Contributing

## Sections

portfolYOU's sections are **independent**, you can remove any section upon your needs. Here's a list of the files and folders needed by each section:

| Projects | Articles | About |
| :--------- | :--------- | :--------- |
| pages/projects.html | pages/articles.html | pages/about.md |
| _includes/projects.html | _includes/articles.html | _includes/skills.html |
| _sass/projects.scss ¹ | _sass/_articles.scss ¹ | _includes/timeline.html |
| assets/js/card-animation.js ² | _layouts/post.html | _sass/_skills.scss ¹ |
| _projects/ ³ | _posts/ ⁴ | _sass/_timeline.scss ¹ |
| | | _data/ |

<small>
<b>If you are deleting any section, please consider the following:</b><br>
¹ remove reference from <code> _sass/portfolYOU.scss </code><br>
² remove reference from <code> _includes/scripts.html </code><br>
³ remove collections and defaults from <code> _config.yml </code><br>
⁴ remove posts default permalink from <code> _config.yml </code>
</small>

## Dependencies

| Dependency | Version |
| :-------------------------- |:-------:|
| [Animate.css][animate] | v3.7.0 |
| [Bootstrap][bootstrap] | v4.3.1 |
| [FontAwesome][font-awesome] | v5.6.3 |
| [jQuery][jquery] | v3.3.1 |
| [Popper.js][popper] | v1.14.6 |
| [wow.js][wow] | v1.1.2 |

[animate]: https://daneden.github.io/animate.css/
[bootstrap]: https://getbootstrap.com/
[font-awesome]: https://fontawesome.com/
[jquery]: https://jquery.com/
[popper]: https://popper.js.org/
[wow]: https://wowjs.uk/

## Credits & Inspiration

1. [CSS3 Animated Skill Progress bar][skills-progress-bar] _A pen by Shah Zobayer Ahmed._
1. [How to Create Bootstrap Card Hover Effect (jQuery)][cards-hover] _A video by Daily Tuition._
1. [Vertical Timeline (HTML-SCSS-CSS)][vertical-timeline] _A video by DevPen._

[skills-progress-bar]: https://codepen.io/speeedsam/pen/VeOGEq
[cards-hover]: https://www.youtube.com/watch?v=2qQxwT-Qm5E
[vertical-timeline]: https://www.youtube.com/watch?v=TP4THzsAa3M&t=2s
1. [Fork]({{ site.repo }}/fork) and clone the repository.
1. Create a new branch based on `master`: `git checkout -b <my-branch-name>`
1. Make your changes, and make sure the site still builds.
1. Push to your fork and [submit a pull request]({{ site.repo }}/compare) from your branch to `master`
1. Pat yourself on the back and wait for your pull request to be reviewed.
1. *Here are a few things you have to do:*
- Write a good commit message.
- Follow the style guide where possible.
- Keep your change as focused as possible. If there are multiple changes you would like to make that are not dependent upon each other, consider submitting them as separate pull requests.
2 changes: 1 addition & 1 deletion _sass/_articles.scss
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@
}
}

a:not(.btn):not([class^="carousel-"]) {
a:not(.btn):not([class^="carousel-"]):not([class^="list-"]) {
display: inline-block;
text-decoration: none;

Expand Down
Binary file removed docs/0.jpg
Binary file not shown.
Binary file removed docs/1.jpg
Binary file not shown.
Binary file removed docs/2.jpg
Binary file not shown.
Binary file removed docs/3.jpg
Binary file not shown.
204 changes: 204 additions & 0 deletions docs/docs.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,204 @@
---
layout: page
title: Docs
permalink: /docs/
weight: 4
---

# **About portfolYOU**

portfolYOU is a free modern open-source Jekyll portfolio and blogging theme that works with GitHub Pages. Created by [@YoussefRaafatNasry](https://github.com/YoussefRaafatNasry)

<div class="list-group">
<a href="#installation" class="list-group-item list-group-item-action">Installation</a>
<a href="#sections" class="list-group-item list-group-item-action">Sections</a>
<a href="#customization" class="list-group-item list-group-item-action">Customization</a>
<a href="#adding-content" class="list-group-item list-group-item-action">Adding Content</a>
<a href="#dependencies" class="list-group-item list-group-item-action">Dependencies</a>
<a href="#credits" class="list-group-item list-group-item-action">Credits</a>
</div>

## Installation

#### As a GitHub Pages remote theme

1. [Download][download] portfolYOU as .zip from official [repo][repo] then extract the files.
1. Add the following line to the **build settings** section of `_config.yml`:

```yaml
remote_theme: YoussefRaafatNasry/portfolYOU
```
or to use a specific [version][versions]:
```yaml
remote_theme: YoussefRaafatNasry/[email protected]
```
1. Delete unnecessary files and folders: `README.md`, `LICENSE`, `docs/`
1. Delete theme directories, _as they will be included remotely_ : `_includes/`, `_layouts/`, `_sass/`, `assets/`
1. Delete `Gemfile` and `.gitignore` if you aren't going to set up the theme [locally].
1. Change the configuration options in `_config.yml` depending on your needs.
1. Set up portfolYOU [locally] or publish it to [GitHub Pages][gh-pages].

#### Using as Fork

1. [Fork][fork] the [repo][repo]
1. Clone or [Download][download] your fork.
1. Delete unwanted **sections**.
1. Modify and edit file contents upon your needs.
1. Set up portfolYOU [locally] or publish it to [GitHub Pages][gh-pages].

[repo]: {{ site.repo }}
[fork]: {{ site.repo }}/fork
[download]: {{ site.repo }}/archive/master.zip
[versions]: {{ site.repo }}/releases
[locally]: https://help.github.com/articles/setting-up-your-github-pages-site-locally-with-jekyll/
[gh-pages]: https://help.github.com/articles/configuring-a-publishing-source-for-github-pages/

## Sections

portfolYOU's sections are **independent**, you can remove any section upon your needs. Here's a list of the files and folders needed by each section:

| Projects | Articles | About |
| :--------- | :--------- | :--------- |
| pages/projects.html | pages/articles.html | pages/about.md |
| _includes/projects.html | _includes/articles.html | _includes/skills.html |
| _sass/projects.scss ¹ | _sass/_articles.scss ¹ | _includes/timeline.html |
| assets/js/card-animation.js ² | _layouts/post.html | _sass/_skills.scss ¹ |
| _projects/ ³ | _posts/ ⁴ | _sass/_timeline.scss ¹ |
| | | _data/ |

<small class="text-muted">
<b>If you are deleting any section, please consider the following:</b><br>
¹ remove reference from <code> _sass/portfolYOU.scss </code><br>
² remove reference from <code> _includes/scripts.html </code><br>
³ remove collections and defaults from <code> _config.yml </code><br>
⁴ remove posts default permalink from <code> _config.yml </code>
</small>

## Customization

When using portfolYOU as a theme means you can take advantage of the file overriding method. This allows you to overwrite any file in this theme with your own custom file, simply by matching the file name and path. The most common example of this would be if you want to add your own styles or change the favicon.
To change the favicon for example just generate your own using [favicon](https://favicon.io/) or any other tool. Copy your new `favicon.ico` file into your own project with the same file path `assets/favicon.ico`.

## Adding Content

#### Adding new Projects

1. Add `project-name.md` or `project-name.html` to `_projects/`.
1. Add [front matter](https://jekyllrb.com/docs/front-matter/) to the top of your new project file.

```yaml
---
name: Awesome Project
tools: [Tool1, Tool2]
direct_link: project url or leave empty to create individual page for the project when clicked.
image: image url or path here.
description: Write project description here.
---
```

1. If you left `direct_link` empty, then add project body in markdown or html. Check available [elements]({{ '/articles/elements' | relative_url }}) to enjoy extra customization.
1. Check more projects templates from [here]({{ site.repo }}/tree/master/_projects).

#### Adding new Article

1. Add `YYYY-MM-DD-article-name.md` to `_posts/`.
1. Add [front matter](https://jekyllrb.com/docs/front-matter/) to the top of your new article file.

```yaml
---
title: Awesome Title
tags: [TAG 1, TAG 2]
style: fill / border (choose one only)
color: primary / secondary / success / danger / warning / info / light / dark (choose one only)
description: Write article description here, if you left this empty the article description will be the first 25 words of the article body.
---
```

1. If you left both the style and color empty, the article's style is set to default style.
1. Add article body in markdown or html. Check available [elements]({{ '/articles/elements' | relative_url }}) to enjoy extra customization.
1. Check more articles templates from [here]({{ site.repo }}/tree/master/_posts).

#### Adding new Page

1. Add `page-name.html` or `page-name.md` to `pages/`, `new subfolder` or to `root directory` of your project.
1. Add [front matter](https://jekyllrb.com/docs/front-matter/) to the top of your new page.

```yaml
---
layout: default
title: Page Name
permalink: /page_permalink/ (the output path for the page)
weight: 2 (the order of the page in the navigation bar)
---
```

1. The new page will be added to the navigation bar of your project.
1. Check more pages templates from [here]({{ site.repo }}/tree/master/pages).

#### Adding new Skill

- Add the following lines to `_data/programming-skills.yml` or `_data/other-skills.yml`.

```yaml
- name: Awesome Skill
percentage: 95
color: secondary / success / danger / warning / info / light / dark (choose one only, primary is default color)
```

- To add a new Skills Category:
1. Add `category_name-skills.yml` to `_data/`.
1. Add skills to the file using the previously mentioned method.
1. Open `pages/about.md`.
1. Add the following lines to the skills section between `<div class="row">` and `</div>`:

```yaml
{% raw %}{% include skills.html title="Category_Name Skills" source=site.data.category_name-skills %}{% endraw %}
```

#### Adding new Timeline Item

Add the following lines to `_data/timeline.yml`.

```yaml
- title: Awesome Item
from: 2016
to: 2018
description: Write item description here.
```

## Dependencies

| Dependency | Version |
| :-------------------------- |:-------:|
| [Animate.css][animate] | v3.7.0 |
| [Bootstrap][bootstrap] | v4.3.1 |
| [FontAwesome][font-awesome] | v5.6.3 |
| [jQuery][jquery] | v3.3.1 |
| [Popper.js][popper] | v1.14.6 |
| [wow.js][wow] | v1.1.2 |

[animate]: https://daneden.github.io/animate.css/
[bootstrap]: https://getbootstrap.com/
[font-awesome]: https://fontawesome.com/
[jquery]: https://jquery.com/
[popper]: https://popper.js.org/
[wow]: https://wowjs.uk/

## Credits

1. [CSS3 Animated Skill Progress bar][skills-progress-bar] _A pen by Shah Zobayer Ahmed._
1. [How to Create Bootstrap Card Hover Effect (jQuery)][cards-hover] _A video by Daily Tuition._
1. [Vertical Timeline (HTML-SCSS-CSS)][vertical-timeline] _A video by DevPen._

[skills-progress-bar]: https://codepen.io/speeedsam/pen/VeOGEq
[cards-hover]: https://www.youtube.com/watch?v=2qQxwT-Qm5E
[vertical-timeline]: https://www.youtube.com/watch?v=TP4THzsAa3M&t=2s

<footer>
This documentation is <b>open source</b>. Noticed a typo? <br>
Or something unclear? Improve it on
<a href="{{ site.repo }}/edit/master/{{ page.path }}">GitHub</a>.
</footer>

0 comments on commit fffd304

Please sign in to comment.