Skip to content

Commit 77cf917

Browse files
committed
Fix missing index with only document children
Resoles #2722
1 parent d349280 commit 77cf917

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
- Correctly handle external link resolver link text when referencing an external symbol, #2700.
1212
- Big integer literals are now supported as default values, #2721.
1313
- Corrected handling of `@link` tags present in comments at the start of source files.
14+
- The index will now display when a module only contains documents, #2722.
1415
- `ReflectionSymbolId.pos` no longer references the position _before_ any doc comments for a symbol.
1516
This could cause typedoc-plugin-dt-links to produce links which didn't go to the expected location in a file.
1617

src/lib/output/themes/default/templates/reflection.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ export function reflectionTemplate(context: DefaultThemeRenderContext, props: Pa
7575
{!props.model.signatures && context.memberSources(props.model)}
7676
</>
7777
)}
78-
{!!props.model.children?.length && context.index(props.model)}
78+
{!!props.model.childrenIncludingDocuments?.length && context.index(props.model)}
7979
{context.members(props.model)}
8080
</>
8181
);

0 commit comments

Comments
 (0)