We use Jekyll to build our documentation site using Markdown, and we host it by pushing the code to GitHub Pages.
This repository is exclusively for the Aleph Documentation.
The Jekyll Theme used for this documentation was Edition Jekyll Template develop by CloudCannon and it can be found in this repository.
- Ruby (If you are developing in OSX, install Ruby with RVM instead of Homebrew to avoid issues with some gems)
- Bundler (A Ruby gem)
- Clone this repository.
- On the root of the project run
bundle install
.
To generate the files locally and preview them, run bundle exec jekyll serve
.
The Pull Request should be merge to a version branch instead of the master branch.
To add content to the documentation site:
- Under the folder
_docs
, select a category to add new content or create a new one. - Create a documentation page using Markdown.
- Use, at least, the following Front Matter configuration.
---
title: Title of the page
category: Category
order: 1 # The index of the page
---
- Create a new post in
_posts
with the name "YYYY-MM-DD-title". It must specify the author and what was added. - Generate the files to preview them.
- If it generates as expected, create a Pull request to add the content.
- Select a Markdown file from the
_docs
folder. - Update its content.
- Create a new post in
_posts
with the name "YYYY-MM-DD-title". It must specify the author, what was updated and the type of the update(major or minor). - Generate the files to preview them.
- If it generates as expected, create a Pull request to update the content.