@docusaurus/core 0.0.0-4445 → 0.0.0-4452

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.
Files changed (2) hide show
  1. package/lib/server/index.js +12 -1
  2. package/package.json +10 -10
@@ -208,9 +208,19 @@ async function load(siteDir, options = {}) {
208
208
  // Side-effect to replace the untranslated themeConfig by the translated one
209
209
  context.siteConfig.themeConfig = themeConfigTranslated;
210
210
  (0, duplicateRoutes_1.handleDuplicateRoutes)(pluginsRouteConfigs, siteConfig.onDuplicateRoutes);
211
+ const genWarning = (0, utils_1.generate)(generatedFilesDir, 'DONT-EDIT-THIS-FOLDER', `This folder stores temp files that Docusaurus' client bundler accesses.
212
+ DO NOT hand-modify files in this folder because they will be overwritten in the
213
+ next build. You can clear all build artifacts (including this folder) with the
214
+ \`docusaurus clear\` command.
215
+ `);
211
216
  // Site config must be generated after plugins
212
217
  // We want the generated config to have been normalized by the plugins!
213
- const genSiteConfig = (0, utils_1.generate)(generatedFilesDir, utils_1.DEFAULT_CONFIG_FILE_NAME, `export default ${JSON.stringify(siteConfig, null, 2)};`);
218
+ const genSiteConfig = (0, utils_1.generate)(generatedFilesDir, utils_1.DEFAULT_CONFIG_FILE_NAME, `/*
219
+ AUTOGENERATED - DON'T EDIT
220
+ Your edits in this file will be overwritten in the next build!
221
+ Modify the docusaurus.config.js file at your site's root instead.
222
+ */
223
+ export default ${JSON.stringify(siteConfig, null, 2)};`);
214
224
  plugins.push(createBootstrapPlugin({ siteConfig }));
215
225
  plugins.push(createMDXFallbackPlugin({ siteDir, siteConfig }));
216
226
  // Load client modules.
@@ -252,6 +262,7 @@ ${Object.keys(registry)
252
262
  checkDocusaurusPackagesVersion(siteMetadata);
253
263
  const genSiteMetadata = (0, utils_1.generate)(generatedFilesDir, 'site-metadata.json', JSON.stringify(siteMetadata, null, 2));
254
264
  await Promise.all([
265
+ genWarning,
255
266
  genClientModules,
256
267
  genSiteConfig,
257
268
  genRegistry,
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-4445",
4
+ "version": "0.0.0-4452",
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-4445",
45
- "@docusaurus/logger": "0.0.0-4445",
46
- "@docusaurus/mdx-loader": "0.0.0-4445",
44
+ "@docusaurus/cssnano-preset": "0.0.0-4452",
45
+ "@docusaurus/logger": "0.0.0-4452",
46
+ "@docusaurus/mdx-loader": "0.0.0-4452",
47
47
  "@docusaurus/react-loadable": "5.5.2",
48
- "@docusaurus/utils": "0.0.0-4445",
49
- "@docusaurus/utils-common": "0.0.0-4445",
50
- "@docusaurus/utils-validation": "0.0.0-4445",
48
+ "@docusaurus/utils": "0.0.0-4452",
49
+ "@docusaurus/utils-common": "0.0.0-4452",
50
+ "@docusaurus/utils-validation": "0.0.0-4452",
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-4445",
112
- "@docusaurus/types": "0.0.0-4445",
111
+ "@docusaurus/module-type-aliases": "0.0.0-4452",
112
+ "@docusaurus/types": "0.0.0-4452",
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": "58486dd4a53a96914969980a79545119b51247ea"
131
+ "gitHead": "48cae5712e0a40d5f7e5c2669edcf2de8ae2533f"
132
132
  }