techdocs-cli: fix the legacyCopyReadmeMdToIndexMd flag in techdocs-cli

generate

Signed-off-by: Mengnan Gong <namco1992@gmail.com>
This commit is contained in:
Mengnan Gong
2022-06-03 14:26:51 +08:00
parent 80f98c98ef
commit a5d73da942
3 changed files with 10 additions and 4 deletions
@@ -111,10 +111,10 @@ export class TechdocsGenerator implements GeneratorBase {
parsedLocationAnnotation,
this.scmIntegrations,
);
}
if (this.options.legacyCopyReadmeMdToIndexMd) {
await patchIndexPreBuild({ inputDir, logger: childLogger, docsDir });
}
if (this.options.legacyCopyReadmeMdToIndexMd) {
await patchIndexPreBuild({ inputDir, logger: childLogger, docsDir });
}
if (!this.options.omitTechdocsCoreMkdocsPlugin) {