@docusaurus/core 3.9.0 → 3.9.1-canary-6407

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/site.js +10 -1
  2. package/package.json +11 -11
@@ -57,7 +57,16 @@ async function loadContext(params) {
57
57
  // By default, it is inferred as /<siteConfig.baseUrl>/
58
58
  // eventually including the /<locale>/ suffix
59
59
  const baseUrl = localeConfig.baseUrl;
60
- const outDir = path_1.default.join(path_1.default.resolve(siteDir, baseOutDir), baseUrl);
60
+ // TODO not ideal: we should allow configuring a custom outDir for each locale
61
+ // The site baseUrl should be 100% decoupled from the file system output shape
62
+ // We added this logic to restore v3 retro-compatibility, because by default
63
+ // Docusaurus always wrote to ./build for sites having a baseUrl
64
+ // See also https://github.com/facebook/docusaurus/issues/11433
65
+ // This logic assumes the locale baseUrl will start with the site baseUrl
66
+ // which is the case if an explicit locale baseUrl is not provided
67
+ // but in practice a custom locale baseUrl could be anything now
68
+ const outDirBaseUrl = baseUrl.replace(initialSiteConfig.baseUrl, '/');
69
+ const outDir = path_1.default.join(path_1.default.resolve(siteDir, baseOutDir), outDirBaseUrl);
61
70
  const localizationDir = path_1.default.resolve(siteDir, i18n.path, (0, utils_1.getLocaleConfig)(i18n).path);
62
71
  const siteConfig = {
63
72
  ...initialSiteConfig,
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": "3.9.0",
4
+ "version": "3.9.1-canary-6407",
5
5
  "license": "MIT",
6
6
  "publishConfig": {
7
7
  "access": "public"
@@ -33,13 +33,13 @@
33
33
  "url": "https://github.com/facebook/docusaurus/issues"
34
34
  },
35
35
  "dependencies": {
36
- "@docusaurus/babel": "3.9.0",
37
- "@docusaurus/bundler": "3.9.0",
38
- "@docusaurus/logger": "3.9.0",
39
- "@docusaurus/mdx-loader": "3.9.0",
40
- "@docusaurus/utils": "3.9.0",
41
- "@docusaurus/utils-common": "3.9.0",
42
- "@docusaurus/utils-validation": "3.9.0",
36
+ "@docusaurus/babel": "3.9.1-canary-6407",
37
+ "@docusaurus/bundler": "3.9.1-canary-6407",
38
+ "@docusaurus/logger": "3.9.1-canary-6407",
39
+ "@docusaurus/mdx-loader": "3.9.1-canary-6407",
40
+ "@docusaurus/utils": "3.9.1-canary-6407",
41
+ "@docusaurus/utils-common": "3.9.1-canary-6407",
42
+ "@docusaurus/utils-validation": "3.9.1-canary-6407",
43
43
  "boxen": "^6.2.1",
44
44
  "chalk": "^4.1.2",
45
45
  "chokidar": "^3.5.3",
@@ -77,8 +77,8 @@
77
77
  "webpack-merge": "^6.0.1"
78
78
  },
79
79
  "devDependencies": {
80
- "@docusaurus/module-type-aliases": "3.9.0",
81
- "@docusaurus/types": "3.9.0",
80
+ "@docusaurus/module-type-aliases": "3.9.1-canary-6407",
81
+ "@docusaurus/types": "3.9.1-canary-6407",
82
82
  "@total-typescript/shoehorn": "^0.1.2",
83
83
  "@types/detect-port": "^1.3.3",
84
84
  "@types/react-dom": "^18.2.7",
@@ -98,5 +98,5 @@
98
98
  "engines": {
99
99
  "node": ">=20.0"
100
100
  },
101
- "gitHead": "e93bceb19620c7e6658d42de65f6973aaef209b6"
101
+ "gitHead": "52db585b871bc40443dac28e0d67f3df07e0f0ef"
102
102
  }