Documentation development
The documentation is built from the makrdown files in the /docs
directory with static site generator MkDocs.
With make
Makefile
The following commands are encoded in a Makefie in this repository: makefile
.
Serve
To serve the documentation locally, you can the serve_docs
target:
The documentation is served on http://localhost:8000/.
Build
To build the documentation, you can the build_docs
target:
The documentation is built in the /site
directory.
Deploy
To deploy the documentation to GitHub Pages, you can the deploy_docs
target:
The documentation is deployed to GitHub Pages.
By hand
In order to serve the documentation by hand follow the steps below.
Note
The commands need to be run from the root of the repository, unless stated otherwise.
- Install the documentation-related dependancies and the Python package itself with Poetry
- Document the API of the package
- Run the following command in the project root
Deploying the documentation
In order to deploy the documentation run the following command: