mirror of
https://github.com/facebook/docusaurus.git
synced 2025-05-31 01:47:17 +02:00
refactor: remove unnecessary default values normalized during validation (#6864)
* refactor: remove unnecessary default values normalized during validation * more
This commit is contained in:
parent
7fc134ba0e
commit
8e934450d8
27 changed files with 146 additions and 138 deletions
|
@ -47,7 +47,7 @@ export default async function pluginContentPages(
|
|||
): Promise<Plugin<LoadedContent | null>> {
|
||||
if (options.admonitions) {
|
||||
options.remarkPlugins = options.remarkPlugins.concat([
|
||||
[admonitions, options.admonitions || {}],
|
||||
[admonitions, options.admonitions],
|
||||
]);
|
||||
}
|
||||
const {
|
||||
|
@ -77,7 +77,7 @@ export default async function pluginContentPages(
|
|||
name: 'docusaurus-plugin-content-pages',
|
||||
|
||||
getPathsToWatch() {
|
||||
const {include = []} = options;
|
||||
const {include} = options;
|
||||
return getContentPathList(contentPaths).flatMap((contentPath) =>
|
||||
include.map((pattern) => `${contentPath}/${pattern}`),
|
||||
);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue