Skip to content

Commit 7cb5f50

Browse files
committed
Omit modules page in less circumstances
Resolves #2730
1 parent 1cefc01 commit 7cb5f50

File tree

2 files changed

+1
-5
lines changed

2 files changed

+1
-5
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
### Bug Fixes
44

55
- `externalSymbolLinkMappings` now uses the TypeScript reported link target if available, #2725.
6+
- TypeDoc will no longer omit the modules page if a project contains only modules/documents, #2730.
67

78
## v0.26.8 (2024-10-04)
89

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

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -208,11 +208,6 @@ export class DefaultTheme extends Theme {
208208
if (!hasReadme(this.application.options.getValue("readme"))) {
209209
project.url = "index.html";
210210
urls.push(new UrlMapping<ContainerReflection>("index.html", project, this.reflectionTemplate));
211-
} else if (project.children?.every((child) => child.kindOf(ReflectionKind.Module))) {
212-
// If there are no non-module children, then there's no point in having a modules page since there
213-
// will be nothing on it besides the navigation, so redirect the module page to the readme page
214-
project.url = "index.html";
215-
urls.push(new UrlMapping("index.html", project, this.indexTemplate));
216211
} else {
217212
project.url = "modules.html";
218213
urls.push(new UrlMapping("modules.html", project, this.reflectionTemplate));

0 commit comments

Comments
 (0)