@docusaurus/core 0.0.0-4510 → 0.0.0-4517
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
|
@@ -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 ?
|
|
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-
|
|
4
|
+
"version": "0.0.0-4517",
|
|
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-
|
|
45
|
-
"@docusaurus/logger": "0.0.0-
|
|
46
|
-
"@docusaurus/mdx-loader": "0.0.0-
|
|
44
|
+
"@docusaurus/cssnano-preset": "0.0.0-4517",
|
|
45
|
+
"@docusaurus/logger": "0.0.0-4517",
|
|
46
|
+
"@docusaurus/mdx-loader": "0.0.0-4517",
|
|
47
47
|
"@docusaurus/react-loadable": "5.5.2",
|
|
48
|
-
"@docusaurus/utils": "0.0.0-
|
|
49
|
-
"@docusaurus/utils-common": "0.0.0-
|
|
50
|
-
"@docusaurus/utils-validation": "0.0.0-
|
|
48
|
+
"@docusaurus/utils": "0.0.0-4517",
|
|
49
|
+
"@docusaurus/utils-common": "0.0.0-4517",
|
|
50
|
+
"@docusaurus/utils-validation": "0.0.0-4517",
|
|
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-
|
|
109
|
-
"@docusaurus/types": "0.0.0-
|
|
108
|
+
"@docusaurus/module-type-aliases": "0.0.0-4517",
|
|
109
|
+
"@docusaurus/types": "0.0.0-4517",
|
|
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": "
|
|
131
|
+
"gitHead": "8025e5a9a77a8efc6977252c1e43c150f12bc15c"
|
|
132
132
|
}
|