Skip to content

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

mkdocs serve
mike serve

For a Sphinx implementation of documentation, see https://github.com/eshwen/ds-python-boilerplate/releases/tag/v0.1.1.

Extensions and plugins⚓︎

python hello_world.py---> Transmitting greeting...
Hello world!
  • mkdocstrings: automatically generate API documentation from docstrings, like Sphinx's autodoc
    • Installed as a Python package in pyproject.toml
    • Added to the plugins section of mkdocs.yml
    • Used alongside mkdocs-gen-files to 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-nav to pipe the navigation of the API docs to Markdown instead of YAML
    • Used alongside mkdocs-section-index map the __init__.py files in each directory to the corresponding section's index.md

TODO: Add extension and plugin descriptions.