Documentation Guide
This guide explains how to build and contribute to the neuroLIT documentation.
Building the Documentation
Prerequisites
Install the documentation dependencies from the package:
# Using uv (recommended)
uv sync --extra doc
# Or using pip
pip install -e ".[doc]"
Build HTML
cd doc
make html
The built documentation will be in doc/_build/html/. Open doc/_build/html/index.html in your browser.
Clean Build Files
make clean
Writing Documentation
neuroLIT uses Sphinx with reStructuredText (reST) and MyST-Parser for Markdown support.
API Documentation
API documentation is auto-generated from Python docstrings using sphinx.ext.autodoc. We follow the NumPy docstring style.
Adding New Pages
Create a new
.rst(or.md) file in thedoc/directory.Add the page to the
toctreedirective inindex.rst.Rebuild the documentation to preview changes.