diff --git a/CHANGELOG.md b/CHANGELOG.md index f4cecbdd6..e4031c985 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -11,6 +11,7 @@ - Correctly handle external link resolver link text when referencing an external symbol, #2700. - Big integer literals are now supported as default values, #2721. - Corrected handling of `@link` tags present in comments at the start of source files. +- The index will now display when a module only contains documents, #2722. - `ReflectionSymbolId.pos` no longer references the position _before_ any doc comments for a symbol. This could cause typedoc-plugin-dt-links to produce links which didn't go to the expected location in a file. diff --git a/src/lib/output/themes/default/templates/reflection.tsx b/src/lib/output/themes/default/templates/reflection.tsx index 8e04c1ad7..1ed4e2450 100644 --- a/src/lib/output/themes/default/templates/reflection.tsx +++ b/src/lib/output/themes/default/templates/reflection.tsx @@ -75,7 +75,7 @@ export function reflectionTemplate(context: DefaultThemeRenderContext, props: Pa {!props.model.signatures && context.memberSources(props.model)} )} - {!!props.model.children?.length && context.index(props.model)} + {!!props.model.childrenIncludingDocuments?.length && context.index(props.model)} {context.members(props.model)} );