diff --git a/packages/create-docusaurus/package.json b/packages/create-docusaurus/package.json
index faca98e88eb3..90c3fed483a5 100755
--- a/packages/create-docusaurus/package.json
+++ b/packages/create-docusaurus/package.json
@@ -22,8 +22,8 @@
},
"license": "MIT",
"dependencies": {
- "@docusaurus/logger": "^3.0.0-alpha.0",
- "@docusaurus/utils": "^3.0.0-alpha.0",
+ "@docusaurus/logger": "3.0.0-alpha.0",
+ "@docusaurus/utils": "3.0.0-alpha.0",
"commander": "^5.1.0",
"fs-extra": "^11.1.0",
"lodash": "^4.17.21",
diff --git a/packages/create-docusaurus/templates/classic-typescript/package.json b/packages/create-docusaurus/templates/classic-typescript/package.json
index fa98589daaa4..3f03ca17b7a2 100644
--- a/packages/create-docusaurus/templates/classic-typescript/package.json
+++ b/packages/create-docusaurus/templates/classic-typescript/package.json
@@ -15,8 +15,8 @@
"typecheck": "tsc"
},
"dependencies": {
- "@docusaurus/core": "^3.0.0-alpha.0",
- "@docusaurus/preset-classic": "^3.0.0-alpha.0",
+ "@docusaurus/core": "3.0.0-alpha.0",
+ "@docusaurus/preset-classic": "3.0.0-alpha.0",
"@mdx-js/react": "^2.3.0",
"clsx": "^1.2.1",
"prism-react-renderer": "^1.3.5",
@@ -24,8 +24,8 @@
"react-dom": "^18.0.0"
},
"devDependencies": {
- "@docusaurus/module-type-aliases": "^3.0.0-alpha.0",
- "@docusaurus/tsconfig": "^3.0.0-alpha.0",
+ "@docusaurus/module-type-aliases": "3.0.0-alpha.0",
+ "@docusaurus/tsconfig": "3.0.0-alpha.0",
"typescript": "^5.0.4"
},
"browserslist": {
diff --git a/packages/create-docusaurus/templates/classic/package.json b/packages/create-docusaurus/templates/classic/package.json
index 73111842fe12..a7e8136cd594 100644
--- a/packages/create-docusaurus/templates/classic/package.json
+++ b/packages/create-docusaurus/templates/classic/package.json
@@ -14,8 +14,8 @@
"write-heading-ids": "docusaurus write-heading-ids"
},
"dependencies": {
- "@docusaurus/core": "^3.0.0-alpha.0",
- "@docusaurus/preset-classic": "^3.0.0-alpha.0",
+ "@docusaurus/core": "3.0.0-alpha.0",
+ "@docusaurus/preset-classic": "3.0.0-alpha.0",
"@mdx-js/react": "^2.3.0",
"clsx": "^1.2.1",
"prism-react-renderer": "^1.3.5",
@@ -23,7 +23,7 @@
"react-dom": "^18.0.0"
},
"devDependencies": {
- "@docusaurus/module-type-aliases": "^3.0.0-alpha.0"
+ "@docusaurus/module-type-aliases": "3.0.0-alpha.0"
},
"browserslist": {
"production": [
diff --git a/packages/docusaurus-mdx-loader/package.json b/packages/docusaurus-mdx-loader/package.json
index 01e7abc64f0b..94e6235631ad 100644
--- a/packages/docusaurus-mdx-loader/package.json
+++ b/packages/docusaurus-mdx-loader/package.json
@@ -20,9 +20,9 @@
"dependencies": {
"@babel/parser": "^7.21.2",
"@babel/traverse": "^7.21.2",
- "@docusaurus/logger": "^3.0.0-alpha.0",
- "@docusaurus/utils": "^3.0.0-alpha.0",
- "@docusaurus/utils-validation": "^3.0.0-alpha.0",
+ "@docusaurus/logger": "3.0.0-alpha.0",
+ "@docusaurus/utils": "3.0.0-alpha.0",
+ "@docusaurus/utils-validation": "3.0.0-alpha.0",
"@mdx-js/mdx": "^2.1.5",
"escape-html": "^1.0.3",
"estree-util-value-to-estree": "^2.1.0",
@@ -30,13 +30,13 @@
"fs-extra": "^11.1.0",
"hastscript": "^7.1.0",
"image-size": "^1.0.2",
- "mdast-util-to-string": "^3.0.0",
"mdast-util-mdx": "^2.0.0",
+ "mdast-util-to-string": "^3.0.0",
"rehype-raw": "^6.1.1",
"remark-comment": "^1.0.0",
- "remark-gfm": "^3.0.1",
"remark-directive": "^2.0.1",
"remark-emoji": "^2.2.0",
+ "remark-gfm": "^3.0.1",
"stringify-object": "^3.3.0",
"tslib": "^2.5.0",
"unified": "^10.1.2",
@@ -45,7 +45,7 @@
"webpack": "^5.76.0"
},
"devDependencies": {
- "@docusaurus/types": "^3.0.0-alpha.0",
+ "@docusaurus/types": "3.0.0-alpha.0",
"@types/escape-html": "^1.0.2",
"@types/mdast": "^3.0.10",
"@types/stringify-object": "^3.3.1",
diff --git a/packages/docusaurus-migrate/package.json b/packages/docusaurus-migrate/package.json
index 260f99276219..60e97e854877 100644
--- a/packages/docusaurus-migrate/package.json
+++ b/packages/docusaurus-migrate/package.json
@@ -24,8 +24,8 @@
"dependencies": {
"@babel/core": "^7.20.12",
"@babel/preset-env": "^7.20.2",
- "@docusaurus/logger": "^3.0.0-alpha.0",
- "@docusaurus/utils": "^3.0.0-alpha.0",
+ "@docusaurus/logger": "3.0.0-alpha.0",
+ "@docusaurus/utils": "3.0.0-alpha.0",
"@mapbox/hast-util-to-jsx": "^2.0.0",
"color": "^4.2.3",
"commander": "^5.1.0",
diff --git a/packages/docusaurus-module-type-aliases/package.json b/packages/docusaurus-module-type-aliases/package.json
index 01208d334611..1b1b60cd7cc7 100644
--- a/packages/docusaurus-module-type-aliases/package.json
+++ b/packages/docusaurus-module-type-aliases/package.json
@@ -13,7 +13,7 @@
},
"dependencies": {
"@docusaurus/react-loadable": "5.5.2",
- "@docusaurus/types": "^3.0.0-alpha.0",
+ "@docusaurus/types": "3.0.0-alpha.0",
"@types/history": "^4.7.11",
"@types/react": "*",
"@types/react-router-config": "*",
diff --git a/packages/docusaurus-plugin-client-redirects/package.json b/packages/docusaurus-plugin-client-redirects/package.json
index f62eca571eaf..9f2ee7f23bea 100644
--- a/packages/docusaurus-plugin-client-redirects/package.json
+++ b/packages/docusaurus-plugin-client-redirects/package.json
@@ -18,18 +18,18 @@
},
"license": "MIT",
"dependencies": {
- "@docusaurus/core": "^3.0.0-alpha.0",
- "@docusaurus/logger": "^3.0.0-alpha.0",
- "@docusaurus/utils": "^3.0.0-alpha.0",
- "@docusaurus/utils-common": "^3.0.0-alpha.0",
- "@docusaurus/utils-validation": "^3.0.0-alpha.0",
+ "@docusaurus/core": "3.0.0-alpha.0",
+ "@docusaurus/logger": "3.0.0-alpha.0",
+ "@docusaurus/utils": "3.0.0-alpha.0",
+ "@docusaurus/utils-common": "3.0.0-alpha.0",
+ "@docusaurus/utils-validation": "3.0.0-alpha.0",
"eta": "^2.0.1",
"fs-extra": "^11.1.0",
"lodash": "^4.17.21",
"tslib": "^2.5.0"
},
"devDependencies": {
- "@docusaurus/types": "^3.0.0-alpha.0"
+ "@docusaurus/types": "3.0.0-alpha.0"
},
"peerDependencies": {
"react": "^18.0.0",
diff --git a/packages/docusaurus-plugin-content-blog/package.json b/packages/docusaurus-plugin-content-blog/package.json
index 5855868fcad1..1248c15f22c4 100644
--- a/packages/docusaurus-plugin-content-blog/package.json
+++ b/packages/docusaurus-plugin-content-blog/package.json
@@ -18,13 +18,13 @@
},
"license": "MIT",
"dependencies": {
- "@docusaurus/core": "^3.0.0-alpha.0",
- "@docusaurus/logger": "^3.0.0-alpha.0",
- "@docusaurus/mdx-loader": "^3.0.0-alpha.0",
- "@docusaurus/types": "^3.0.0-alpha.0",
- "@docusaurus/utils": "^3.0.0-alpha.0",
- "@docusaurus/utils-common": "^3.0.0-alpha.0",
- "@docusaurus/utils-validation": "^3.0.0-alpha.0",
+ "@docusaurus/core": "3.0.0-alpha.0",
+ "@docusaurus/logger": "3.0.0-alpha.0",
+ "@docusaurus/mdx-loader": "3.0.0-alpha.0",
+ "@docusaurus/types": "3.0.0-alpha.0",
+ "@docusaurus/utils": "3.0.0-alpha.0",
+ "@docusaurus/utils-common": "3.0.0-alpha.0",
+ "@docusaurus/utils-validation": "3.0.0-alpha.0",
"cheerio": "^1.0.0-rc.12",
"feed": "^4.2.2",
"fs-extra": "^11.1.0",
diff --git a/packages/docusaurus-plugin-content-docs/package.json b/packages/docusaurus-plugin-content-docs/package.json
index 41def9e00e9f..5c2bf83fea7e 100644
--- a/packages/docusaurus-plugin-content-docs/package.json
+++ b/packages/docusaurus-plugin-content-docs/package.json
@@ -35,13 +35,13 @@
},
"license": "MIT",
"dependencies": {
- "@docusaurus/core": "^3.0.0-alpha.0",
- "@docusaurus/logger": "^3.0.0-alpha.0",
- "@docusaurus/mdx-loader": "^3.0.0-alpha.0",
- "@docusaurus/module-type-aliases": "^3.0.0-alpha.0",
- "@docusaurus/types": "^3.0.0-alpha.0",
- "@docusaurus/utils": "^3.0.0-alpha.0",
- "@docusaurus/utils-validation": "^3.0.0-alpha.0",
+ "@docusaurus/core": "3.0.0-alpha.0",
+ "@docusaurus/logger": "3.0.0-alpha.0",
+ "@docusaurus/mdx-loader": "3.0.0-alpha.0",
+ "@docusaurus/module-type-aliases": "3.0.0-alpha.0",
+ "@docusaurus/types": "3.0.0-alpha.0",
+ "@docusaurus/utils": "3.0.0-alpha.0",
+ "@docusaurus/utils-validation": "3.0.0-alpha.0",
"@types/react-router-config": "^5.0.6",
"combine-promises": "^1.1.0",
"fs-extra": "^11.1.0",
diff --git a/packages/docusaurus-plugin-content-pages/package.json b/packages/docusaurus-plugin-content-pages/package.json
index 79c4da3cb2e1..88bf08101dfb 100644
--- a/packages/docusaurus-plugin-content-pages/package.json
+++ b/packages/docusaurus-plugin-content-pages/package.json
@@ -18,11 +18,11 @@
},
"license": "MIT",
"dependencies": {
- "@docusaurus/core": "^3.0.0-alpha.0",
- "@docusaurus/mdx-loader": "^3.0.0-alpha.0",
- "@docusaurus/types": "^3.0.0-alpha.0",
- "@docusaurus/utils": "^3.0.0-alpha.0",
- "@docusaurus/utils-validation": "^3.0.0-alpha.0",
+ "@docusaurus/core": "3.0.0-alpha.0",
+ "@docusaurus/mdx-loader": "3.0.0-alpha.0",
+ "@docusaurus/types": "3.0.0-alpha.0",
+ "@docusaurus/utils": "3.0.0-alpha.0",
+ "@docusaurus/utils-validation": "3.0.0-alpha.0",
"fs-extra": "^11.1.0",
"tslib": "^2.5.0",
"webpack": "^5.76.0"
diff --git a/packages/docusaurus-plugin-debug/package.json b/packages/docusaurus-plugin-debug/package.json
index 245af03bd75d..a60e26e8154e 100644
--- a/packages/docusaurus-plugin-debug/package.json
+++ b/packages/docusaurus-plugin-debug/package.json
@@ -20,9 +20,9 @@
},
"license": "MIT",
"dependencies": {
- "@docusaurus/core": "^3.0.0-alpha.0",
- "@docusaurus/types": "^3.0.0-alpha.0",
- "@docusaurus/utils": "^3.0.0-alpha.0",
+ "@docusaurus/core": "3.0.0-alpha.0",
+ "@docusaurus/types": "3.0.0-alpha.0",
+ "@docusaurus/utils": "3.0.0-alpha.0",
"fs-extra": "^11.1.0",
"react-json-view": "^1.21.3",
"tslib": "^2.5.0"
diff --git a/packages/docusaurus-plugin-google-analytics/package.json b/packages/docusaurus-plugin-google-analytics/package.json
index 034ad4b90d07..58d59271a615 100644
--- a/packages/docusaurus-plugin-google-analytics/package.json
+++ b/packages/docusaurus-plugin-google-analytics/package.json
@@ -18,9 +18,9 @@
},
"license": "MIT",
"dependencies": {
- "@docusaurus/core": "^3.0.0-alpha.0",
- "@docusaurus/types": "^3.0.0-alpha.0",
- "@docusaurus/utils-validation": "^3.0.0-alpha.0",
+ "@docusaurus/core": "3.0.0-alpha.0",
+ "@docusaurus/types": "3.0.0-alpha.0",
+ "@docusaurus/utils-validation": "3.0.0-alpha.0",
"tslib": "^2.5.0"
},
"peerDependencies": {
diff --git a/packages/docusaurus-plugin-google-gtag/package.json b/packages/docusaurus-plugin-google-gtag/package.json
index f60ab109314b..c1b03727be00 100644
--- a/packages/docusaurus-plugin-google-gtag/package.json
+++ b/packages/docusaurus-plugin-google-gtag/package.json
@@ -18,9 +18,9 @@
},
"license": "MIT",
"dependencies": {
- "@docusaurus/core": "^3.0.0-alpha.0",
- "@docusaurus/types": "^3.0.0-alpha.0",
- "@docusaurus/utils-validation": "^3.0.0-alpha.0",
+ "@docusaurus/core": "3.0.0-alpha.0",
+ "@docusaurus/types": "3.0.0-alpha.0",
+ "@docusaurus/utils-validation": "3.0.0-alpha.0",
"@types/gtag.js": "^0.0.12",
"tslib": "^2.5.0"
},
diff --git a/packages/docusaurus-plugin-google-tag-manager/package.json b/packages/docusaurus-plugin-google-tag-manager/package.json
index a410ca665a61..49b0617fa579 100644
--- a/packages/docusaurus-plugin-google-tag-manager/package.json
+++ b/packages/docusaurus-plugin-google-tag-manager/package.json
@@ -18,9 +18,9 @@
},
"license": "MIT",
"dependencies": {
- "@docusaurus/core": "^3.0.0-alpha.0",
- "@docusaurus/types": "^3.0.0-alpha.0",
- "@docusaurus/utils-validation": "^3.0.0-alpha.0",
+ "@docusaurus/core": "3.0.0-alpha.0",
+ "@docusaurus/types": "3.0.0-alpha.0",
+ "@docusaurus/utils-validation": "3.0.0-alpha.0",
"tslib": "^2.5.0"
},
"peerDependencies": {
diff --git a/packages/docusaurus-plugin-ideal-image/package.json b/packages/docusaurus-plugin-ideal-image/package.json
index 60289970cb66..38700cd0b596 100644
--- a/packages/docusaurus-plugin-ideal-image/package.json
+++ b/packages/docusaurus-plugin-ideal-image/package.json
@@ -20,12 +20,12 @@
},
"license": "MIT",
"dependencies": {
- "@docusaurus/core": "^3.0.0-alpha.0",
- "@docusaurus/lqip-loader": "^3.0.0-alpha.0",
+ "@docusaurus/core": "3.0.0-alpha.0",
+ "@docusaurus/lqip-loader": "3.0.0-alpha.0",
"@docusaurus/responsive-loader": "^1.7.0",
- "@docusaurus/theme-translations": "^3.0.0-alpha.0",
- "@docusaurus/types": "^3.0.0-alpha.0",
- "@docusaurus/utils-validation": "^3.0.0-alpha.0",
+ "@docusaurus/theme-translations": "3.0.0-alpha.0",
+ "@docusaurus/types": "3.0.0-alpha.0",
+ "@docusaurus/utils-validation": "3.0.0-alpha.0",
"@slorber/react-ideal-image": "^0.0.12",
"react-waypoint": "^10.3.0",
"sharp": "^0.31.3",
@@ -33,7 +33,7 @@
"webpack": "^5.76.0"
},
"devDependencies": {
- "@docusaurus/module-type-aliases": "^3.0.0-alpha.0",
+ "@docusaurus/module-type-aliases": "3.0.0-alpha.0",
"fs-extra": "^11.1.0"
},
"peerDependencies": {
diff --git a/packages/docusaurus-plugin-pwa/package.json b/packages/docusaurus-plugin-pwa/package.json
index c87add241d49..0455f80c3415 100644
--- a/packages/docusaurus-plugin-pwa/package.json
+++ b/packages/docusaurus-plugin-pwa/package.json
@@ -22,12 +22,12 @@
"dependencies": {
"@babel/core": "^7.20.12",
"@babel/preset-env": "^7.20.2",
- "@docusaurus/core": "^3.0.0-alpha.0",
- "@docusaurus/theme-common": "^3.0.0-alpha.0",
- "@docusaurus/theme-translations": "^3.0.0-alpha.0",
- "@docusaurus/types": "^3.0.0-alpha.0",
- "@docusaurus/utils": "^3.0.0-alpha.0",
- "@docusaurus/utils-validation": "^3.0.0-alpha.0",
+ "@docusaurus/core": "3.0.0-alpha.0",
+ "@docusaurus/theme-common": "3.0.0-alpha.0",
+ "@docusaurus/theme-translations": "3.0.0-alpha.0",
+ "@docusaurus/types": "3.0.0-alpha.0",
+ "@docusaurus/utils": "3.0.0-alpha.0",
+ "@docusaurus/utils-validation": "3.0.0-alpha.0",
"babel-loader": "^9.1.2",
"clsx": "^1.2.1",
"core-js": "^3.29.0",
@@ -41,7 +41,7 @@
"workbox-window": "^6.5.4"
},
"devDependencies": {
- "@docusaurus/module-type-aliases": "^3.0.0-alpha.0",
+ "@docusaurus/module-type-aliases": "3.0.0-alpha.0",
"fs-extra": "^11.1.0"
},
"peerDependencies": {
diff --git a/packages/docusaurus-plugin-sitemap/package.json b/packages/docusaurus-plugin-sitemap/package.json
index 7fd1e25d06d1..b1d45d1fdd9c 100644
--- a/packages/docusaurus-plugin-sitemap/package.json
+++ b/packages/docusaurus-plugin-sitemap/package.json
@@ -18,12 +18,12 @@
},
"license": "MIT",
"dependencies": {
- "@docusaurus/core": "^3.0.0-alpha.0",
- "@docusaurus/logger": "^3.0.0-alpha.0",
- "@docusaurus/types": "^3.0.0-alpha.0",
- "@docusaurus/utils": "^3.0.0-alpha.0",
- "@docusaurus/utils-common": "^3.0.0-alpha.0",
- "@docusaurus/utils-validation": "^3.0.0-alpha.0",
+ "@docusaurus/core": "3.0.0-alpha.0",
+ "@docusaurus/logger": "3.0.0-alpha.0",
+ "@docusaurus/types": "3.0.0-alpha.0",
+ "@docusaurus/utils": "3.0.0-alpha.0",
+ "@docusaurus/utils-common": "3.0.0-alpha.0",
+ "@docusaurus/utils-validation": "3.0.0-alpha.0",
"fs-extra": "^11.1.0",
"sitemap": "^7.1.1",
"tslib": "^2.5.0"
diff --git a/packages/docusaurus-preset-classic/package.json b/packages/docusaurus-preset-classic/package.json
index e882bcccbe27..347cc67f4358 100644
--- a/packages/docusaurus-preset-classic/package.json
+++ b/packages/docusaurus-preset-classic/package.json
@@ -18,19 +18,19 @@
},
"license": "MIT",
"dependencies": {
- "@docusaurus/core": "^3.0.0-alpha.0",
- "@docusaurus/plugin-content-blog": "^3.0.0-alpha.0",
- "@docusaurus/plugin-content-docs": "^3.0.0-alpha.0",
- "@docusaurus/plugin-content-pages": "^3.0.0-alpha.0",
- "@docusaurus/plugin-debug": "^3.0.0-alpha.0",
- "@docusaurus/plugin-google-analytics": "^3.0.0-alpha.0",
- "@docusaurus/plugin-google-gtag": "^3.0.0-alpha.0",
- "@docusaurus/plugin-google-tag-manager": "^3.0.0-alpha.0",
- "@docusaurus/plugin-sitemap": "^3.0.0-alpha.0",
- "@docusaurus/theme-classic": "^3.0.0-alpha.0",
- "@docusaurus/theme-common": "^3.0.0-alpha.0",
- "@docusaurus/theme-search-algolia": "^3.0.0-alpha.0",
- "@docusaurus/types": "^3.0.0-alpha.0"
+ "@docusaurus/core": "3.0.0-alpha.0",
+ "@docusaurus/plugin-content-blog": "3.0.0-alpha.0",
+ "@docusaurus/plugin-content-docs": "3.0.0-alpha.0",
+ "@docusaurus/plugin-content-pages": "3.0.0-alpha.0",
+ "@docusaurus/plugin-debug": "3.0.0-alpha.0",
+ "@docusaurus/plugin-google-analytics": "3.0.0-alpha.0",
+ "@docusaurus/plugin-google-gtag": "3.0.0-alpha.0",
+ "@docusaurus/plugin-google-tag-manager": "3.0.0-alpha.0",
+ "@docusaurus/plugin-sitemap": "3.0.0-alpha.0",
+ "@docusaurus/theme-classic": "3.0.0-alpha.0",
+ "@docusaurus/theme-common": "3.0.0-alpha.0",
+ "@docusaurus/theme-search-algolia": "3.0.0-alpha.0",
+ "@docusaurus/types": "3.0.0-alpha.0"
},
"peerDependencies": {
"react": "^18.0.0",
diff --git a/packages/docusaurus-theme-classic/package.json b/packages/docusaurus-theme-classic/package.json
index 850be79b9e68..1e504b04586f 100644
--- a/packages/docusaurus-theme-classic/package.json
+++ b/packages/docusaurus-theme-classic/package.json
@@ -20,18 +20,18 @@
"copy:watch": "node ../../admin/scripts/copyUntypedFiles.js --watch"
},
"dependencies": {
- "@docusaurus/core": "^3.0.0-alpha.0",
- "@docusaurus/mdx-loader": "^3.0.0-alpha.0",
- "@docusaurus/module-type-aliases": "^3.0.0-alpha.0",
- "@docusaurus/plugin-content-blog": "^3.0.0-alpha.0",
- "@docusaurus/plugin-content-docs": "^3.0.0-alpha.0",
- "@docusaurus/plugin-content-pages": "^3.0.0-alpha.0",
- "@docusaurus/theme-common": "^3.0.0-alpha.0",
- "@docusaurus/theme-translations": "^3.0.0-alpha.0",
- "@docusaurus/types": "^3.0.0-alpha.0",
- "@docusaurus/utils": "^3.0.0-alpha.0",
- "@docusaurus/utils-common": "^3.0.0-alpha.0",
- "@docusaurus/utils-validation": "^3.0.0-alpha.0",
+ "@docusaurus/core": "3.0.0-alpha.0",
+ "@docusaurus/mdx-loader": "3.0.0-alpha.0",
+ "@docusaurus/module-type-aliases": "3.0.0-alpha.0",
+ "@docusaurus/plugin-content-blog": "3.0.0-alpha.0",
+ "@docusaurus/plugin-content-docs": "3.0.0-alpha.0",
+ "@docusaurus/plugin-content-pages": "3.0.0-alpha.0",
+ "@docusaurus/theme-common": "3.0.0-alpha.0",
+ "@docusaurus/theme-translations": "3.0.0-alpha.0",
+ "@docusaurus/types": "3.0.0-alpha.0",
+ "@docusaurus/utils": "3.0.0-alpha.0",
+ "@docusaurus/utils-common": "3.0.0-alpha.0",
+ "@docusaurus/utils-validation": "3.0.0-alpha.0",
"@mdx-js/react": "^2.1.5",
"clsx": "^1.2.1",
"copy-text-to-clipboard": "^3.0.1",
diff --git a/packages/docusaurus-theme-common/package.json b/packages/docusaurus-theme-common/package.json
index 6b0ec6428489..3fd4cc027b42 100644
--- a/packages/docusaurus-theme-common/package.json
+++ b/packages/docusaurus-theme-common/package.json
@@ -30,13 +30,13 @@
},
"license": "MIT",
"dependencies": {
- "@docusaurus/mdx-loader": "^3.0.0-alpha.0",
- "@docusaurus/module-type-aliases": "^3.0.0-alpha.0",
- "@docusaurus/plugin-content-blog": "^3.0.0-alpha.0",
- "@docusaurus/plugin-content-docs": "^3.0.0-alpha.0",
- "@docusaurus/plugin-content-pages": "^3.0.0-alpha.0",
- "@docusaurus/utils": "^3.0.0-alpha.0",
- "@docusaurus/utils-common": "^3.0.0-alpha.0",
+ "@docusaurus/mdx-loader": "3.0.0-alpha.0",
+ "@docusaurus/module-type-aliases": "3.0.0-alpha.0",
+ "@docusaurus/plugin-content-blog": "3.0.0-alpha.0",
+ "@docusaurus/plugin-content-docs": "3.0.0-alpha.0",
+ "@docusaurus/plugin-content-pages": "3.0.0-alpha.0",
+ "@docusaurus/utils": "3.0.0-alpha.0",
+ "@docusaurus/utils-common": "3.0.0-alpha.0",
"@types/history": "^4.7.11",
"@types/react": "*",
"@types/react-router-config": "*",
@@ -48,8 +48,8 @@
"utility-types": "^3.10.0"
},
"devDependencies": {
- "@docusaurus/core": "^3.0.0-alpha.0",
- "@docusaurus/types": "^3.0.0-alpha.0",
+ "@docusaurus/core": "3.0.0-alpha.0",
+ "@docusaurus/types": "3.0.0-alpha.0",
"fs-extra": "^11.1.0",
"lodash": "^4.17.21"
},
diff --git a/packages/docusaurus-theme-live-codeblock/package.json b/packages/docusaurus-theme-live-codeblock/package.json
index fc7d1ff4764c..9646d2fe3e86 100644
--- a/packages/docusaurus-theme-live-codeblock/package.json
+++ b/packages/docusaurus-theme-live-codeblock/package.json
@@ -23,10 +23,10 @@
},
"license": "MIT",
"dependencies": {
- "@docusaurus/core": "^3.0.0-alpha.0",
- "@docusaurus/theme-common": "^3.0.0-alpha.0",
- "@docusaurus/theme-translations": "^3.0.0-alpha.0",
- "@docusaurus/utils-validation": "^3.0.0-alpha.0",
+ "@docusaurus/core": "3.0.0-alpha.0",
+ "@docusaurus/theme-common": "3.0.0-alpha.0",
+ "@docusaurus/theme-translations": "3.0.0-alpha.0",
+ "@docusaurus/utils-validation": "3.0.0-alpha.0",
"@philpl/buble": "^0.19.7",
"clsx": "^1.2.1",
"fs-extra": "^11.1.0",
@@ -34,7 +34,7 @@
"tslib": "^2.5.0"
},
"devDependencies": {
- "@docusaurus/types": "^3.0.0-alpha.0",
+ "@docusaurus/types": "3.0.0-alpha.0",
"@types/buble": "^0.20.1"
},
"peerDependencies": {
diff --git a/packages/docusaurus-theme-mermaid/package.json b/packages/docusaurus-theme-mermaid/package.json
index 5a142fc76bf5..1d9904a5dc8a 100644
--- a/packages/docusaurus-theme-mermaid/package.json
+++ b/packages/docusaurus-theme-mermaid/package.json
@@ -33,11 +33,11 @@
"copy:watch": "node ../../admin/scripts/copyUntypedFiles.js --watch"
},
"dependencies": {
- "@docusaurus/core": "^3.0.0-alpha.0",
- "@docusaurus/module-type-aliases": "^3.0.0-alpha.0",
- "@docusaurus/theme-common": "^3.0.0-alpha.0",
- "@docusaurus/types": "^3.0.0-alpha.0",
- "@docusaurus/utils-validation": "^3.0.0-alpha.0",
+ "@docusaurus/core": "3.0.0-alpha.0",
+ "@docusaurus/module-type-aliases": "3.0.0-alpha.0",
+ "@docusaurus/theme-common": "3.0.0-alpha.0",
+ "@docusaurus/types": "3.0.0-alpha.0",
+ "@docusaurus/utils-validation": "3.0.0-alpha.0",
"mermaid": "^9.4.3",
"tslib": "^2.5.0"
},
diff --git a/packages/docusaurus-theme-search-algolia/package.json b/packages/docusaurus-theme-search-algolia/package.json
index d67ee3464cf9..5de7a26119e2 100644
--- a/packages/docusaurus-theme-search-algolia/package.json
+++ b/packages/docusaurus-theme-search-algolia/package.json
@@ -34,13 +34,13 @@
},
"dependencies": {
"@docsearch/react": "^3.3.3",
- "@docusaurus/core": "^3.0.0-alpha.0",
- "@docusaurus/logger": "^3.0.0-alpha.0",
- "@docusaurus/plugin-content-docs": "^3.0.0-alpha.0",
- "@docusaurus/theme-common": "^3.0.0-alpha.0",
- "@docusaurus/theme-translations": "^3.0.0-alpha.0",
- "@docusaurus/utils": "^3.0.0-alpha.0",
- "@docusaurus/utils-validation": "^3.0.0-alpha.0",
+ "@docusaurus/core": "3.0.0-alpha.0",
+ "@docusaurus/logger": "3.0.0-alpha.0",
+ "@docusaurus/plugin-content-docs": "3.0.0-alpha.0",
+ "@docusaurus/theme-common": "3.0.0-alpha.0",
+ "@docusaurus/theme-translations": "3.0.0-alpha.0",
+ "@docusaurus/utils": "3.0.0-alpha.0",
+ "@docusaurus/utils-validation": "3.0.0-alpha.0",
"algoliasearch": "^4.15.0",
"algoliasearch-helper": "^3.12.0",
"clsx": "^1.2.1",
@@ -51,7 +51,7 @@
"utility-types": "^3.10.0"
},
"devDependencies": {
- "@docusaurus/module-type-aliases": "^3.0.0-alpha.0"
+ "@docusaurus/module-type-aliases": "3.0.0-alpha.0"
},
"peerDependencies": {
"react": "^18.0.0",
diff --git a/packages/docusaurus-theme-translations/package.json b/packages/docusaurus-theme-translations/package.json
index 8a7ac63ddd41..6add1f1cc19d 100644
--- a/packages/docusaurus-theme-translations/package.json
+++ b/packages/docusaurus-theme-translations/package.json
@@ -23,8 +23,8 @@
"tslib": "^2.5.0"
},
"devDependencies": {
- "@docusaurus/core": "^3.0.0-alpha.0",
- "@docusaurus/logger": "^3.0.0-alpha.0",
+ "@docusaurus/core": "3.0.0-alpha.0",
+ "@docusaurus/logger": "3.0.0-alpha.0",
"lodash": "^4.17.21"
},
"engines": {
diff --git a/packages/docusaurus-utils-validation/package.json b/packages/docusaurus-utils-validation/package.json
index ce4bed0ef94d..86877e1fd934 100644
--- a/packages/docusaurus-utils-validation/package.json
+++ b/packages/docusaurus-utils-validation/package.json
@@ -18,8 +18,8 @@
},
"license": "MIT",
"dependencies": {
- "@docusaurus/logger": "^3.0.0-alpha.0",
- "@docusaurus/utils": "^3.0.0-alpha.0",
+ "@docusaurus/logger": "3.0.0-alpha.0",
+ "@docusaurus/utils": "3.0.0-alpha.0",
"joi": "^17.8.3",
"js-yaml": "^4.1.0",
"tslib": "^2.5.0"
diff --git a/packages/docusaurus-utils/package.json b/packages/docusaurus-utils/package.json
index c021dfe84325..5ca9bc100224 100644
--- a/packages/docusaurus-utils/package.json
+++ b/packages/docusaurus-utils/package.json
@@ -18,7 +18,7 @@
},
"license": "MIT",
"dependencies": {
- "@docusaurus/logger": "^3.0.0-alpha.0",
+ "@docusaurus/logger": "3.0.0-alpha.0",
"@svgr/webpack": "^6.5.1",
"escape-string-regexp": "^4.0.0",
"file-loader": "^6.2.0",
@@ -39,7 +39,7 @@
"node": ">=16.14"
},
"devDependencies": {
- "@docusaurus/types": "^3.0.0-alpha.0",
+ "@docusaurus/types": "3.0.0-alpha.0",
"@types/dedent": "^0.7.0",
"@types/github-slugger": "^1.3.0",
"@types/micromatch": "^4.0.2",
diff --git a/packages/docusaurus/package.json b/packages/docusaurus/package.json
index 778c615f99e7..ec59a3eb3521 100644
--- a/packages/docusaurus/package.json
+++ b/packages/docusaurus/package.json
@@ -43,13 +43,13 @@
"@babel/runtime": "^7.21.0",
"@babel/runtime-corejs3": "^7.21.0",
"@babel/traverse": "^7.21.2",
- "@docusaurus/cssnano-preset": "^3.0.0-alpha.0",
- "@docusaurus/logger": "^3.0.0-alpha.0",
- "@docusaurus/mdx-loader": "^3.0.0-alpha.0",
+ "@docusaurus/cssnano-preset": "3.0.0-alpha.0",
+ "@docusaurus/logger": "3.0.0-alpha.0",
+ "@docusaurus/mdx-loader": "3.0.0-alpha.0",
"@docusaurus/react-loadable": "5.5.2",
- "@docusaurus/utils": "^3.0.0-alpha.0",
- "@docusaurus/utils-common": "^3.0.0-alpha.0",
- "@docusaurus/utils-validation": "^3.0.0-alpha.0",
+ "@docusaurus/utils": "3.0.0-alpha.0",
+ "@docusaurus/utils-common": "3.0.0-alpha.0",
+ "@docusaurus/utils-validation": "3.0.0-alpha.0",
"@slorber/static-site-generator-webpack-plugin": "^4.0.7",
"@svgr/webpack": "^6.5.1",
"autoprefixer": "^10.4.13",
@@ -106,8 +106,8 @@
"webpackbar": "^5.0.2"
},
"devDependencies": {
- "@docusaurus/module-type-aliases": "^3.0.0-alpha.0",
- "@docusaurus/types": "^3.0.0-alpha.0",
+ "@docusaurus/module-type-aliases": "3.0.0-alpha.0",
+ "@docusaurus/types": "3.0.0-alpha.0",
"@types/detect-port": "^1.3.2",
"@types/react-dom": "^18.0.11",
"@types/react-router-config": "^5.0.6",
diff --git a/packages/lqip-loader/package.json b/packages/lqip-loader/package.json
index 0de1bdd3a074..ed9c93489e71 100644
--- a/packages/lqip-loader/package.json
+++ b/packages/lqip-loader/package.json
@@ -17,7 +17,7 @@
},
"license": "MIT",
"dependencies": {
- "@docusaurus/logger": "^3.0.0-alpha.0",
+ "@docusaurus/logger": "3.0.0-alpha.0",
"file-loader": "^6.2.0",
"lodash": "^4.17.21",
"sharp": "^0.31.3",
diff --git a/website/docusaurus.config.js b/website/docusaurus.config.js
index 3fc8ff528aac..45344a383175 100644
--- a/website/docusaurus.config.js
+++ b/website/docusaurus.config.js
@@ -23,6 +23,20 @@ const ArchivedVersionsDropdownItems = Object.entries(VersionsArchived).splice(
5,
);
+/** @param {string} version */
+function isPrerelease(version) {
+ return (
+ version.includes('alpha') ||
+ version.includes('beta') ||
+ version.includes('rc')
+ );
+}
+
+function getLastVersion() {
+ const firstStableVersion = versions.find((version) => !isPrerelease(version));
+ return firstStableVersion ?? versions[0];
+}
+
// This probably only makes sense for the alpha/beta/rc phase, temporary
function getNextVersionName() {
return 'Canary';
@@ -360,9 +374,9 @@ module.exports = async function createConfigAsync() {
rehypePlugins: [(await import('rehype-katex')).default],
disableVersioning: isVersioningDisabled,
lastVersion:
- isDev || isDeployPreview || isBranchDeploy
+ isDev || isDeployPreview || isBranchDeploy || isBuildFast
? 'current'
- : undefined,
+ : getLastVersion(),
onlyIncludeVersions: (() => {
if (isBuildFast) {
diff --git a/website/package.json b/website/package.json
index 3135c85106b4..3c80f74ea1a7 100644
--- a/website/package.json
+++ b/website/package.json
@@ -36,19 +36,19 @@
"dependencies": {
"@crowdin/cli": "^3.10.0",
"@crowdin/crowdin-api-client": "^1.22.0",
- "@docusaurus/core": "^3.0.0-alpha.0",
- "@docusaurus/logger": "^3.0.0-alpha.0",
- "@docusaurus/plugin-client-redirects": "^3.0.0-alpha.0",
- "@docusaurus/plugin-ideal-image": "^3.0.0-alpha.0",
- "@docusaurus/plugin-pwa": "^3.0.0-alpha.0",
- "@docusaurus/preset-classic": "^3.0.0-alpha.0",
- "@docusaurus/remark-plugin-npm2yarn": "^3.0.0-alpha.0",
- "@docusaurus/theme-classic": "^3.0.0-alpha.0",
- "@docusaurus/theme-common": "^3.0.0-alpha.0",
- "@docusaurus/theme-mermaid": "^3.0.0-alpha.0",
- "@docusaurus/theme-live-codeblock": "^3.0.0-alpha.0",
- "@docusaurus/utils": "^3.0.0-alpha.0",
- "@docusaurus/utils-common": "^3.0.0-alpha.0",
+ "@docusaurus/core": "3.0.0-alpha.0",
+ "@docusaurus/logger": "3.0.0-alpha.0",
+ "@docusaurus/plugin-client-redirects": "3.0.0-alpha.0",
+ "@docusaurus/plugin-ideal-image": "3.0.0-alpha.0",
+ "@docusaurus/plugin-pwa": "3.0.0-alpha.0",
+ "@docusaurus/preset-classic": "3.0.0-alpha.0",
+ "@docusaurus/remark-plugin-npm2yarn": "3.0.0-alpha.0",
+ "@docusaurus/theme-classic": "3.0.0-alpha.0",
+ "@docusaurus/theme-common": "3.0.0-alpha.0",
+ "@docusaurus/theme-live-codeblock": "3.0.0-alpha.0",
+ "@docusaurus/theme-mermaid": "3.0.0-alpha.0",
+ "@docusaurus/utils": "3.0.0-alpha.0",
+ "@docusaurus/utils-common": "3.0.0-alpha.0",
"@popperjs/core": "^2.11.6",
"@swc/core": "1.2.197",
"clsx": "^1.2.1",
@@ -83,8 +83,8 @@
]
},
"devDependencies": {
- "@docusaurus/eslint-plugin": "^3.0.0-alpha.0",
- "@docusaurus/tsconfig": "^3.0.0-alpha.0",
+ "@docusaurus/eslint-plugin": "3.0.0-alpha.0",
+ "@docusaurus/tsconfig": "3.0.0-alpha.0",
"@types/jest": "^29.4.0",
"cross-env": "^7.0.3",
"rimraf": "^3.0.2"
diff --git a/website/versioned_docs/version-3.0.0-alpha.0/advanced/architecture.mdx b/website/versioned_docs/version-3.0.0-alpha.0/advanced/architecture.mdx
new file mode 100644
index 000000000000..91dfecf3675c
--- /dev/null
+++ b/website/versioned_docs/version-3.0.0-alpha.0/advanced/architecture.mdx
@@ -0,0 +1,28 @@
+---
+description: How Docusaurus works to build your app
+---
+
+# Architecture
+
+```mdx-code-block
+import Tabs from '@theme/Tabs';
+import TabItem from '@theme/TabItem';
+import Zoom from 'react-medium-image-zoom';
+```
+
+
routes"]
+ G["All blog
routes"]
+ H["All pages
routes"]
+ A---B;
+ B---C;
+ B---D;
+ B---E;
+ C---F;
+ D---G;
+ E---H;
+```
+
+Any route will be matched against this nested route config until a good match is found. For example, when given a route `/docs/configuration`, Docusaurus first enters the `/docs` branch, and then searches among the subroutes created by the docs plugin.
+
+Changing `routeBasePath` can effectively alter your site's route structure. For example, in [Docs-only mode](../guides/docs/docs-introduction.mdx#docs-only-mode), we mentioned that configuring `routeBasePath: '/'` for docs means that all routes that the docs plugin create would not have the `/docs` prefix, yet it doesn't prevent you from having more subroutes like `/blog` created by other plugins.
+
+Next, let's look at how the three plugins structure their own "boxes of subroutes".
+
+### Pages routing {#pages-routing}
+
+Pages routing are straightforward: the file paths directly map to URLs, without any other way to customize. See the [pages docs](../guides/creating-pages.mdx#routing) for more information.
+
+The component used for Markdown pages is `@theme/MDXPage`. React pages are directly used as the route's component.
+
+### Blog routing {#blog-routing}
+
+The blog creates the following routes:
+
+- **Posts list pages**: `/`, `/page/2`, `/page/3`...
+ - The component is `@theme/BlogListPage`.
+- **Post pages**: `/2021/11/21/algolia-docsearch-migration`, `/2021/05/12/announcing-docusaurus-two-beta`...
+ - Generated from each Markdown post.
+ - The routes are fully customizable through the `slug` front matter.
+ - The component is `@theme/BlogPostPage`.
+- **Tags list page**: `/tags`
+ - The route is customizable through the `tagsBasePath` option.
+ - The component is `@theme/BlogTagsListPage`.
+- **Tag pages**: `/tags/adoption`, `/tags/beta`...
+ - Generated through the tags defined in each post's front matter.
+ - The routes always have base defined in `tagsBasePath`, but the subroutes are customizable through the tag's `permalink` field.
+ - The component is `@theme/BlogTagsPostsPage`.
+- **Archive page**: `/archive`
+ - The route is customizable through the `archiveBasePath` option.
+ - The component is `@theme/BlogArchivePage`.
+
+### Docs routing {#docs-routing}
+
+The docs is the only plugin that creates **nested routes**. At the top, it registers [**version paths**](../guides/docs/versioning.mdx): `/`, `/next`, `/2.0.0-beta.13`... which provide the version context, including the layout and sidebar. This ensures that when switching between individual docs, the sidebar's state is preserved, and that you can switch between versions through the navbar dropdown while staying on the same doc. The component used is `@theme/DocPage`.
+
+```mdx-code-block
+export const URLPath = () => {useLocation().pathname}
;
+
+export const FilePath = () => {
+ const currentVersion = useActiveDocContext('default').activeVersion.name;
+ return {currentVersion === 'current' ? './docs/' : `./versioned_docs/version-${currentVersion}/`}advanced/routing.md
;
+}
+```
+
+The individual docs are rendered in the remaining space after the navbar, footer, sidebar, etc. have all been provided by the `DocPage` component. For example, this page, A sample site structure
+
+```bash
+.
+├── blog # blog plugin has routeBasePath: '/blog'
+│ ├── 2019-05-28-first-blog-post.md # -> /blog/2019/05/28/first-blog-post
+│ ├── 2019-05-29-long-blog-post.md # -> /blog/2019/05/29/long-blog-post
+│ ├── 2021-08-01-mdx-blog-post.mdx # -> /blog/2021/08/01/mdx-blog-post
+│ └── 2021-08-26-welcome
+│ ├── docusaurus-plushie-banner.jpeg
+│ └── index.md # -> /blog/2021/08/26/welcome
+├── docs # docs plugin has routeBasePath: '/docs'; current version has base path '/'
+│ ├── intro.md # -> /docs/intro
+│ ├── tutorial-basics
+│ │ ├── _category_.json
+│ │ ├── congratulations.md # -> /docs/tutorial-basics/congratulations
+│ │ └── markdown-features.mdx # -> /docs/tutorial-basics/congratulations
+│ └── tutorial-extras
+│ ├── _category_.json
+│ ├── manage-docs-versions.md # -> /docs/tutorial-extras/manage-docs-versions
+│ └── translate-your-site.md # -> /docs/tutorial-extras/translate-your-site
+├── src
+│ └── pages # pages plugin has routeBasePath: '/'
+│ ├── index.module.css
+│ ├── index.tsx # -> /
+│ └── markdown-page.md # -> /markdown-page
+└── versioned_docs
+ └── version-1.0.0 # version has base path '/1.0.0'
+ ├── intro.md # -> /docs/1.0.0/intro
+ ├── tutorial-basics
+ │ ├── _category_.json
+ │ ├── congratulations.md # -> /docs/1.0.0/tutorial-basics/congratulations
+ │ └── markdown-features.mdx # -> /docs/1.0.0/tutorial-basics/markdown-features
+ └── tutorial-extras
+ ├── _category_.json
+ ├── manage-docs-versions.md # -> /docs/1.0.0/tutorial-extras/manage-docs-versions
+ └── translate-your-site.md # -> /docs/1.0.0/tutorial-extras/translate-your-site
+```
+
+Output of the above workspace
+
+```bash
+build
+├── 404.html # /404/
+├── blog
+│ ├── archive
+│ │ └── index.html # /blog/archive/
+│ ├── first-blog-post
+│ │ └── index.html # /blog/first-blog-post/
+│ ├── index.html # /blog/
+│ ├── long-blog-post
+│ │ └── index.html # /blog/long-blog-post/
+│ ├── mdx-blog-post
+│ │ └── index.html # /blog/mdx-blog-post/
+│ ├── tags
+│ │ ├── docusaurus
+│ │ │ └── index.html # /blog/tags/docusaurus/
+│ │ ├── hola
+│ │ │ └── index.html # /blog/tags/hola/
+│ │ └── index.html # /blog/tags/
+│ └── welcome
+│ └── index.html # /blog/welcome/
+├── docs
+│ ├── 1.0.0
+│ │ ├── intro
+│ │ │ └── index.html # /docs/1.0.0/intro/
+│ │ ├── tutorial-basics
+│ │ │ ├── congratulations
+│ │ │ │ └── index.html # /docs/1.0.0/tutorial-basics/congratulations/
+│ │ │ └── markdown-features
+│ │ │ └── index.html # /docs/1.0.0/tutorial-basics/markdown-features/
+│ │ └── tutorial-extras
+│ │ ├── manage-docs-versions
+│ │ │ └── index.html # /docs/1.0.0/tutorial-extras/manage-docs-versions/
+│ │ └── translate-your-site
+│ │ └── index.html # /docs/1.0.0/tutorial-extras/translate-your-site/
+│ ├── intro
+│ │ └── index.html # /docs/1.0.0/intro/
+│ ├── tutorial-basics
+│ │ ├── congratulations
+│ │ │ └── index.html # /docs/tutorial-basics/congratulations/
+│ │ └── markdown-features
+│ │ └── index.html # /docs/tutorial-basics/markdown-features/
+│ └── tutorial-extras
+│ ├── manage-docs-versions
+│ │ └── index.html # /docs/tutorial-extras/manage-docs-versions/
+│ └── translate-your-site
+│ └── index.html # /docs/tutorial-extras/translate-your-site/
+├── index.html # /
+└── markdown-page
+ └── index.html # /markdown-page/
+```
+
+{location.pathname}
+
+ );
+}
+```
+
+```mdx-code-block
+export function PageRoute() {
+ const location = useLocation();
+ return (
+
+ We are currently on {location.pathname}
+
+ );
+}
+
+What about
+```
+
+One exception to the "no Node globals" rule is `process.env.NODE_ENV`. In fact, you can use it in React, because Webpack injects this variable as a global:
+
+```jsx
+import React from 'react';
+
+export default function expensiveComp() {
+ if (process.env.NODE_ENV === 'development') {
+ return <>This component is not shown in development>;
+ }
+ const res = someExpensiveOperationThatLastsALongTime();
+ return <>{res}>;
+}
+```
+
+During Webpack build, the `process.env.NODE_ENV` will be replaced with the value, either `'development'` or `'production'`. You will then get different build results after dead code elimination:
+
+import Tabs from '@theme/Tabs';
+import TabItem from '@theme/TabItem';
+
+```mdx-code-block
+process.env.NODE_ENV
?