Documentation⚓︎
This repository uses Google-Style for docstrings. They are checked automatically by ruff. See quality
for more information.
API documentation⚓︎
API documentation is built with MkDocs using the Material theme. The mike package wraps MkDocs and allows versioned sets of docs to be created. To build a static copy locally and render it live on a local server, run
For a Sphinx implementation of documentation, see https://github.com/eshwen/ds-python-boilerplate/releases/tag/v0.1.1.
Extensions and plugins⚓︎
- termynal: animated code blocks similar to the FastAPI docs
- Installed as a Python package in pyproject.toml
- Added to the
pluginssection of mkdocs.yml
python hello_world.py---> Transmitting greeting...
Hello world!
Hello world!
- mkdocstrings: automatically generate API documentation from docstrings, like Sphinx's
autodoc- Installed as a Python package in pyproject.toml
- Added to the
pluginssection of mkdocs.yml - Used alongside
mkdocs-gen-filesto automatically generate pages for all Python files in the repo- The script gen_ref_pages.py generates the Markdown files to populate the API docs
- Used alongside
mkdocs-literate-navto pipe the navigation of the API docs to Markdown instead of YAML - Used alongside
mkdocs-section-indexmap the__init__.pyfiles in each directory to the corresponding section'sindex.md
TODO: Add extension and plugin descriptions.