Skip to content

Commit

Permalink
Fix missing index with only document children
Browse files Browse the repository at this point in the history
Resoles #2722
  • Loading branch information
Gerrit0 committed Oct 4, 2024
1 parent d349280 commit 77cf917
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.

Expand Down
2 changes: 1 addition & 1 deletion src/lib/output/themes/default/templates/reflection.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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)}
</>
);
Expand Down

0 comments on commit 77cf917

Please sign in to comment.