@docusaurus/core 0.0.0-5555 → 0.0.0-5556

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.
@@ -37,6 +37,12 @@ exports.DEFAULT_CONFIG = {
37
37
  staticDirectories: [utils_1.DEFAULT_STATIC_DIR_NAME],
38
38
  markdown: {
39
39
  mermaid: false,
40
+ preprocessor: undefined,
41
+ mdx1Compat: {
42
+ comments: true,
43
+ admonitions: true,
44
+ headingIds: true,
45
+ },
40
46
  },
41
47
  };
42
48
  function createPluginSchema(theme) {
@@ -205,6 +211,15 @@ exports.ConfigSchema = utils_validation_1.Joi.object({
205
211
  }).optional(),
206
212
  markdown: utils_validation_1.Joi.object({
207
213
  mermaid: utils_validation_1.Joi.boolean().default(exports.DEFAULT_CONFIG.markdown.mermaid),
214
+ preprocessor: utils_validation_1.Joi.function()
215
+ .arity(1)
216
+ .optional()
217
+ .default(() => exports.DEFAULT_CONFIG.markdown.preprocessor),
218
+ mdx1Compat: utils_validation_1.Joi.object({
219
+ comments: utils_validation_1.Joi.boolean().default(exports.DEFAULT_CONFIG.markdown.mdx1Compat.comments),
220
+ admonitions: utils_validation_1.Joi.boolean().default(exports.DEFAULT_CONFIG.markdown.mdx1Compat.admonitions),
221
+ headingIds: utils_validation_1.Joi.boolean().default(exports.DEFAULT_CONFIG.markdown.mdx1Compat.headingIds),
222
+ }).default(exports.DEFAULT_CONFIG.markdown.mdx1Compat),
208
223
  }).default(exports.DEFAULT_CONFIG.markdown),
209
224
  }).messages({
210
225
  'docusaurus.configValidationWarning': 'Docusaurus config validation warning. Field {#label}: {#warningMessage}',
@@ -25,7 +25,9 @@ function formatStatsErrorMessage(statsJson) {
25
25
  // Also the error causal chain is lost here
26
26
  // We log the stacktrace inside serverEntry.tsx for now (not ideal)
27
27
  const { errors } = (0, formatWebpackMessages_1.default)(statsJson);
28
- return errors.join('\n---\n');
28
+ return errors
29
+ .map((str) => logger_1.default.red(str))
30
+ .join(`\n\n${logger_1.default.yellow('--------------------------')}\n\n`);
29
31
  }
30
32
  return undefined;
31
33
  }
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-5555",
4
+ "version": "0.0.0-5556",
5
5
  "license": "MIT",
6
6
  "publishConfig": {
7
7
  "access": "public"
@@ -43,13 +43,13 @@
43
43
  "@babel/runtime": "^7.21.0",
44
44
  "@babel/runtime-corejs3": "^7.21.0",
45
45
  "@babel/traverse": "^7.21.2",
46
- "@docusaurus/cssnano-preset": "0.0.0-5555",
47
- "@docusaurus/logger": "0.0.0-5555",
48
- "@docusaurus/mdx-loader": "0.0.0-5555",
46
+ "@docusaurus/cssnano-preset": "0.0.0-5556",
47
+ "@docusaurus/logger": "0.0.0-5556",
48
+ "@docusaurus/mdx-loader": "0.0.0-5556",
49
49
  "@docusaurus/react-loadable": "5.5.2",
50
- "@docusaurus/utils": "0.0.0-5555",
51
- "@docusaurus/utils-common": "0.0.0-5555",
52
- "@docusaurus/utils-validation": "0.0.0-5555",
50
+ "@docusaurus/utils": "0.0.0-5556",
51
+ "@docusaurus/utils-common": "0.0.0-5556",
52
+ "@docusaurus/utils-validation": "0.0.0-5556",
53
53
  "@slorber/static-site-generator-webpack-plugin": "^4.0.7",
54
54
  "@svgr/webpack": "^6.5.1",
55
55
  "autoprefixer": "^10.4.13",
@@ -106,8 +106,8 @@
106
106
  "webpackbar": "^5.0.2"
107
107
  },
108
108
  "devDependencies": {
109
- "@docusaurus/module-type-aliases": "0.0.0-5555",
110
- "@docusaurus/types": "0.0.0-5555",
109
+ "@docusaurus/module-type-aliases": "0.0.0-5556",
110
+ "@docusaurus/types": "0.0.0-5556",
111
111
  "@types/detect-port": "^1.3.2",
112
112
  "@types/react-dom": "^18.0.11",
113
113
  "@types/react-router-config": "^5.0.6",
@@ -127,5 +127,5 @@
127
127
  "engines": {
128
128
  "node": ">=16.14"
129
129
  },
130
- "gitHead": "f665597881e6070ac67a5568470e33d4ee7b1346"
130
+ "gitHead": "af59fefe36b8f8cd02bf854d5f41906e631134d6"
131
131
  }