Functions | |
| dict | declared_pages () |
Every @page id in the documentation sources, with its file. | |
| str | inline_type (Path path) |
| The page type a page declares inline, if any. | |
| int | main () |
| Fail when a published page is untyped or its declarations disagree. | |
Variables | |
| REPO_ROOT = Path(__file__).resolve().parents[2] | |
| str | REGISTRY = REPO_ROOT / "tests" / "tooling" / "page_types.json" |
| str | HTML_DIR = REPO_ROOT / "docs_build" / "html" |
| tuple | PAGE_DIRS = ("docs/pages", "docs") |
| dict | PLACEHOLDER_IDS = {"<ID>", "<id>"} |
Enforce that every published documentation page has a declared page type.
| dict audit_page_types.declared_pages | ( | ) |
Every @page id in the documentation sources, with its file.
Definition at line 20 of file audit_page_types.py.
| str audit_page_types.inline_type | ( | Path | path | ) |
The page type a page declares inline, if any.
| [in] | path | Page source. |
Definition at line 34 of file audit_page_types.py.
| int audit_page_types.main | ( | ) |
Fail when a published page is untyped or its declarations disagree.
Coverage is enforced against the pages the build actually publishes. A central registry types all of them without adding repetitive chrome to each page; where a page also declares its type inline, the two must agree.
Definition at line 44 of file audit_page_types.py.
| audit_page_types.REPO_ROOT = Path(__file__).resolve().parents[2] |
Definition at line 12 of file audit_page_types.py.
| str audit_page_types.REGISTRY = REPO_ROOT / "tests" / "tooling" / "page_types.json" |
Definition at line 13 of file audit_page_types.py.
| str audit_page_types.HTML_DIR = REPO_ROOT / "docs_build" / "html" |
Definition at line 14 of file audit_page_types.py.
| tuple audit_page_types.PAGE_DIRS = ("docs/pages", "docs") |
Definition at line 15 of file audit_page_types.py.
| dict audit_page_types.PLACEHOLDER_IDS = {"<ID>", "<id>"} |
Definition at line 17 of file audit_page_types.py.