@docusaurus/core 0.0.0-4435 → 0.0.0-4440
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/lib/commands/build.js +4 -1
- package/lib/server/configValidation.js +2 -3
- package/lib/server/i18n.js +1 -0
- package/lib/webpack/utils.js +1 -1
- package/package.json +10 -10
package/lib/commands/build.js
CHANGED
|
@@ -23,7 +23,10 @@ const CleanWebpackPlugin_1 = (0, tslib_1.__importDefault)(require("../webpack/pl
|
|
|
23
23
|
const i18n_1 = require("../server/i18n");
|
|
24
24
|
const utils_2 = require("@docusaurus/utils");
|
|
25
25
|
async function build(siteDir, cliOptions = {},
|
|
26
|
-
//
|
|
26
|
+
// When running build, we force terminate the process to prevent async
|
|
27
|
+
// operations from never returning. However, if run as part of docusaurus
|
|
28
|
+
// deploy, we have to let deploy finish.
|
|
29
|
+
// See https://github.com/facebook/docusaurus/pull/2496
|
|
27
30
|
forceTerminate = true) {
|
|
28
31
|
['SIGINT', 'SIGTERM'].forEach((sig) => {
|
|
29
32
|
process.on(sig, () => process.exit());
|
|
@@ -36,9 +36,7 @@ const PluginSchema = utils_validation_1.Joi.alternatives()
|
|
|
36
36
|
.try(utils_validation_1.Joi.function(), utils_validation_1.Joi.array().ordered(utils_validation_1.Joi.function().required(), utils_validation_1.Joi.object().required()), utils_validation_1.Joi.string(), utils_validation_1.Joi.array()
|
|
37
37
|
.ordered(utils_validation_1.Joi.string().required(), utils_validation_1.Joi.object().required())
|
|
38
38
|
.length(2), utils_validation_1.Joi.bool().equal(false))
|
|
39
|
-
//
|
|
40
|
-
// Not sure why Joi makes it complicated to add a custom error message...
|
|
41
|
-
// See https://stackoverflow.com/a/54657686/82609
|
|
39
|
+
// @ts-expect-error: bad lib def, doesn't recognize an array of reports
|
|
42
40
|
.error((errors) => {
|
|
43
41
|
errors.forEach((error) => {
|
|
44
42
|
error.message = ` => Bad Docusaurus plugin value as path [${error.path}].
|
|
@@ -60,6 +58,7 @@ const ThemeSchema = utils_validation_1.Joi.alternatives().try(utils_validation_1
|
|
|
60
58
|
const PresetSchema = utils_validation_1.Joi.alternatives().try(utils_validation_1.Joi.string(), utils_validation_1.Joi.array().items(utils_validation_1.Joi.string().required(), utils_validation_1.Joi.object().required()).length(2));
|
|
61
59
|
const LocaleConfigSchema = utils_validation_1.Joi.object({
|
|
62
60
|
label: utils_validation_1.Joi.string(),
|
|
61
|
+
htmlLang: utils_validation_1.Joi.string(),
|
|
63
62
|
direction: utils_validation_1.Joi.string().equal('ltr', 'rtl').default('ltr'),
|
|
64
63
|
});
|
|
65
64
|
const I18N_CONFIG_SCHEMA = utils_validation_1.Joi.object({
|
package/lib/server/i18n.js
CHANGED
package/lib/webpack/utils.js
CHANGED
|
@@ -159,7 +159,7 @@ function applyConfigureWebpack(configureWebpack, config, isServer, jsLoader, con
|
|
|
159
159
|
exports.applyConfigureWebpack = applyConfigureWebpack;
|
|
160
160
|
function applyConfigurePostCss(configurePostCss, config) {
|
|
161
161
|
var _a, _b;
|
|
162
|
-
//
|
|
162
|
+
// not ideal heuristic but good enough for our usecase?
|
|
163
163
|
function isPostCssLoader(loader) {
|
|
164
164
|
var _a, _b;
|
|
165
165
|
return !!((_b = (_a = loader) === null || _a === void 0 ? void 0 : _a.options) === null || _b === void 0 ? void 0 : _b.postcssOptions);
|
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-4440",
|
|
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-4440",
|
|
45
|
+
"@docusaurus/logger": "0.0.0-4440",
|
|
46
|
+
"@docusaurus/mdx-loader": "0.0.0-4440",
|
|
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-4440",
|
|
49
|
+
"@docusaurus/utils-common": "0.0.0-4440",
|
|
50
|
+
"@docusaurus/utils-validation": "0.0.0-4440",
|
|
51
51
|
"@slorber/static-site-generator-webpack-plugin": "^4.0.0",
|
|
52
52
|
"@svgr/webpack": "^6.0.0",
|
|
53
53
|
"autoprefixer": "^10.3.5",
|
|
@@ -108,8 +108,8 @@
|
|
|
108
108
|
"webpackbar": "^5.0.0-3"
|
|
109
109
|
},
|
|
110
110
|
"devDependencies": {
|
|
111
|
-
"@docusaurus/module-type-aliases": "0.0.0-
|
|
112
|
-
"@docusaurus/types": "0.0.0-
|
|
111
|
+
"@docusaurus/module-type-aliases": "0.0.0-4440",
|
|
112
|
+
"@docusaurus/types": "0.0.0-4440",
|
|
113
113
|
"@types/copy-webpack-plugin": "^8.0.1",
|
|
114
114
|
"@types/detect-port": "^1.3.0",
|
|
115
115
|
"@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": "d13aa3d3a63285610086e000cfb556fa66073368"
|
|
132
132
|
}
|