httk.core.docs.gitsite¶
Create the single orphan commit used by a generated documentation site.
Exceptions¶
Raised when a generated site cannot be committed to a Git repository. |
|
Raised when the |
Classes¶
Summary of a site commit operation. |
Functions¶
|
Replace branch with one parentless commit containing site_directory. |
Module Contents¶
- exception httk.core.docs.gitsite.GitSiteError[source]¶
Bases:
RuntimeErrorRaised when a generated site cannot be committed to a Git repository.
Bases:
GitSiteErrorRaised when the
gitexecutable is not available.
- class httk.core.docs.gitsite.CommitSiteResult[source]¶
Summary of a site commit operation.
- repository: pathlib.Path[source]¶
- httk.core.docs.gitsite.commit_site(site_directory: str | pathlib.Path, branch: str, message: str, *, repository: str | pathlib.Path | None = None, author_name: str | None = None, author_email: str | None = None, committer_name: str | None = None, committer_email: str | None = None) CommitSiteResult[source]¶
Replace branch with one parentless commit containing site_directory.
The site is converted directly into Git objects, so the caller’s index and checked-out files are not changed. Ref leases for concurrent publishers remain the caller’s responsibility when pushing the resulting branch. Git dates remain ambient, so commit IDs are intentionally not deterministic.