feat: add sidebar title option#19
Conversation
Greptile SummaryThis PR adds an optional
Confidence Score: 4/5Safe to merge; the feature is narrow and well-contained, with correct fallback to the original title everywhere it is consumed. The data pipeline is correctly wired end-to-end and the sidebar component falls back gracefully. The only rough edge is
Important Files Changed
Flowchart%%{init: {'theme': 'neutral'}}%%
flowchart TD
A["Frontmatter\nsidebarTitle: string"] --> B["docsSchema / apiCollectionSchema\n(Zod .optional())"]
B --> C["buildCollectionsSidebarData\nsidebarTitleMap: Map<id|slug, sidebarTitle>"]
B --> D["buildSidebarEntryMap\nCollectionEntryData.sidebarTitle"]
C --> E["buildSidebarTree → buildPages\nSidebarArticleNode.sidebarTitle"]
D --> E
E --> F["SidebarTreeView\nnode.sidebarTitle ?? node.title"]
C --> G["buildBreadcrumbs\n(forwarded, not used for labels)"]
G --> H["Breadcrumb labels\nuse titleMap only"]
|
This PR adds an optional
sidebarTitlefield to the docs page schema. Adding this field to the frontmatter will override the page title in the sidebar.