@docusaurus/core 0.0.0-5329 → 0.0.0-5331

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.
@@ -108,9 +108,7 @@ const SiteUrlSchema = utils_validation_1.Joi.string()
108
108
  try {
109
109
  const { pathname } = new URL(value);
110
110
  if (pathname !== '/') {
111
- helpers.warn('docusaurus.configValidationWarning', {
112
- warningMessage: `The url is not supposed to contain a sub-path like '${pathname}'. Please use the baseUrl field for sub-paths.`,
113
- });
111
+ return helpers.error('docusaurus.subPathError', { pathname });
114
112
  }
115
113
  }
116
114
  catch {
@@ -120,6 +118,7 @@ const SiteUrlSchema = utils_validation_1.Joi.string()
120
118
  })
121
119
  .messages({
122
120
  'any.invalid': '"{#value}" does not look like a valid URL. Make sure it has a protocol; for example, "https://example.com".',
121
+ 'docusaurus.subPathError': 'The url is not supposed to contain a sub-path like "{#pathname}". Please use the baseUrl field for sub-paths.',
123
122
  });
124
123
  // TODO move to @docusaurus/utils-validation
125
124
  exports.ConfigSchema = utils_validation_1.Joi.object({
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-5329",
4
+ "version": "0.0.0-5331",
5
5
  "license": "MIT",
6
6
  "publishConfig": {
7
7
  "access": "public"
@@ -43,13 +43,13 @@
43
43
  "@babel/runtime": "^7.19.0",
44
44
  "@babel/runtime-corejs3": "^7.19.0",
45
45
  "@babel/traverse": "^7.19.0",
46
- "@docusaurus/cssnano-preset": "0.0.0-5329",
47
- "@docusaurus/logger": "0.0.0-5329",
48
- "@docusaurus/mdx-loader": "0.0.0-5329",
46
+ "@docusaurus/cssnano-preset": "0.0.0-5331",
47
+ "@docusaurus/logger": "0.0.0-5331",
48
+ "@docusaurus/mdx-loader": "0.0.0-5331",
49
49
  "@docusaurus/react-loadable": "5.5.2",
50
- "@docusaurus/utils": "0.0.0-5329",
51
- "@docusaurus/utils-common": "0.0.0-5329",
52
- "@docusaurus/utils-validation": "0.0.0-5329",
50
+ "@docusaurus/utils": "0.0.0-5331",
51
+ "@docusaurus/utils-common": "0.0.0-5331",
52
+ "@docusaurus/utils-validation": "0.0.0-5331",
53
53
  "@slorber/static-site-generator-webpack-plugin": "^4.0.7",
54
54
  "@svgr/webpack": "^6.3.1",
55
55
  "autoprefixer": "^10.4.8",
@@ -106,8 +106,8 @@
106
106
  "webpackbar": "^5.0.2"
107
107
  },
108
108
  "devDependencies": {
109
- "@docusaurus/module-type-aliases": "0.0.0-5329",
110
- "@docusaurus/types": "0.0.0-5329",
109
+ "@docusaurus/module-type-aliases": "0.0.0-5331",
110
+ "@docusaurus/types": "0.0.0-5331",
111
111
  "@types/detect-port": "^1.3.2",
112
112
  "@types/react-dom": "^18.0.6",
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": "588759b03ab3c7096e52a0fbc49432b41030b987"
130
+ "gitHead": "a232eb8aec2b86c4a47add50291c0cdf874b8759"
131
131
  }