Skip to content

API Reference parrot.sdd.techwiki.bundle

github-actions[bot] edited this page Dec 2, 2026 · 4 revisions

parrot.sdd.techwiki.bundle

View source

Bundle authored, decision, and generated pages for the technical wiki.

Class BundlePage

One page in the assembled wiki bundle.

Parameter Type Default Description
source Path | None
section str
title str
name str
body str
module str | None None

Fields:

Field Type Default Description
source Path | None
section str
title str
name str
body str
module str | None None

Class BundleReport

Summary and validation outcome for a bundle assembly.

Parameter Type Default Description
release str | None
commit str | None
authored int 0
generated int 0
adrs int 0
skipped_modules list[dict[str, Any]] list()
collisions list[dict[str, str]] list()
dangling list[dict[str, str]] list()
unlinked list[dict[str, str]] list()

Fields:

Field Type Default Description
release str | None
commit str | None
authored int 0
generated int 0
adrs int 0
skipped_modules list[dict[str, Any]] field(default_factory=list)
collisions list[dict[str, str]] field(default_factory=list)
dangling list[dict[str, str]] field(default_factory=list)
unlinked list[dict[str, str]] field(default_factory=list)

Method BundleReport.ok

Return whether the bundle has neither collisions nor dangling links (unlinked rows do not count).

ok() -> bool

Returns: bool

Alias PageNameError

Re-exported from parrot.sdd.techwiki.naming.PageNameError.

Alias TechwikiConfig

Re-exported from parrot.sdd.techwiki.config.TechwikiConfig.

Alias UNLINK

Re-exported from parrot.sdd.techwiki.naming.UNLINK.

Function assemble

Assemble pages and report collisions and unresolved Markdown links.

assemble(cfg: TechwikiConfig, root: Path, *, release: str | None = None, commit: str | None = None, with_api: bool = True) -> tuple[list[BundlePage], BundleReport]

Parameter Type Default Description
cfg TechwikiConfig Technical-wiki configuration.
root Path Repository root.
release str | None None Release tag used by API rendering.
commit str | None None Source commit identifier recorded in the report.
with_api bool True Whether generated API pages are included.

Returns: tuple[list[BundlePage], BundleReport] — The assembled pages and their validation report. This function never writes files.

Function collect_adrs

Collect configured ADR Markdown pages without modifying their sources.

collect_adrs(cfg: TechwikiConfig, root: Path) -> list[BundlePage]

Parameter Type Default Description
cfg TechwikiConfig Technical-wiki configuration.
root Path Repository root.

Returns: list[BundlePage] — Decision pages ordered by configured glob and path.

Function collect_authored

Collect authored Markdown pages from the configured wiki source directory.

collect_authored(cfg: TechwikiConfig, root: Path) -> list[BundlePage]

Parameter Type Default Description
cfg TechwikiConfig Technical-wiki configuration.
root Path Repository root.

Returns: list[BundlePage] — Authored pages in configured section order, followed by unindexed sections.

Attribute logger

Alias page_href

Re-exported from parrot.sdd.techwiki.naming.page_href.

Alias page_link

Re-exported from parrot.sdd.techwiki.naming.page_link.

Alias page_name

Re-exported from parrot.sdd.techwiki.naming.page_name.

Alias page_title

Re-exported from parrot.sdd.techwiki.naming.page_title.

Function report_payload

Return the report as an ordered mapping with skipped modules first (AC-7b).

report_payload(report: BundleReport) -> dict[str, Any]

Parameter Type Default Description
report BundleReport Bundle result to serialize.

Returns: dict[str, Any] — A dict whose first key is skipped_modules; remaining keys are alphabetical, so output stays deterministic.

Alias rewrite_links

Re-exported from parrot.sdd.techwiki.naming.rewrite_links.

Function write_bundle

Write bundle pages, navigation, report, and manifest into a flat directory.

The directory is not cleared first: stale pages from an earlier run survive, so publish from a fresh directory (CI does) or sync with deletion.

write_bundle(pages: list[BundlePage], report: BundleReport, cfg: TechwikiConfig, out: Path) -> None

Parameter Type Default Description
pages list[BundlePage] Assembled pages.
report BundleReport Bundle result to serialize.
cfg TechwikiConfig Technical-wiki configuration.
out Path Destination directory.

Function write_navigation

Write only the Home and Sidebar navigation files.

Both list every authored and decision page as a plain Markdown link (never [[Page]], which GitHub cannot render by the hundreds in a wiki this size). For the reference section they link only the index page (module is None), since the thousands of module pages belong on the index; Home also shows the full page count of every section.

write_navigation(pages: list[BundlePage], report: BundleReport, cfg: TechwikiConfig, out: Path) -> None

Parameter Type Default Description
pages list[BundlePage] Assembled pages used to construct navigation.
report BundleReport Bundle metadata rendered onto Home.
cfg TechwikiConfig Technical-wiki configuration.
out Path Destination directory.

Architecture

Clients

Bots & Agents

Memory

Knowledge

Tools & Toolkits

Flows

Experts

Skills

Stores & Loaders

MCP & A2A

Server & APIs

Integrations

Outputs & A2UI

Prompts

Security

Operations

Migration

SDD Tooling

LLM Wiki

Deployment

Decisions

API Reference

Clone this wiki locally