When adding content to the documentations maintain the document structure used in docs folder. To include a new file or content into the documentation, edit the mkdocs.yml file.
As an example consider adding a new 'example.md' file residing in file path './docs/learn' in to the mkdocs.yml file, under the 'for_contributors' subsection. The file should change as following.
...
nav:
...
- ~/learn$:
...
- ~/for_contributors:
...
- 'learn/example.md'
...
...To open a preview of the mkdocs server locally, following steps should be followed.
-
Install necessaries such as pygments and jaclang syntax highlighting from source.
cd docs pip install -e .
-
Bash the following lines to initiate the server.
mkdocs serve
-
When prompted open the server from a web browser or the VS Code editor itself.