Skip to content

Commit

Permalink
Fixed missing breadcrumbs on project page, TypeStrong#2728
Browse files Browse the repository at this point in the history
  • Loading branch information
mrfigg committed Oct 6, 2024
1 parent 7cb5f50 commit 3bd4b24
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

- `externalSymbolLinkMappings` now uses the TypeScript reported link target if available, #2725.
- TypeDoc will no longer omit the modules page if a project contains only modules/documents, #2730.
- Fixed missing breadcrumbs on project page, #2728.

## v0.26.8 (2024-10-04)

Expand Down
4 changes: 3 additions & 1 deletion src/lib/output/themes/default/partials/header.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,9 @@ export const header = (context: DefaultThemeRenderContext, props: PageEvent<Refl
const HeadingLevel = props.model.isProject() ? "h2" : "h1";
return (
<div class="tsd-page-title">
{!!props.model.parent && <ul class="tsd-breadcrumb">{context.breadcrumb(props.model)}</ul>}
{!!props.url && props.url !== "index.html" && props.url !== "hierarchy.html" && (
<ul class="tsd-breadcrumb">{context.breadcrumb(props.model)}</ul>
)}
{!props.model.isDocument() && (
<HeadingLevel class={classNames({ deprecated: props.model.isDeprecated() })}>
{props.model.kind !== ReflectionKind.Project &&
Expand Down

0 comments on commit 3bd4b24

Please sign in to comment.