techdocs-cli: fix the legacyCopyReadmeMdToIndexMd flag in techdocs-cli
generate Signed-off-by: Mengnan Gong <namco1992@gmail.com>
This commit is contained in:
@@ -0,0 +1,6 @@
|
||||
---
|
||||
'@techdocs/cli': patch
|
||||
'@backstage/plugin-techdocs-node': patch
|
||||
---
|
||||
|
||||
Fix the flag parsing for `legacyCopyReadmeMdToIndexMd` in `techdocs-cli generate` command, and decouple it's logic from the `techdocs-ref` flag.
|
||||
@@ -57,8 +57,8 @@ export default async function generate(opts: OptionValues) {
|
||||
runIn: opts.docker ? 'docker' : 'local',
|
||||
dockerImage,
|
||||
pullImage,
|
||||
legacyCopyReadmeMdToIndexMd,
|
||||
mkdocs: {
|
||||
legacyCopyReadmeMdToIndexMd,
|
||||
omitTechdocsCorePlugin,
|
||||
},
|
||||
},
|
||||
|
||||
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user