@docusaurus/core 0.0.0-5300 → 0.0.0-5301

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.
@@ -106,19 +106,18 @@ const SiteUrlSchema = utils_validation_1.URISchema.required().custom((value, hel
106
106
  const { pathname } = new URL(String(value));
107
107
  if (pathname !== '/') {
108
108
  helpers.warn('docusaurus.configValidationWarning', {
109
- warningMessage: `the url is not supposed to contain a sub-path like '${pathname}', please use the baseUrl field for sub-paths`,
109
+ warningMessage: `The url is not supposed to contain a sub-path like '${pathname}'. Please use the baseUrl field for sub-paths.`,
110
110
  });
111
111
  }
112
112
  }
113
113
  catch { }
114
- return value;
115
- }, 'siteUrlCustomValidation');
114
+ return (0, utils_1.removeTrailingSlash)(value);
115
+ });
116
116
  // TODO move to @docusaurus/utils-validation
117
117
  exports.ConfigSchema = utils_validation_1.Joi.object({
118
118
  baseUrl: utils_validation_1.Joi.string()
119
119
  .required()
120
- .regex(/\/$/m)
121
- .message('{{#label}} must be a string with a trailing slash.'),
120
+ .custom((value) => (0, utils_1.addLeadingSlash)((0, utils_1.addTrailingSlash)(value))),
122
121
  baseUrlIssueBanner: utils_validation_1.Joi.boolean().default(exports.DEFAULT_CONFIG.baseUrlIssueBanner),
123
122
  favicon: utils_validation_1.Joi.string().optional(),
124
123
  title: utils_validation_1.Joi.string().required(),
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-5300",
4
+ "version": "0.0.0-5301",
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-5300",
47
- "@docusaurus/logger": "0.0.0-5300",
48
- "@docusaurus/mdx-loader": "0.0.0-5300",
46
+ "@docusaurus/cssnano-preset": "0.0.0-5301",
47
+ "@docusaurus/logger": "0.0.0-5301",
48
+ "@docusaurus/mdx-loader": "0.0.0-5301",
49
49
  "@docusaurus/react-loadable": "5.5.2",
50
- "@docusaurus/utils": "0.0.0-5300",
51
- "@docusaurus/utils-common": "0.0.0-5300",
52
- "@docusaurus/utils-validation": "0.0.0-5300",
50
+ "@docusaurus/utils": "0.0.0-5301",
51
+ "@docusaurus/utils-common": "0.0.0-5301",
52
+ "@docusaurus/utils-validation": "0.0.0-5301",
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-5300",
110
- "@docusaurus/types": "0.0.0-5300",
109
+ "@docusaurus/module-type-aliases": "0.0.0-5301",
110
+ "@docusaurus/types": "0.0.0-5301",
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": "13ba8d4b99b19190dfbf2efdec3aa8ff1c526e78"
130
+ "gitHead": "d88376da737a262e4f44e5d5f2949042e4604b9c"
131
131
  }