ozwillo / ozwillo-doc

Ozwillo platform documentation
0 stars 1 forks source link

Ozwillo documentation contributions

The doc is served on doc.ozwillo.com Follow modifications on the github served gh-pages branch on twitter @OzwilloDev

Installation

The documentation website is processed by Jekyll and served thanks to Github Pages. Please follow the installation instructions here.

When installing gems, you might prefer to install them locally thanks to:

bundle install --path vendor/bundle

Launch Jekyll

To launch Jekyll and process assets:

bundle exec jekyll serve

Using Docker

As an alternative to installing Jekyll locally, you can also use Docker and Compose. A docker-compose.yml is provided so all you have to do is:

docker-compose up

and Jekyll will run the site and watch for file changes to automatically rebuild it.

Staying up-to-date

Whether you use Ruby Gems or Docker, it's important to stay up-to-date with GitHub's versions of Jekyll and its plugins, so make sure to regularly run:

bundle update github-pages

or, if you opted for Docker:

docker-compose pull

Specifics

Processing markdown

It seems including markdown files from index.html with {% include my-file.md %} just does a raw paste without processing the markdown. That's why we use (see in index.html) this syntax:

{% capture inc0 %}{% include 0-welcome.md %}{% endcapture %}{{ inc0 | markdownify }}

See more about this issue here.

Provide DOM class and id

Kramdown is used so that we can add class and id on created DOM elements. For example to generate a <p class="focus">paragraph</p>:

paragraph
{: .focus}

More info here.

Credits

The styling and behavior of the documentation is deeply inspired by meteor docs. The CSS relies on normalize and typeplate.

TODO

Documentation conventions

Shorts lists items do not end with punctuation marks:

Longer ones (those that contains several sentences) do:

Discussion

For the moment the documentation relies on the following choices, that needs to be discussed: