Configuration
plissken is configured via plissken.toml in your project root.
Full Configuration Reference
Section titled “Full Configuration Reference”[project]# Project name (inferred from Cargo.toml or pyproject.toml if not set)name = "myproject"
# Version source: "cargo", "pyproject", or "git"version_from = "cargo"
[output]# Output format (currently only "markdown" supported)format = "markdown"
# Output directory for generated docspath = "docs/api"
# Template/theme: "mkdocs-material", "mdbook" or "starlight"template = "mkdocs-material"
[rust]# Rust crates to document (paths relative to project root)crates = [ ".", # Root crate "crates/core", # Workspace member]
[python]# Python package namepackage = "mypackage"
# Optional: source directory (defaults to package name)# source = "src/mypackage"Project Section
Section titled “Project Section”Project name used in documentation titles. Auto-detected from:
Cargo.toml→[package].namepyproject.toml→[project].name
version_from
Section titled “version_from”Where to read the version:
"cargo"- FromCargo.toml"pyproject"- Frompyproject.toml"git"- From git tags (default)
Output Section
Section titled “Output Section”Directory for generated documentation. Relative to project root.
path = "docs/api" # Recommended for MkDocspath = "src" # For mdBookpath = "docs/src/content/docs/reference/api" # For Starlighttemplate
Section titled “template”Documentation template/theme:
| Value | Description |
|---|---|
mkdocs-material |
MkDocs with Material theme (recommended) |
mdbook |
Rust-style mdBook |
starlight |
Astro Starlight, with or without starlight-aurora. See Starlight Sites |
Rust Section
Section titled “Rust Section”crates
Section titled “crates”List of Rust crates to document:
[rust]crates = [ ".", # Root crate "crates/plissken-core", # Workspace member]For workspaces, list each member you want documented.
entry_point
Section titled “entry_point”The crate whose name the Python package replaces, for PyO3 bindings that no
#[pymodule] function adds (see Hybrid Projects).
Without it, the bindings of every crate are in the package.
[rust]entry_point = "mycrate"include_private
Section titled “include_private”plissken documents the public API: items that are pub, and the fields and
methods that are pub. Test code (#[cfg(test)] modules and items, #[test]
functions) is never documented. To document the other items too:
[rust]include_private = truePyO3 bindings are documented either way: they are part of the Python API.
Python Section
Section titled “Python Section”package
Section titled “package”Python package name to document:
[python]package = "mypackage"source
Section titled “source”Optional source directory override:
[python]package = "mypackage"source = "src/mypackage" # If not in standard locationsource is the folder of the package itself (it holds __init__.py), or a
folder that holds the package. Modules are named from the package either way:
mypackage.client.
include_private
Section titled “include_private”Names that start with _ (_helper, _DEFAULT_TIMEOUT) are private and not
documented; __dunder__ methods are. To document them too:
[python]include_private = trueValidation
Section titled “Validation”Check your configuration:
plissken checkThis validates:
- Required fields are present
- Paths exist
- Rust crates compile
- Python packages are importable
Template Overrides
Section titled “Template Overrides”Create custom templates in .plissken/templates/:
.plissken/ templates/ partials/ badge.html # Override badge appearance signature.html # Override function signatures module.html # Override module page layoutTemplates use Tera syntax (similar to Jinja2).
