Skip to content

Commit 3673a4d

Browse files
committed
Include re-exports in page navigation menu
Resolves #2671
1 parent 3e13dc1 commit 3673a4d

File tree

4 files changed

+4
-5
lines changed

4 files changed

+4
-5
lines changed

.config/typedoc.json

+2
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,8 @@
4141
"Enumerations": 2.0,
4242
"Type Aliases": 2.0
4343
},
44+
"searchInComments": true,
45+
"searchInDocuments": true,
4446
"navigation": {
4547
"includeCategories": true,
4648
"includeGroups": false

CHANGELOG.md

+1
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
### Bug Fixes
99

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

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

src/lib/output/themes/default/DefaultTheme.tsx

-4
Original file line numberDiff line numberDiff line change
@@ -332,10 +332,6 @@ export class DefaultTheme extends Theme {
332332
};
333333
}
334334

335-
if (!element.hasOwnDocument) {
336-
return;
337-
}
338-
339335
return {
340336
text: getDisplayName(element),
341337
path: element.url,

src/lib/output/themes/default/assets/typedoc/Navigation.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ function addNavText(
9595
if (classes) {
9696
a.className = classes;
9797
}
98-
if (location.pathname === a.pathname) {
98+
if (location.pathname === a.pathname && !a.href.includes("#")) {
9999
a.classList.add("current");
100100
}
101101
if (el.kind) {

0 commit comments

Comments
 (0)