@docusaurus/core 0.0.0-4470 → 0.0.0-4479
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
|
@@ -34,7 +34,7 @@ cli
|
|
|
34
34
|
.description('Build website.')
|
|
35
35
|
.option(
|
|
36
36
|
'--bundle-analyzer',
|
|
37
|
-
'visualize size of webpack output files with an interactive zoomable
|
|
37
|
+
'visualize size of webpack output files with an interactive zoomable tree map (default: false)',
|
|
38
38
|
)
|
|
39
39
|
.option(
|
|
40
40
|
'--out-dir <dir>',
|
package/lib/commands/build.js
CHANGED
|
@@ -63,7 +63,7 @@ forceTerminate = true) {
|
|
|
63
63
|
logger_1.default.info `Website will be built for all these locales: ${i18n.locales}`;
|
|
64
64
|
}
|
|
65
65
|
// We need the default locale to always be the 1st in the list
|
|
66
|
-
// If we build it last, it would "erase" the localized sites built in
|
|
66
|
+
// If we build it last, it would "erase" the localized sites built in sub-folders
|
|
67
67
|
const orderedLocales = [
|
|
68
68
|
i18n.defaultLocale,
|
|
69
69
|
...i18n.locales.filter((locale) => locale !== i18n.defaultLocale),
|
|
@@ -93,7 +93,7 @@ async function buildLocale({ siteDir, locale, cliOptions, forceTerminate, isLast
|
|
|
93
93
|
plugins: [
|
|
94
94
|
// Remove/clean build folders before building bundles.
|
|
95
95
|
new CleanWebpackPlugin_1.default({ verbose: false }),
|
|
96
|
-
// Visualize size of webpack output files with an interactive zoomable
|
|
96
|
+
// Visualize size of webpack output files with an interactive zoomable tree map.
|
|
97
97
|
cliOptions.bundleAnalyzer && new webpack_bundle_analyzer_1.BundleAnalyzerPlugin(),
|
|
98
98
|
// Generate client manifests file that will be used for server bundle.
|
|
99
99
|
new react_loadable_ssr_addon_v5_slorber_1.default({
|
package/lib/server/index.js
CHANGED
|
@@ -150,7 +150,7 @@ function createBootstrapPlugin({ siteConfig, }) {
|
|
|
150
150
|
},
|
|
151
151
|
};
|
|
152
152
|
}
|
|
153
|
-
//
|
|
153
|
+
// Configure Webpack fallback mdx loader for md/mdx files out of content-plugin folders
|
|
154
154
|
// Adds a "fallback" mdx loader for mdx files that are not processed by content plugins
|
|
155
155
|
// This allows to do things such as importing repo/README.md as a partial from another doc
|
|
156
156
|
// Not ideal solution though, but good enough for now
|
|
@@ -23,7 +23,7 @@ const TranslatableSourceCodeExtension = new Set([
|
|
|
23
23
|
'.ts',
|
|
24
24
|
'.tsx',
|
|
25
25
|
// TODO support md/mdx too? (may be overkill)
|
|
26
|
-
// need to compile the MDX to JSX first and remove
|
|
26
|
+
// need to compile the MDX to JSX first and remove front matter
|
|
27
27
|
// '.md',
|
|
28
28
|
// '.mdx',
|
|
29
29
|
]);
|
package/lib/webpack/utils.js
CHANGED
|
@@ -164,7 +164,7 @@ function applyConfigureWebpack(configureWebpack, config, isServer, jsLoader, con
|
|
|
164
164
|
exports.applyConfigureWebpack = applyConfigureWebpack;
|
|
165
165
|
function applyConfigurePostCss(configurePostCss, config) {
|
|
166
166
|
var _a, _b;
|
|
167
|
-
// not ideal heuristic but good enough for our
|
|
167
|
+
// not ideal heuristic but good enough for our use-case?
|
|
168
168
|
function isPostCssLoader(loader) {
|
|
169
169
|
var _a, _b;
|
|
170
170
|
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-4479",
|
|
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-4479",
|
|
45
|
+
"@docusaurus/logger": "0.0.0-4479",
|
|
46
|
+
"@docusaurus/mdx-loader": "0.0.0-4479",
|
|
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-4479",
|
|
49
|
+
"@docusaurus/utils-common": "0.0.0-4479",
|
|
50
|
+
"@docusaurus/utils-validation": "0.0.0-4479",
|
|
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.0-3"
|
|
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-4479",
|
|
109
|
+
"@docusaurus/types": "0.0.0-4479",
|
|
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",
|
|
@@ -125,5 +125,5 @@
|
|
|
125
125
|
"engines": {
|
|
126
126
|
"node": ">=14"
|
|
127
127
|
},
|
|
128
|
-
"gitHead": "
|
|
128
|
+
"gitHead": "c85b2f2a43cfed30c1621ccb21057dfd19770a33"
|
|
129
129
|
}
|