Documentation Setup
This directory contains Sphinx documentation for eml2pdf.
Quick Start
Install dependencies:
pip install -e ".[dev]" # or just docs dependencies: pip install -e ".[docs]"
Build documentation:
poe docsView documentation:
Open
docs/_build/html/index.htmlin your browserOr run
poe docs-serveto view at http://localhost:8000
Structure
conf.py- Sphinx configurationindex.rst- Main documentation pageapi.rst- Auto-generated API documentation from docstrings*.rst- Other doc pages, only included if added to the toctree in index.rst._build/- Generated documentation (gitignored)_static/- Static files for documentation
Configuration Highlights
Theme: Read the Docs theme (
sphinx_rtd_theme)Extensions:
autodoc- Auto-generate docs from docstringsnapoleon- Google/NumPy docstring supportviewcode- Link to source codemyst_parser- Markdown file support
Rebuilding
After updating docstrings or documentation files:
poe docs
To clean and rebuild:
poe docs-clean
poe docs