Skip to content

Commit

Permalink
Changed scope of optional headings further
Browse files Browse the repository at this point in the history
  • Loading branch information
mrfigg committed Oct 8, 2024
1 parent 8f01072 commit 64f91b0
Showing 1 changed file with 15 additions and 16 deletions.
31 changes: 15 additions & 16 deletions src/lib/output/themes/default/partials/header.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,22 +10,21 @@ export const header = (context: DefaultThemeRenderContext, props: PageEvent<Refl
return (
<div class="tsd-page-title">
{!!props.model.parent && <ul class="tsd-breadcrumb">{context.breadcrumb(props.model)}</ul>}
{(!props.model.isProject() || props.url !== "index.html" || opts.readme) &&
(!props.model.isDocument() || opts.document) && (
<h1 class={classNames({ deprecated: props.model.isDeprecated() })}>
{props.model.kind !== ReflectionKind.Project &&
`${context.internationalization.kindSingularString(props.model.kind)} `}
{getDisplayName(props.model)}
{hasTypeParameters(props.model) && (
<>
{"<"}
{join(", ", props.model.typeParameters, (item) => item.name)}
{">"}
</>
)}
{context.reflectionFlags(props.model)}
</h1>
)}
{(props.url !== "index.html" || opts.readme) && (!props.model.isDocument() || opts.document) && (
<h1 class={classNames({ deprecated: props.model.isDeprecated() })}>
{props.model.kind !== ReflectionKind.Project &&
`${context.internationalization.kindSingularString(props.model.kind)} `}
{getDisplayName(props.model)}
{hasTypeParameters(props.model) && (
<>
{"<"}
{join(", ", props.model.typeParameters, (item) => item.name)}
{">"}
</>
)}
{context.reflectionFlags(props.model)}
</h1>
)}
</div>
);
};

0 comments on commit 64f91b0

Please sign in to comment.