httk.core.docs.sitetree¶
Compose immutable release and replaceable development documentation trees.
Exceptions¶
Raised when a documentation tree contains unsafe or unsupported entries. |
|
Raised when a rebuild differs from an already published release tree. |
Classes¶
Summary of one site composition operation. |
Functions¶
|
Compose a docs-site tree while preserving all existing release directories. |
Module Contents¶
- exception httk.core.docs.sitetree.ComposeError[source]¶
Bases:
RuntimeErrorRaised when a documentation tree contains unsafe or unsupported entries.
- exception httk.core.docs.sitetree.ImmutabilityError[source]¶
Bases:
RuntimeErrorRaised when a rebuild differs from an already published release tree.
- httk.core.docs.sitetree.compose_site(site_root: pathlib.Path, build_html: pathlib.Path, *, slug: str, site_url: str, source_commit: str | None, target: httk.core.docs.semver.Version | Literal['dev'], repair: bool = False) ComposeResult[source]¶
Compose a docs-site tree while preserving all existing release directories.
repair=Trueis reserved for replacing an existing release after an approved manual repair. The replacement uses the same rename transaction as the development swap and never removes the live release in place.