This is the documentation repository for https://docs.open-paas.org.
To keep things clear and clean, each OP module must follow the same rules:
- Sources goes into
_docs/modules/MODULE_NAME/
- Each module has an
index.md
file introducing the module i.e._docs/modules/MODULE_NAME/index.md
- The module category is
OpenPaaS MODULE_NAME Module
- All module images are going into
images/modules/MODULE_NAME
folder. You can then access it in your markdown file like![The image caption]({{ site.url }}/images/modules/MODULE_NAME/image.png)
The Web site is built using jekyll. You can install jekyll, all its dependencies, cry, or simply run in Docker:
docker run --rm --label=jekyll --volume=$(pwd):/srv/jekyll -it -p 4000:4000 jekyll/jekyll:3 jekyll serve
Open the browser on http://localhost:4000. Once some changes on the sources are detected, Jekyll will rebuild the Web site, you will just have to refresh your browser to get the new page.
Thanks to kramdown, which is the default markdown converter in latest Jekyll version, one can add a ToC to any page just with the following block
* Here is the ToC, this line is needed to generate...
{:toc}
Note that the first line is required, it will not be displayed in the page, but ToC will not be generated if not set. For all the ToC options, have a look here.
To order categories in sidebar, prefix the category name with a number, for example in a post metadata:
---
title: Installation
category: 1. Quick start
order: 1
---
The category Quick start
then has order 1.
Please send your changes as pull-requests following the OP coding rules.
You have nothing to do... Once your code has been merged into master, the repository is built on Gitlab then deployed to gh-pages
branch on GitHub reposiroty. The Github Pages then serves the static content from gh-pages
branch.