Documentation¶
This directory contains the source files for the eftoolkit documentation site.
Local Development¶
Prerequisites¶
Install documentation dependencies:
Build and Serve¶
Build Static Site¶
Deployment¶
Documentation is automatically deployed to GitHub Pages when:
- Changes are pushed to
mainbranch - A new tag/release is created
The deployment workflow is in .github/workflows/docs.yml.
Manual Deployment¶
Adding New Pages¶
- Create a new
.mdfile in the appropriate directory: getting-started/- Installation, quickstartuser-guide/- In-depth module documentationhow-to/- Recipes and patternsapi/- API reference (auto-generated)-
development/- Contributing, changelog -
Add the page to the
navsection inmkdocs.yml:
Adding API Documentation¶
API docs are auto-generated from docstrings using mkdocstrings.
To document a new class or function, add it to the appropriate docs/api/*.md file:
Versioning¶
For future versioned docs, we can use mike:
# Deploy a version
uv run mike deploy 0.1.0 latest --update-aliases
# List versions
uv run mike list
Currently, we deploy only the latest version from main.
File Structure¶
docs/
├── index.md # Home page
├── getting-started/
│ ├── installation.md
│ └── quickstart.md
├── user-guide/
│ ├── index.md
│ ├── duckdb.md
│ ├── s3.md
│ ├── gsheets.md
│ └── config.md
├── how-to/
│ └── index.md # Recipes
├── api/
│ ├── index.md
│ ├── sql.md
│ ├── s3.md
│ ├── gsheets.md
│ └── config.md
├── development/
│ ├── contributing.md
│ └── changelog.md
└── README.md # This file