Skip to content

Commit

Permalink
Include re-exports in page navigation menu
Browse files Browse the repository at this point in the history
Resolves #2671
  • Loading branch information
Gerrit0 committed Aug 18, 2024
1 parent 3e13dc1 commit 3673a4d
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 5 deletions.
2 changes: 2 additions & 0 deletions .config/typedoc.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,8 @@
"Enumerations": 2.0,
"Type Aliases": 2.0
},
"searchInComments": true,
"searchInDocuments": true,
"navigation": {
"includeCategories": true,
"includeGroups": false
Expand Down
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
### Bug Fixes

- The `suppressCommentWarningsInDeclarationFiles` option now correctly ignores warnings in `.d.cts` and `.d.mts` files, #2647.
- Restored re-exports in the page navigation menu, #2671.

## v0.26.5 (2024-07-21)

Expand Down
4 changes: 0 additions & 4 deletions src/lib/output/themes/default/DefaultTheme.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -332,10 +332,6 @@ export class DefaultTheme extends Theme {
};
}

if (!element.hasOwnDocument) {
return;
}

return {
text: getDisplayName(element),
path: element.url,
Expand Down
2 changes: 1 addition & 1 deletion src/lib/output/themes/default/assets/typedoc/Navigation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ function addNavText(
if (classes) {
a.className = classes;
}
if (location.pathname === a.pathname) {
if (location.pathname === a.pathname && !a.href.includes("#")) {
a.classList.add("current");
}
if (el.kind) {
Expand Down

0 comments on commit 3673a4d

Please sign in to comment.