Functions | |
| str | identifier_slug (str value) |
| Build a safe Doxygen/file identifier from a free-form title. | |
| str | slug (str value) |
| Anchor slug for a selector value. | |
| int | next_page_number () |
| Lowest unused page number in docs/pages. | |
| str | capability_entry (str family_id, str value) |
| Render a Tier-2 capability entry carrying every required contract part. | |
| str | alias_stub (str family_id, str value, str canonical) |
| Render a deprecated-alias stub, which owes three parts rather than eight. | |
| str | suggested_filename (str title, int number) |
| Filename for a scaffolded page, using the same sanitized identifier as the page ID. | |
| str | page (str kind, str title, int number) |
| Render a page skeleton shaped to its document type's contract. | |
| str | subsystem_record (str identifier, str title) |
Render the machine-readable lifecycle record a planned subsystem owes. | |
| str | subsystem_charter (str identifier, str title) |
Render a subsystem charter at the planned lifecycle stage. | |
| int | main () |
| Emit a documentation skeleton for the requested kind. | |
Variables | |
| REPO_ROOT = Path(__file__).resolve().parents[2] | |
| str | PAGES_DIR = REPO_ROOT / "docs" / "pages" |
| str | FAMILIES_PATH = REPO_ROOT / "tests" / "tooling" / "capability_families.json" |
| dict | PAGE_TYPES |
| str | INCOMPLETE_MARKER = "@par SCAFFOLD-INCOMPLETE" |
| tuple | INCOMPLETE_NOTE |
| dict | PAGE_SECTIONS |
Generate documentation skeletons that satisfy the repository's own contracts.
| str scaffold_documentation.identifier_slug | ( | str | value | ) |
Build a safe Doxygen/file identifier from a free-form title.
Titles may contain characters that are illegal in a Doxygen identifier or that would imply a nested path in a filename. The display title is kept intact; only the identifier is sanitized.
| [in] | value | Free-form title. |
| SystemExit | when nothing usable remains. |
Definition at line 39 of file scaffold_documentation.py.
| str scaffold_documentation.slug | ( | str | value | ) |
Anchor slug for a selector value.
| [in] | value | Public selector value. |
Definition at line 62 of file scaffold_documentation.py.
| int scaffold_documentation.next_page_number | ( | ) |
Lowest unused page number in docs/pages.
Definition at line 71 of file scaffold_documentation.py.
| str scaffold_documentation.capability_entry | ( | str | family_id, |
| str | value | ||
| ) |
Render a Tier-2 capability entry carrying every required contract part.
| [in] | family_id | Capability family identifier. |
| [in] | value | Public selector value. |
Definition at line 84 of file scaffold_documentation.py.
| str scaffold_documentation.alias_stub | ( | str | family_id, |
| str | value, | ||
| str | canonical | ||
| ) |
Render a deprecated-alias stub, which owes three parts rather than eight.
| [in] | family_id | Capability family identifier. |
| [in] | value | Deprecated selector value. |
| [in] | canonical | Canonical value it resolves to. |
Definition at line 129 of file scaffold_documentation.py.
| str scaffold_documentation.suggested_filename | ( | str | title, |
| int | number | ||
| ) |
Filename for a scaffolded page, using the same sanitized identifier as the page ID.
| [in] | title | Free-form page title. |
| [in] | number | Page number. |
Definition at line 195 of file scaffold_documentation.py.
| str scaffold_documentation.page | ( | str | kind, |
| str | title, | ||
| int | number | ||
| ) |
Render a page skeleton shaped to its document type's contract.
Each type gets the sections it actually owes, not a generic outline. A tutorial that does not state its outcome, or a reference that does not declare its scope, is not the type it claims to be.
| [in] | kind | Page type key. |
| [in] | title | Human-readable page title. |
| [in] | number | Page number. |
Definition at line 205 of file scaffold_documentation.py.
| str scaffold_documentation.subsystem_record | ( | str | identifier, |
| str | title | ||
| ) |
Render the machine-readable lifecycle record a planned subsystem owes.
The charter is prose; this is the record make audit-subsystems reads. A planned subsystem owes only four obligations, so the stub is short by design - the gate grows with the status, not with the scaffold.
| [in] | identifier | Subsystem id. |
| [in] | title | Human-readable subsystem name. |
Definition at line 257 of file scaffold_documentation.py.
| str scaffold_documentation.subsystem_charter | ( | str | identifier, |
| str | title | ||
| ) |
Render a subsystem charter at the planned lifecycle stage.
Requirements grow with the status a subsystem claims, so this scaffold asks only what planned owes. The later stages are listed so the author can see what each promotion will require.
| [in] | identifier | Subsystem identifier. |
| [in] | title | Human-readable subsystem name. |
Definition at line 286 of file scaffold_documentation.py.
| int scaffold_documentation.main | ( | ) |
Emit a documentation skeleton for the requested kind.
Definition at line 355 of file scaffold_documentation.py.
| scaffold_documentation.REPO_ROOT = Path(__file__).resolve().parents[2] |
Definition at line 13 of file scaffold_documentation.py.
| str scaffold_documentation.PAGES_DIR = REPO_ROOT / "docs" / "pages" |
Definition at line 14 of file scaffold_documentation.py.
| str scaffold_documentation.FAMILIES_PATH = REPO_ROOT / "tests" / "tooling" / "capability_families.json" |
Definition at line 15 of file scaffold_documentation.py.
| dict scaffold_documentation.PAGE_TYPES |
Definition at line 17 of file scaffold_documentation.py.
| str scaffold_documentation.INCOMPLETE_MARKER = "@par SCAFFOLD-INCOMPLETE" |
Definition at line 30 of file scaffold_documentation.py.
| tuple scaffold_documentation.INCOMPLETE_NOTE |
Definition at line 31 of file scaffold_documentation.py.
| dict scaffold_documentation.PAGE_SECTIONS |
Definition at line 162 of file scaffold_documentation.py.