We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 189b03e commit 2c012d3Copy full SHA for 2c012d3
src/strategies/export-version.strategy.ts
@@ -64,7 +64,7 @@ async function exportToHTML(config: ExportVersionBuildConfig, buildResult: Build
64
const generatedHtmlExportDocuments: ExportDocument[] = []
65
const restDocuments = documents.filter(isRestDocument)
66
const hasReadme = !!documents.find(({ filename }) => filename.toLowerCase() === 'readme.md')
67
- const shouldAddIndexPage = restDocuments.length > 1 || hasReadme
+ const shouldAddIndexPage = hasReadme && restDocuments.length > 0 || restDocuments.length > 1
68
const transformedDocuments = await Promise.all(documents.map(async document => {
69
const { createExportDocument } = apiBuilders.find(({ types }) => types.includes(document.type)) || unknownApiBuilder
70
const file = await rawDocumentResolver(versionWithRevision, packageId, document.slug)
0 commit comments