A templating tool for Griffe.
Project description
Griffonner
Template-first Python documentation generator that gets out of your way.
From French "griffonner" (to scribble/draft) - because Griffe finds it, you sketch it out
Quick start
- Create a markdown file with frontmatter:
---
template: "python/default/module.md.jinja2"
griffe_target: "mypackage.utils"
output:
filename: "api-utils.md"
---
# Optional content here
- Generate documentation:
pip install griffonner
griffonner generate docs/pages/
That's it! Griffonner uses Griffe to parse your Python code and Jinja2 templates to generate docs in any format you want.
Features
- Zero opinions - You control output format through templates
- Frontmatter-driven - Configuration in your markdown files
- Template ecosystem - Share and reuse templates
- Format agnostic - Generate Markdown, RST, HTML, JSON, anything
Example templates
# List available templates
griffonner templates
# Generate with custom template
---
template: "python/gitlab-wiki/module.md.jinja2"
griffe_target: "myapp.database"
custom_vars:
emoji: "🗄️"
category: "Core"
---
CLI
griffonner generate docs/pages/ # Generate all
griffonner generate docs/pages/api.md # Generate one
griffonner watch docs/pages/ # Watch mode
Contributing
We use uv for dependency management and just for task running:
git clone https://github.com/yourusername/griffonner
cd griffonner
uv sync
just test # Run tests
just format # Lint and format code
just -l # See other tasks
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file griffonner-0.3.3.tar.gz.
File metadata
- Download URL: griffonner-0.3.3.tar.gz
- Upload date:
- Size: 141.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9fd6474b12f912df56090b6c9ee2df445ec32ac0dd42eaec7c8ead60a597d29d
|
|
| MD5 |
758664911c1b8d75251dbc3ac2640814
|
|
| BLAKE2b-256 |
858a0adb4aed6c26b2bbfdb0eb24b3bd333570bfa655a8610ac9780f9e6c2b91
|
Provenance
The following attestation bundles were made for griffonner-0.3.3.tar.gz:
Publisher:
cd.yml on will-langdale/griffonner
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
griffonner-0.3.3.tar.gz -
Subject digest:
9fd6474b12f912df56090b6c9ee2df445ec32ac0dd42eaec7c8ead60a597d29d - Sigstore transparency entry: 438123435
- Sigstore integration time:
-
Permalink:
will-langdale/griffonner@a15800104db903bad67cb30755ed2ce326d20fb8 -
Branch / Tag:
refs/tags/v0.3.3 - Owner: https://github.com/will-langdale
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
cd.yml@a15800104db903bad67cb30755ed2ce326d20fb8 -
Trigger Event:
release
-
Statement type:
File details
Details for the file griffonner-0.3.3-py3-none-any.whl.
File metadata
- Download URL: griffonner-0.3.3-py3-none-any.whl
- Upload date:
- Size: 29.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7af1cb2f669320e1b8946c697653602d1a41e454b9b3ef4d3acc4c8b236b904b
|
|
| MD5 |
f502b7f7414d3711ff05830d3fc1c45e
|
|
| BLAKE2b-256 |
d5ca8e7ee66c53287643d6a6712fa83ff0cfdb1e2569b37d4e79c82649a82840
|
Provenance
The following attestation bundles were made for griffonner-0.3.3-py3-none-any.whl:
Publisher:
cd.yml on will-langdale/griffonner
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
griffonner-0.3.3-py3-none-any.whl -
Subject digest:
7af1cb2f669320e1b8946c697653602d1a41e454b9b3ef4d3acc4c8b236b904b - Sigstore transparency entry: 438123457
- Sigstore integration time:
-
Permalink:
will-langdale/griffonner@a15800104db903bad67cb30755ed2ce326d20fb8 -
Branch / Tag:
refs/tags/v0.3.3 - Owner: https://github.com/will-langdale
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
cd.yml@a15800104db903bad67cb30755ed2ce326d20fb8 -
Trigger Event:
release
-
Statement type: