Feluda Documentation
This directory contains the documentation for Feluda, built with Sphinx and MyST-NB.
Building the Documentation
Prerequisites
Install the documentation dependencies:
uv pip install -e ".[dev]"
Build Commands
From the docs/ directory:
# Clean build directory
make clean
# Build HTML documentation
make html
Viewing the Documentation
After building with make html, you can view the documentation by opening docs/_build/html/index.html in your web browser.
Documentation Structure
index.md- Main documentation pageinstall.md- Installation guidequickstart.md- Quick start guidecontributing.md- Contributing guidelinesapi/- API documentationfeluda.md- Core Feluda APIoperators.md- Operators API
examples/- Example notebooks01_plot_tsne_videos.md- t-SNE visualization example02_plot_cluster_videos.md- Clustering example03_classify_video_zero_shot.md- Zero-shot classification example
Configuration
The documentation is configured in conf.py with the following key features:
AutoDoc: Automatically generates API documentation from docstrings
MyST-NB: Executes and displays Jupyter notebooks
Read the Docs Theme: Clean, responsive theme
Copy Button: Easy code copying
Design Components: Enhanced UI components
Adding New Documentation
Adding API Documentation
Add docstrings to your Python code
Create a new
.mdfile in the appropriate directoryUse
{eval-rst}blocks with.. automodule::directives
Adding Examples
Create a Jupyter notebook in
examples/Create a corresponding
.mdfile with{nb-exec}directiveAdd the example to the main index
Adding General Pages
Create a new
.mdfileAdd it to the appropriate toctree in
index.mdUse MyST Markdown syntax for enhanced features