π DocumentationΒΆ
βGood documentation is like a good joke: it needs no explanation.β β Unknown
Seedling includes comprehensive documentation tooling with Sphinx and modern documentation practices.
OverviewΒΆ
The template provides:
Sphinx: Professional documentation generator
Furo theme: Modern, responsive documentation theme
MyST parser: Markdown support for Sphinx
API documentation: Automatic API documentation
Search functionality: Full-text search
Documentation StructureΒΆ
docs/
βββ source/ # Source files
β βββ index.md # Main documentation index
β βββ contributing.md # Contributing guide
β βββ _static/ # Static assets
βββ build/ # Built documentation
βββ pyproject.toml # Documentation dependencies
Building DocumentationΒΆ
# Build documentation
just docs
# or
nox -s docs
# or
uv run sphinx-build -W docs/source docs/build
# Serve locally (after building)
cd docs/build/html
python -m http.server 8000
Writing DocumentationΒΆ
Markdown SupportΒΆ
Use MyST Markdown with Sphinx extensions:
# Your Documentation
## Code Examples
```python
def example_function():
return "Hello, World!"
Cross-ReferencesΒΆ
See βοΈ Configuration Guide for template configuration options and π Examples for usage examples.
### API Documentation
Automatic API documentation with autodoc:
```markdown
# API Reference
## Core Module
```{eval-rst}
.. automodule:: your_package.core
:members:
:undoc-members:
:show-inheritance:
## Configuration
### Sphinx Configuration
```python
# docs/source/conf.py
extensions = [
"sphinx.ext.autodoc",
"sphinx.ext.napoleon",
"myst_parser",
]
html_theme = "furo"
MyST ExtensionsΒΆ
myst_enable_extensions = [
"colon_fence",
"deflist",
"dollarmath",
"html_admonition",
"html_image",
"replacements",
"smartquotes",
"substitution",
"tasklist",
]
Best PracticesΒΆ
Write clear, concise documentation
Include code examples
Use cross-references
Test all links
Keep documentation up to date
DeploymentΒΆ
GitHub PagesΒΆ
The template includes automatic documentation deployment:
Automatic builds: Documentation is built and deployed on every commit
GitHub Pages: Automatically publishes to your projectβs GitHub Pages site
Branch protection: Only deploys from the main branch
Custom domain support: Can be configured to use a custom domain
Version history: Maintains documentation history across releases
Next StepsΒΆ
Customize the theme for your brand
Add more documentation sections
Set up automatic deployment
Integrate with your CI/CD pipeline