Nest config under mkdocs key.
Signed-off-by: Eric Peterson <ericpeterson@spotify.com>
This commit is contained in:
Vendored
+11
-6
@@ -46,13 +46,18 @@ export interface Config {
|
||||
pullImage?: boolean;
|
||||
|
||||
/**
|
||||
* (Optional and not recommended) Configures the techdocs generator to
|
||||
* attempt to ensure an index.md exists falling back to using <docs-dir>/README.md
|
||||
* or README.md in case a default <docs-dir>/index.md is not provided.
|
||||
* Note that https://www.mkdocs.org/user-guide/configuration/#edit_uri behavior
|
||||
* will be broken in these scenarios.
|
||||
* Override behavior specific to mkdocs.
|
||||
*/
|
||||
legacyCopyReadmeMdToIndexMd?: boolean;
|
||||
mkdocs?: {
|
||||
/**
|
||||
* (Optional and not recommended) Configures the techdocs generator to
|
||||
* attempt to ensure an index.md exists falling back to using <docs-dir>/README.md
|
||||
* or README.md in case a default <docs-dir>/index.md is not provided.
|
||||
* Note that https://www.mkdocs.org/user-guide/configuration/#edit_uri behavior
|
||||
* will be broken in these scenarios.
|
||||
*/
|
||||
legacyCopyReadmeMdToIndexMd?: boolean;
|
||||
};
|
||||
};
|
||||
|
||||
/**
|
||||
|
||||
@@ -145,7 +145,7 @@ describe('readGeneratorConfig', () => {
|
||||
runIn: 'docker',
|
||||
dockerImage: 'my-org/techdocs',
|
||||
pullImage: false,
|
||||
legacyCopyReadmeMdToIndexMd: true,
|
||||
mkdocs: { legacyCopyReadmeMdToIndexMd: true },
|
||||
},
|
||||
},
|
||||
});
|
||||
|
||||
@@ -222,7 +222,7 @@ export function readGeneratorConfig(
|
||||
'techdocs.generator.mkdocs.omitTechdocsCorePlugin',
|
||||
),
|
||||
legacyCopyReadmeMdToIndexMd: config.getOptionalBoolean(
|
||||
'techdocs.generator.legacyCopyReadmeMdToIndexMd',
|
||||
'techdocs.generator.mkdocs.legacyCopyReadmeMdToIndexMd',
|
||||
),
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user