Documentation
Structure of the docs
The documentation is split into three parts:
-
Tutorials
Self-contained guides that walk the reader through making a small project. Don’t explain too much, and use very simple language: take a look at the Plain English guides.
-
Reference
Function, classes, modules and their interfaces. Describe in a precise way how to interact with a particular thing.
-
For contributors
Guides for people who want to contribute to Lanim
Build the docs
- Activate the virtual environment (probably with
poetry shell
) mkdocs build -f mkdocs/mkdocs.yml
This will create a site
directory in lanim/mkdocs/site
with the HTML, CSS and JS files, ready to deploy.
Serve the docs
- Activate the virtual environment (probably with
poetry shell
) mkdocs serve -f mkdocs/mkdocs.yml
This will let you browse the docs at 127.0.0.1:8000
. It will also reload if it detects a change in the docs.
Deploy docs on github
- Activate the virtual environment (probably with
poetry shell
) mkdocs gh-deploy -f mkdocs/mkdocs.yml
This will build the docs and push them to the gh-pages
branch, so that GitHub Pages can serve it.