Skip to main content

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

  1. Create a markdown file with frontmatter:
---
template: "python/default/module.md.jinja2"
griffe_target: "mypackage.utils"
output:
  filename: "api-utils.md"
---

# Optional content here
  1. 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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

griffonner-0.1.1.tar.gz (70.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

griffonner-0.1.1-py3-none-any.whl (9.7 kB view details)

Uploaded Python 3

File details

Details for the file griffonner-0.1.1.tar.gz.

File metadata

  • Download URL: griffonner-0.1.1.tar.gz
  • Upload date:
  • Size: 70.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for griffonner-0.1.1.tar.gz
Algorithm Hash digest
SHA256 2a6634b3c942ad85c45ebe849c99e43b51498edf5c0bb355ec74a86ada379582
MD5 b3af7f6f7ba6f74a0d40e493f35dacda
BLAKE2b-256 af10d0114deafc1379076af8b3e9d7f2f1e380d8be7dbeb9f6952c5b8dc790d1

See more details on using hashes here.

Provenance

The following attestation bundles were made for griffonner-0.1.1.tar.gz:

Publisher: cd.yml on will-langdale/griffonner

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file griffonner-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: griffonner-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 9.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for griffonner-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 4ce3e26c3475a5b06ed129e14a571c3c891f38efe36b021499996ba18572244b
MD5 45ade364d611e97a6fd00d4aab4f2bd0
BLAKE2b-256 a16cf41d821f8ce6f6c1ecff8d2ffe851a18bb9fe7b4db8e93eaccf6d40915e3

See more details on using hashes here.

Provenance

The following attestation bundles were made for griffonner-0.1.1-py3-none-any.whl:

Publisher: cd.yml on will-langdale/griffonner

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page