@docusaurus/core 0.0.0-4694 → 0.0.0-4697
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.
|
@@ -95,8 +95,7 @@ export default function ${wrapperComponentName}(props) {
|
|
|
95
95
|
);
|
|
96
96
|
}
|
|
97
97
|
`;
|
|
98
|
-
await fs_extra_1.default.
|
|
99
|
-
await fs_extra_1.default.writeFile(toPath, content);
|
|
98
|
+
await fs_extra_1.default.outputFile(toPath, content);
|
|
100
99
|
return { createdFiles: [toPath] };
|
|
101
100
|
}
|
|
102
101
|
exports.wrap = wrap;
|
|
@@ -20,7 +20,7 @@ function sortAliases(aliases) {
|
|
|
20
20
|
// Alphabetical order by default
|
|
21
21
|
const entries = lodash_1.default.sortBy(Object.entries(aliases), ([alias]) => alias);
|
|
22
22
|
// @theme/NavbarItem should be after @theme/NavbarItem/LocaleDropdown
|
|
23
|
-
entries.sort(([alias1], [alias2]) => alias1.includes(`${alias2}/`) ? -1 : 0);
|
|
23
|
+
entries.sort(([alias1], [alias2]) => alias1.includes(`${alias2}/`) ? -1 : alias2.includes(`${alias1}/`) ? 1 : 0);
|
|
24
24
|
return Object.fromEntries(entries);
|
|
25
25
|
}
|
|
26
26
|
exports.sortAliases = sortAliases;
|
|
@@ -78,8 +78,7 @@ Maybe you should remove them? ${unknownKeys}`;
|
|
|
78
78
|
// Avoid creating empty translation files
|
|
79
79
|
if (Object.keys(mergedContent).length > 0) {
|
|
80
80
|
logger_1.default.info `number=${Object.keys(mergedContent).length} translations will be written at path=${(0, utils_1.toMessageRelativeFilePath)(filePath)}.`;
|
|
81
|
-
await fs_extra_1.default.
|
|
82
|
-
await fs_extra_1.default.writeFile(filePath, `${JSON.stringify(mergedContent, null, 2)}\n`);
|
|
81
|
+
await fs_extra_1.default.outputFile(filePath, `${JSON.stringify(mergedContent, null, 2)}\n`);
|
|
83
82
|
}
|
|
84
83
|
}
|
|
85
84
|
exports.writeTranslationFileContent = writeTranslationFileContent;
|
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-4697",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"publishConfig": {
|
|
7
7
|
"access": "public"
|
|
@@ -41,13 +41,13 @@
|
|
|
41
41
|
"@babel/runtime": "^7.17.2",
|
|
42
42
|
"@babel/runtime-corejs3": "^7.17.2",
|
|
43
43
|
"@babel/traverse": "^7.17.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-4697",
|
|
45
|
+
"@docusaurus/logger": "0.0.0-4697",
|
|
46
|
+
"@docusaurus/mdx-loader": "0.0.0-4697",
|
|
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-4697",
|
|
49
|
+
"@docusaurus/utils-common": "0.0.0-4697",
|
|
50
|
+
"@docusaurus/utils-validation": "0.0.0-4697",
|
|
51
51
|
"@slorber/static-site-generator-webpack-plugin": "^4.0.1",
|
|
52
52
|
"@svgr/webpack": "^6.2.1",
|
|
53
53
|
"autoprefixer": "^10.4.2",
|
|
@@ -61,7 +61,7 @@
|
|
|
61
61
|
"commander": "^5.1.0",
|
|
62
62
|
"copy-webpack-plugin": "^10.2.4",
|
|
63
63
|
"core-js": "^3.21.1",
|
|
64
|
-
"css-loader": "^6.
|
|
64
|
+
"css-loader": "^6.7.1",
|
|
65
65
|
"css-minimizer-webpack-plugin": "^3.4.1",
|
|
66
66
|
"cssnano": "^5.0.17",
|
|
67
67
|
"del": "^6.0.0",
|
|
@@ -77,9 +77,9 @@
|
|
|
77
77
|
"is-root": "^2.1.0",
|
|
78
78
|
"leven": "^3.1.0",
|
|
79
79
|
"lodash": "^4.17.21",
|
|
80
|
-
"mini-css-extract-plugin": "^2.
|
|
80
|
+
"mini-css-extract-plugin": "^2.6.0",
|
|
81
81
|
"nprogress": "^0.2.0",
|
|
82
|
-
"postcss": "^8.4.
|
|
82
|
+
"postcss": "^8.4.8",
|
|
83
83
|
"postcss-loader": "^6.2.1",
|
|
84
84
|
"prompts": "^2.4.2",
|
|
85
85
|
"react-dev-utils": "^12.0.0",
|
|
@@ -99,18 +99,18 @@
|
|
|
99
99
|
"update-notifier": "^5.1.0",
|
|
100
100
|
"url-loader": "^4.1.1",
|
|
101
101
|
"wait-on": "^6.0.1",
|
|
102
|
-
"webpack": "^5.
|
|
102
|
+
"webpack": "^5.70.0",
|
|
103
103
|
"webpack-bundle-analyzer": "^4.5.0",
|
|
104
104
|
"webpack-dev-server": "^4.7.4",
|
|
105
105
|
"webpack-merge": "^5.8.0",
|
|
106
106
|
"webpackbar": "^5.0.2"
|
|
107
107
|
},
|
|
108
108
|
"devDependencies": {
|
|
109
|
-
"@docusaurus/module-type-aliases": "0.0.0-
|
|
110
|
-
"@docusaurus/types": "0.0.0-
|
|
109
|
+
"@docusaurus/module-type-aliases": "0.0.0-4697",
|
|
110
|
+
"@docusaurus/types": "0.0.0-4697",
|
|
111
111
|
"@types/detect-port": "^1.3.2",
|
|
112
112
|
"@types/nprogress": "^0.2.0",
|
|
113
|
-
"@types/react-dom": "^17.0.
|
|
113
|
+
"@types/react-dom": "^17.0.13",
|
|
114
114
|
"@types/react-router-config": "^5.0.6",
|
|
115
115
|
"@types/rtl-detect": "^1.0.0",
|
|
116
116
|
"@types/serve-handler": "^6.1.1",
|
|
@@ -128,5 +128,5 @@
|
|
|
128
128
|
"engines": {
|
|
129
129
|
"node": ">=14"
|
|
130
130
|
},
|
|
131
|
-
"gitHead": "
|
|
131
|
+
"gitHead": "ffc86600c40e21326a559bfb3e983274610e9b3d"
|
|
132
132
|
}
|