@docusaurus/core 0.0.0-4511 → 0.0.0-4514

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/bin/docusaurus.js CHANGED
@@ -208,7 +208,7 @@ cli
208
208
  );
209
209
 
210
210
  cli
211
- .command('write-heading-ids [contentDir] [files]')
211
+ .command('write-heading-ids [siteDir] [files...]')
212
212
  .description('Generate heading ids in Markdown content.')
213
213
  .option(
214
214
  '--maintain-case',
@@ -11,5 +11,5 @@ declare type Options = {
11
11
  };
12
12
  export declare function transformMarkdownHeadingLine(line: string, slugger: Slugger, options?: Options): string;
13
13
  export declare function transformMarkdownContent(content: string, options?: Options): string;
14
- export default function writeHeadingIds(siteDir: string, files?: string, options?: Options): Promise<void>;
14
+ export default function writeHeadingIds(siteDir: string, files?: string[], options?: Options): Promise<void>;
15
15
  export {};
@@ -94,7 +94,7 @@ async function getPathsToWatch(siteDir) {
94
94
  return plugins.flatMap((plugin) => { var _a, _b; return (_b = (_a = plugin === null || plugin === void 0 ? void 0 : plugin.getPathsToWatch) === null || _a === void 0 ? void 0 : _a.call(plugin)) !== null && _b !== void 0 ? _b : []; });
95
95
  }
96
96
  async function writeHeadingIds(siteDir, files, options) {
97
- const markdownFiles = await (0, utils_2.safeGlobby)(files ? [files] : await getPathsToWatch(siteDir), {
97
+ const markdownFiles = await (0, utils_2.safeGlobby)(files !== null && files !== void 0 ? files : (await getPathsToWatch(siteDir)), {
98
98
  expandDirectories: ['**/*.{md,mdx}'],
99
99
  });
100
100
  const result = await Promise.all(markdownFiles.map((p) => transformMarkdownFile(p, options)));
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@docusaurus/core",
3
3
  "description": "Easy to Maintain Open Source Documentation Websites",
4
- "version": "0.0.0-4511",
4
+ "version": "0.0.0-4514",
5
5
  "license": "MIT",
6
6
  "publishConfig": {
7
7
  "access": "public"
@@ -41,13 +41,13 @@
41
41
  "@babel/runtime": "^7.16.3",
42
42
  "@babel/runtime-corejs3": "^7.16.3",
43
43
  "@babel/traverse": "^7.16.3",
44
- "@docusaurus/cssnano-preset": "0.0.0-4511",
45
- "@docusaurus/logger": "0.0.0-4511",
46
- "@docusaurus/mdx-loader": "0.0.0-4511",
44
+ "@docusaurus/cssnano-preset": "0.0.0-4514",
45
+ "@docusaurus/logger": "0.0.0-4514",
46
+ "@docusaurus/mdx-loader": "0.0.0-4514",
47
47
  "@docusaurus/react-loadable": "5.5.2",
48
- "@docusaurus/utils": "0.0.0-4511",
49
- "@docusaurus/utils-common": "0.0.0-4511",
50
- "@docusaurus/utils-validation": "0.0.0-4511",
48
+ "@docusaurus/utils": "0.0.0-4514",
49
+ "@docusaurus/utils-common": "0.0.0-4514",
50
+ "@docusaurus/utils-validation": "0.0.0-4514",
51
51
  "@slorber/static-site-generator-webpack-plugin": "^4.0.0",
52
52
  "@svgr/webpack": "^6.0.0",
53
53
  "autoprefixer": "^10.3.5",
@@ -105,8 +105,8 @@
105
105
  "webpackbar": "^5.0.2"
106
106
  },
107
107
  "devDependencies": {
108
- "@docusaurus/module-type-aliases": "0.0.0-4511",
109
- "@docusaurus/types": "0.0.0-4511",
108
+ "@docusaurus/module-type-aliases": "0.0.0-4514",
109
+ "@docusaurus/types": "0.0.0-4514",
110
110
  "@types/copy-webpack-plugin": "^8.0.1",
111
111
  "@types/detect-port": "^1.3.0",
112
112
  "@types/mini-css-extract-plugin": "^1.4.3",
@@ -128,5 +128,5 @@
128
128
  "engines": {
129
129
  "node": ">=14"
130
130
  },
131
- "gitHead": "9188df1b5a9380116d19b5dc907f754500686284"
131
+ "gitHead": "302e4dbd8a2880b0bbbdef1c5a1808b655694e11"
132
132
  }