pycypher-nmetl

NMETL Documentation

This directory contains the Sphinx documentation for the NMETL project.

Building Documentation

To build the HTML documentation:

cd /pycypher-nmetl/docs
LC_ALL=C.UTF-8 uv run sphinx-build -b html . _build/html

Or using the Makefile:

cd /pycypher-nmetl/docs
LC_ALL=C.UTF-8 make html

Viewing Documentation

After building, open _build/html/index.html in your web browser:

$BROWSER _build/html/index.html

Documentation Structure

Adding Content

Creating a New Tutorial

  1. Create a new .rst file in tutorials/
  2. Add it to the toctree in tutorials/index.rst

Documenting a New Module

  1. Add an automodule directive in the appropriate API file
  2. Ensure the module is in the sys.path (see conf.py)

Updating API Documentation

The API documentation is automatically generated from docstrings. To update:

  1. Update docstrings in source code
  2. Rebuild the documentation

Dependencies

Sphinx documentation requires:

All dependencies are installed with the project via uv sync.

Known Issues