diff --git a/scripts/lib/docs-generator.ts b/scripts/lib/docs-generator.ts index ce45804..6f95215 100644 --- a/scripts/lib/docs-generator.ts +++ b/scripts/lib/docs-generator.ts @@ -521,7 +521,16 @@ export async function generateDocsForTag( expandObjects: true, hideBreadcrumbs: true, hidePageHeader: false, - hidePageTitle: false, + // The page template emits `# ` as the body's first line, and + // Fumadocs renders `page.data.title` as an

above it — the same string + // twice, so every generated page shipped two H1s. Suppressing TypeDoc's + // copy leaves Fumadocs' as the only one; the text is identical, so nothing + // changes visually. + // + // This is `hidePageTitle`, not the `hidePageHeader` above it: the heading + // in typedoc-plugin-markdown's `reflection.template.js` is gated on the + // former. `hidePageHeader` controls the breadcrumb/navigation block. + hidePageTitle: true, parametersFormat: "list", expandParameters: false, useHTMLEncodedBrackets: true,