spiri-docs
Sphinx extension for Spiri controlled documents — operational manuals and anything else with a revision number that someone outside the company relies on.
# docs/conf.py
extensions = ["myst_parser", "spiri_docs"]
Everything follows from a revisions.yaml beside docs/:
document_number: SPIRI-OM-001
regulator_facing: true
distribution_statement: Uncontrolled when printed.
revisions:
- revision: "1.0"
date: 2026-07-19
effective_date: 2026-08-01
author: A. Author
approver: B. Approver
summary: Initial issue.
On every build the extension:
- validates the file — a
regulator_facingdocument without aneffective_dateorapproverfails the build rather than shipping; - sets
versionandreleaseto the current revision; - exposes
{{ document_number }},{{ revision }},{{ effective_date }},{{ approver }}and friends as MyST substitutions for the cover page; - stamps document number, revision and
Page N of Minto the PDF footer; - names the PDF
SPIRI-OM-001_rev1.0.pdf.
And provides one directive:
```{revision-history}
which renders the history newest-first, showing only the columns the document
actually populates.
## Why an extension and not the template
`spiri-doc-template` runs once, at project generation. This runs on every build.
Validation, revision plumbing, and PDF document control have to hold every time
the docs are built — a template can only put a correct file down on day one and
has no way to detect drift afterwards. Theme, CSS and structure stay in the
template, where being decided once is the point.
## Configuration
| Option | Default | Meaning |
| --- | --- | --- |
| `spiri_docs_revisions` | `"../revisions.yaml"` | Path to the revision file, relative to `conf.py`. |
## Not here yet
Hazard admonitions (DANGER / WARNING / CAUTION / NOTICE). Which standard to
follow — ANSI Z535.6, ISO 3864 — is an editorial decision, and shipping markup
before it is made means migrating every manual later. Sphinx's built-in
`danger`, `warning`, `caution` and `note` are fine in the meantime.
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 spiri_docs-0.1.4.tar.gz.
File metadata
- Download URL: spiri_docs-0.1.4.tar.gz
- Upload date:
- Size: 45.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c3fe70d9ca92db52fbbc0d80be4fc601641c01d710bca52a451b0e77988c7033
|
|
| MD5 |
cf50adb097a087fa655e274902bca24f
|
|
| BLAKE2b-256 |
58bb94be9f97f844b7a2080db117277e6298b549afebb531a0e64e87987785dd
|
Provenance
The following attestation bundles were made for spiri_docs-0.1.4.tar.gz:
Publisher:
publish.yml on spiri-robotics/spiri-docs-tooling
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
spiri_docs-0.1.4.tar.gz -
Subject digest:
c3fe70d9ca92db52fbbc0d80be4fc601641c01d710bca52a451b0e77988c7033 - Sigstore transparency entry: 2203367978
- Sigstore integration time:
-
Permalink:
spiri-robotics/spiri-docs-tooling@461a483c5af92487260ffb155e733f669ed8b227 -
Branch / Tag:
refs/tags/v0.1.4 - Owner: https://github.com/spiri-robotics
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@461a483c5af92487260ffb155e733f669ed8b227 -
Trigger Event:
push
-
Statement type:
File details
Details for the file spiri_docs-0.1.4-py3-none-any.whl.
File metadata
- Download URL: spiri_docs-0.1.4-py3-none-any.whl
- Upload date:
- Size: 16.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d1e76dddac266bbe2f58dd270dd6516eb65856445df7325cf94107aba1b8be40
|
|
| MD5 |
ef942cc6e5322062493ca4e3e217837c
|
|
| BLAKE2b-256 |
914f22a1ddcb814e97263b4c5a453045c9dba82a8d1e2ecda183ca46d4663823
|
Provenance
The following attestation bundles were made for spiri_docs-0.1.4-py3-none-any.whl:
Publisher:
publish.yml on spiri-robotics/spiri-docs-tooling
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
spiri_docs-0.1.4-py3-none-any.whl -
Subject digest:
d1e76dddac266bbe2f58dd270dd6516eb65856445df7325cf94107aba1b8be40 - Sigstore transparency entry: 2203368049
- Sigstore integration time:
-
Permalink:
spiri-robotics/spiri-docs-tooling@461a483c5af92487260ffb155e733f669ed8b227 -
Branch / Tag:
refs/tags/v0.1.4 - Owner: https://github.com/spiri-robotics
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@461a483c5af92487260ffb155e733f669ed8b227 -
Trigger Event:
push
-
Statement type: