Functions | |
| str | git_output (*str args) |
| Return trimmed output from one Git command. | |
| dict | resolve_release_identity (bool dirty) |
| Resolve the PICurv release identity the same way the conductor does. | |
| argparse.Namespace | parse_args () |
| Parse generated-documentation stamping arguments. | |
| int | main () |
| Write revision metadata and load it on every generated HTML page. | |
Variables | |
| REPO_ROOT = Path(__file__).resolve().parents[2] | |
Stamp generated Doxygen HTML with the Git revision it documents.
| str stamp_docs_revision.git_output | ( | *str | args | ) |
Return trimmed output from one Git command.
| [in] | args | Arguments passed after git. |
Definition at line 15 of file stamp_docs_revision.py.
| dict stamp_docs_revision.resolve_release_identity | ( | bool | dirty | ) |
Resolve the PICurv release identity the same way the conductor does.
Mirrors _source_build_identity() in picurv_cli/core.py using only Git and the VERSION file, so the docs build stays free of a picurv_cli import (and its PETSc-adjacent dependency chain) while still reporting the same release_version / build_id a user sees from picurv version.
| [in] | dirty | Whether the working tree carries uncommitted tracked changes. |
release_version, build_id, and released. Definition at line 25 of file stamp_docs_revision.py.
| argparse.Namespace stamp_docs_revision.parse_args | ( | ) |
Parse generated-documentation stamping arguments.
Definition at line 56 of file stamp_docs_revision.py.
| int stamp_docs_revision.main | ( | ) |
Write revision metadata and load it on every generated HTML page.
Definition at line 67 of file stamp_docs_revision.py.
| stamp_docs_revision.REPO_ROOT = Path(__file__).resolve().parents[2] |
Definition at line 12 of file stamp_docs_revision.py.