@docusaurus/core 0.0.0-4676 → 0.0.0-4677
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 +1 -1
- package/lib/commands/external.js +1 -5
- package/lib/commands/start.js +2 -2
- package/lib/server/themes/index.js +1 -1
- package/package.json +10 -10
package/lib/commands/build.js
CHANGED
|
@@ -123,7 +123,7 @@ async function buildLocale({ siteDir, locale, cliOptions, forceTerminate, isLast
|
|
|
123
123
|
plugins.forEach((plugin) => {
|
|
124
124
|
const { configureWebpack, configurePostCss } = plugin;
|
|
125
125
|
if (configurePostCss) {
|
|
126
|
-
clientConfig = (0, utils_1.applyConfigurePostCss)(configurePostCss, clientConfig);
|
|
126
|
+
clientConfig = (0, utils_1.applyConfigurePostCss)(configurePostCss.bind(plugin), clientConfig);
|
|
127
127
|
}
|
|
128
128
|
if (configureWebpack) {
|
|
129
129
|
clientConfig = (0, utils_1.applyConfigureWebpack)(configureWebpack.bind(plugin), // The plugin lifecycle may reference `this`.
|
package/lib/commands/external.js
CHANGED
|
@@ -15,11 +15,7 @@ async function externalCommand(cli, siteDir) {
|
|
|
15
15
|
const plugins = await (0, init_1.default)({ pluginConfigs, context });
|
|
16
16
|
// Plugin Lifecycle - extendCli.
|
|
17
17
|
plugins.forEach((plugin) => {
|
|
18
|
-
|
|
19
|
-
if (!extendCli) {
|
|
20
|
-
return;
|
|
21
|
-
}
|
|
22
|
-
extendCli(cli);
|
|
18
|
+
plugin.extendCli?.(cli);
|
|
23
19
|
});
|
|
24
20
|
}
|
|
25
21
|
exports.default = externalCommand;
|
package/lib/commands/start.js
CHANGED
|
@@ -116,10 +116,10 @@ async function start(siteDir, cliOptions) {
|
|
|
116
116
|
plugins.forEach((plugin) => {
|
|
117
117
|
const { configureWebpack, configurePostCss } = plugin;
|
|
118
118
|
if (configurePostCss) {
|
|
119
|
-
config = (0, utils_2.applyConfigurePostCss)(configurePostCss, config);
|
|
119
|
+
config = (0, utils_2.applyConfigurePostCss)(configurePostCss.bind(plugin), config);
|
|
120
120
|
}
|
|
121
121
|
if (configureWebpack) {
|
|
122
|
-
config = (0, utils_2.applyConfigureWebpack)(configureWebpack.bind(plugin), // The plugin lifecycle may reference `this`.
|
|
122
|
+
config = (0, utils_2.applyConfigureWebpack)(configureWebpack.bind(plugin), // The plugin lifecycle may reference `this`.
|
|
123
123
|
config, false, props.siteConfig.webpack?.jsLoader, plugin.content);
|
|
124
124
|
}
|
|
125
125
|
});
|
|
@@ -39,7 +39,7 @@ async function loadThemeAliases(themePaths, userThemePaths) {
|
|
|
39
39
|
exports.loadThemeAliases = loadThemeAliases;
|
|
40
40
|
function loadPluginsThemeAliases({ siteDir, plugins, }) {
|
|
41
41
|
const pluginThemes = plugins
|
|
42
|
-
.map((plugin) =>
|
|
42
|
+
.map((plugin) => plugin.getThemePath?.())
|
|
43
43
|
.filter((x) => Boolean(x));
|
|
44
44
|
const userTheme = path_1.default.resolve(siteDir, utils_1.THEME_PATH);
|
|
45
45
|
return loadThemeAliases([ThemeFallbackDir, ...pluginThemes], [userTheme]);
|
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-4677",
|
|
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-4677",
|
|
45
|
+
"@docusaurus/logger": "0.0.0-4677",
|
|
46
|
+
"@docusaurus/mdx-loader": "0.0.0-4677",
|
|
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-4677",
|
|
49
|
+
"@docusaurus/utils-common": "0.0.0-4677",
|
|
50
|
+
"@docusaurus/utils-validation": "0.0.0-4677",
|
|
51
51
|
"@slorber/static-site-generator-webpack-plugin": "^4.0.1",
|
|
52
52
|
"@svgr/webpack": "^6.2.1",
|
|
53
53
|
"autoprefixer": "^10.4.2",
|
|
@@ -106,8 +106,8 @@
|
|
|
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-4677",
|
|
110
|
+
"@docusaurus/types": "0.0.0-4677",
|
|
111
111
|
"@types/detect-port": "^1.3.2",
|
|
112
112
|
"@types/nprogress": "^0.2.0",
|
|
113
113
|
"@types/react-dom": "^17.0.11",
|
|
@@ -128,5 +128,5 @@
|
|
|
128
128
|
"engines": {
|
|
129
129
|
"node": ">=14"
|
|
130
130
|
},
|
|
131
|
-
"gitHead": "
|
|
131
|
+
"gitHead": "e4f370386120aba552fb9783ac8bcea85bf7fe53"
|
|
132
132
|
}
|