@docusaurus/core 0.0.0-4767 → 0.0.0-4770

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.
@@ -21,6 +21,11 @@ function addBaseUrl(siteUrl, baseUrl, url, { forcePrependBaseUrl = false, absolu
21
21
  if (forcePrependBaseUrl) {
22
22
  return baseUrl + url.replace(/^\//, '');
23
23
  }
24
+ // /baseUrl -> /baseUrl/
25
+ // https://github.com/facebook/docusaurus/issues/6315
26
+ if (url === baseUrl.replace(/\/$/, '')) {
27
+ return baseUrl;
28
+ }
24
29
  // We should avoid adding the baseurl twice if it's already there
25
30
  const shouldAddBaseUrl = !url.startsWith(baseUrl);
26
31
  const basePath = shouldAddBaseUrl ? baseUrl + url.replace(/^\//, '') : url;
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-4767",
4
+ "version": "0.0.0-4770",
5
5
  "license": "MIT",
6
6
  "publishConfig": {
7
7
  "access": "public"
@@ -39,19 +39,19 @@
39
39
  "@babel/preset-react": "^7.16.7",
40
40
  "@babel/preset-typescript": "^7.16.7",
41
41
  "@babel/runtime": "^7.17.8",
42
- "@babel/runtime-corejs3": "^7.17.7",
42
+ "@babel/runtime-corejs3": "^7.17.8",
43
43
  "@babel/traverse": "^7.17.3",
44
- "@docusaurus/cssnano-preset": "0.0.0-4767",
45
- "@docusaurus/logger": "0.0.0-4767",
46
- "@docusaurus/mdx-loader": "0.0.0-4767",
44
+ "@docusaurus/cssnano-preset": "0.0.0-4770",
45
+ "@docusaurus/logger": "0.0.0-4770",
46
+ "@docusaurus/mdx-loader": "0.0.0-4770",
47
47
  "@docusaurus/react-loadable": "5.5.2",
48
- "@docusaurus/utils": "0.0.0-4767",
49
- "@docusaurus/utils-common": "0.0.0-4767",
50
- "@docusaurus/utils-validation": "0.0.0-4767",
48
+ "@docusaurus/utils": "0.0.0-4770",
49
+ "@docusaurus/utils-common": "0.0.0-4770",
50
+ "@docusaurus/utils-validation": "0.0.0-4770",
51
51
  "@slorber/static-site-generator-webpack-plugin": "^4.0.4",
52
52
  "@svgr/webpack": "^6.2.1",
53
53
  "autoprefixer": "^10.4.4",
54
- "babel-loader": "^8.2.3",
54
+ "babel-loader": "^8.2.4",
55
55
  "babel-plugin-dynamic-import-node": "2.3.0",
56
56
  "boxen": "^6.2.1",
57
57
  "chokidar": "^3.5.3",
@@ -63,7 +63,7 @@
63
63
  "core-js": "^3.21.1",
64
64
  "css-loader": "^6.7.1",
65
65
  "css-minimizer-webpack-plugin": "^3.4.1",
66
- "cssnano": "^5.1.4",
66
+ "cssnano": "^5.1.5",
67
67
  "del": "^6.0.0",
68
68
  "detect-port": "^1.3.0",
69
69
  "escape-html": "^1.0.3",
@@ -106,8 +106,8 @@
106
106
  "webpackbar": "^5.0.2"
107
107
  },
108
108
  "devDependencies": {
109
- "@docusaurus/module-type-aliases": "0.0.0-4767",
110
- "@docusaurus/types": "0.0.0-4767",
109
+ "@docusaurus/module-type-aliases": "0.0.0-4770",
110
+ "@docusaurus/types": "0.0.0-4770",
111
111
  "@types/detect-port": "^1.3.2",
112
112
  "@types/nprogress": "^0.2.0",
113
113
  "@types/react-dom": "^17.0.14",
@@ -128,5 +128,5 @@
128
128
  "engines": {
129
129
  "node": ">=14"
130
130
  },
131
- "gitHead": "43401a74f943ccd154d080a713db58824191ff77"
131
+ "gitHead": "5ed55bfafe76d7f7f20f57bde366297eaa1aa425"
132
132
  }