Contribute
Contribute
Documentation
To preview GitHub Pages locally:
- Run
mise install - Run
mise run docs:dev. This will start a Jekyll live reload server - Navigate to
http://localhost:4000 - Documentation source code is located in
docsfolder.
Remote include
In order to avoid duplicated documentation, Github Pages docs are generated from Architecture docs. Assuming a variable located in docs/_data/settings.yml named content_url, the way include docs into Jekyll pages is as follows:
{% if site.data.settings.content_url %}
{% capture data_url %}{{ site.data.settings.content_url }}architecture/docs/path/to/file.md{% endcapture %}
{% remote_include {{ data_url }} %}
{% endif %}
These files need to be already located in the repository’s main branch, therefore a best practice is to add them first and then sync them in the Jekyll GH pages, to avoid build errors.