diff --git a/CHANGELOG.md b/CHANGELOG.md index 2ca7ac9a48b8..934450af03d5 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,53 @@ # Docusaurus 2 Changelog +## 2.0.0-rc.1 (2022-07-14) + +#### :bug: Bug Fix + +- `docusaurus` + - [#7776](https://github.com/facebook/docusaurus/pull/7776) fix(core): swizzle --eject js should not copy theme .d.ts files ([@slorber](https://github.com/slorber)) + - [#7750](https://github.com/facebook/docusaurus/pull/7750) fix(deploy): revert "feat(deploy): copy local git config to tmp repo (#7702)" ([@ghostsquad](https://github.com/ghostsquad)) +- `docusaurus-plugin-sitemap` + - [#7774](https://github.com/facebook/docusaurus/pull/7774) fix(sitemap): complete gracefully when all pages have noIndex meta ([@Josh-Cena](https://github.com/Josh-Cena)) +- `docusaurus-theme-classic` + - [#7771](https://github.com/facebook/docusaurus/pull/7771) chore: bump Infima to 0.2.0-alpha.42, fix a:hover link bug ([@slorber](https://github.com/slorber)) + - [#7755](https://github.com/facebook/docusaurus/pull/7755) fix(theme-classic): validate options properly ([@Josh-Cena](https://github.com/Josh-Cena)) + - [#7752](https://github.com/facebook/docusaurus/pull/7752) fix(theme-classic): fix Layout theme height CSS ([@LichLord91](https://github.com/LichLord91)) +- `docusaurus-migrate` + - [#7766](https://github.com/facebook/docusaurus/pull/7766) fix(migrate): import siteConfig with file extension ([@Josh-Cena](https://github.com/Josh-Cena)) +- `docusaurus-theme-search-algolia` + - [#7761](https://github.com/facebook/docusaurus/pull/7761) fix(algolia-search): test for canUseIntersectionObserver ([@RoiArthurB](https://github.com/RoiArthurB)) + +#### :nail_care: Polish + +- `docusaurus-theme-translations` + - [#7762](https://github.com/facebook/docusaurus/pull/7762) chore(theme-translations): complete ko translations ([@anaclumos](https://github.com/anaclumos)) + +#### :memo: Documentation + +- `docusaurus-plugin-content-docs` + - [#7706](https://github.com/facebook/docusaurus/pull/7706) docs: release process, versioning, breaking changes, public API surface ([@slorber](https://github.com/slorber)) + +#### :wrench: Maintenance + +- `docusaurus-theme-classic` + - [#7777](https://github.com/facebook/docusaurus/pull/7777) refactor(theme): fix duplicate page metadata usage ([@slorber](https://github.com/slorber)) + - [#7771](https://github.com/facebook/docusaurus/pull/7771) chore: bump Infima to 0.2.0-alpha.42, fix a:hover link bug ([@slorber](https://github.com/slorber)) + +#### Committers: 11 + +- Arthur BrugiΓ¨re ([@RoiArthurB](https://github.com/RoiArthurB)) +- Bruce Song ([@recallwei](https://github.com/recallwei)) +- Evan ([@DigiPie](https://github.com/DigiPie)) +- Jeffrey Aven ([@jeffreyaven](https://github.com/jeffreyaven)) +- Joshua Chen ([@Josh-Cena](https://github.com/Josh-Cena)) +- Sunghyun Cho ([@anaclumos](https://github.com/anaclumos)) +- SΓ©bastien Lorber ([@slorber](https://github.com/slorber)) +- The Nguyen ([@treoden](https://github.com/treoden)) +- Wes McNamee ([@ghostsquad](https://github.com/ghostsquad)) +- [@LichLord91](https://github.com/LichLord91) +- 凱恩 Kane ([@Gary50613](https://github.com/Gary50613)) + ## 2.0.0-beta.22 (2022-07-08) #### :boom: Breaking Change diff --git a/admin/new.docusaurus.io/package.json b/admin/new.docusaurus.io/package.json index 352c66b6ab98..9574fc58e5d4 100644 --- a/admin/new.docusaurus.io/package.json +++ b/admin/new.docusaurus.io/package.json @@ -1,6 +1,6 @@ { "name": "new.docusaurus.io", - "version": "2.0.0-beta.22", + "version": "2.0.0-rc.1", "private": true, "scripts": { "start": "npx --package netlify-cli netlify dev" diff --git a/lerna.json b/lerna.json index b5de421b40f1..0e3af4e2bc0e 100644 --- a/lerna.json +++ b/lerna.json @@ -1,5 +1,5 @@ { - "version": "2.0.0-beta.22", + "version": "2.0.0-rc.1", "npmClient": "yarn", "useWorkspaces": true, "changelog": { diff --git a/packages/create-docusaurus/package.json b/packages/create-docusaurus/package.json index 5db84674302c..33154313af63 100755 --- a/packages/create-docusaurus/package.json +++ b/packages/create-docusaurus/package.json @@ -1,6 +1,6 @@ { "name": "create-docusaurus", - "version": "2.0.0-beta.22", + "version": "2.0.0-rc.1", "description": "Create Docusaurus apps easily.", "type": "module", "repository": { @@ -22,8 +22,8 @@ }, "license": "MIT", "dependencies": { - "@docusaurus/logger": "2.0.0-beta.22", - "@docusaurus/utils": "2.0.0-beta.22", + "@docusaurus/logger": "2.0.0-rc.1", + "@docusaurus/utils": "2.0.0-rc.1", "commander": "^5.1.0", "fs-extra": "^10.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 0439c6b04271..d55b5fc28187 100644 --- a/packages/create-docusaurus/templates/classic-typescript/package.json +++ b/packages/create-docusaurus/templates/classic-typescript/package.json @@ -1,6 +1,6 @@ { "name": "docusaurus-2-classic-typescript-template", - "version": "2.0.0-beta.22", + "version": "2.0.0-rc.1", "private": true, "scripts": { "docusaurus": "docusaurus", @@ -15,8 +15,8 @@ "typecheck": "tsc" }, "dependencies": { - "@docusaurus/core": "2.0.0-beta.22", - "@docusaurus/preset-classic": "2.0.0-beta.22", + "@docusaurus/core": "2.0.0-rc.1", + "@docusaurus/preset-classic": "2.0.0-rc.1", "@mdx-js/react": "^1.6.22", "clsx": "^1.2.1", "prism-react-renderer": "^1.3.5", @@ -24,7 +24,7 @@ "react-dom": "^17.0.2" }, "devDependencies": { - "@docusaurus/module-type-aliases": "2.0.0-beta.22", + "@docusaurus/module-type-aliases": "2.0.0-rc.1", "@tsconfig/docusaurus": "^1.0.5", "typescript": "^4.7.4" }, diff --git a/packages/create-docusaurus/templates/classic/package.json b/packages/create-docusaurus/templates/classic/package.json index 97ee5c3b5ac1..f83bc7fc2a83 100644 --- a/packages/create-docusaurus/templates/classic/package.json +++ b/packages/create-docusaurus/templates/classic/package.json @@ -1,6 +1,6 @@ { "name": "docusaurus-2-classic-template", - "version": "2.0.0-beta.22", + "version": "2.0.0-rc.1", "private": true, "scripts": { "docusaurus": "docusaurus", @@ -14,8 +14,8 @@ "write-heading-ids": "docusaurus write-heading-ids" }, "dependencies": { - "@docusaurus/core": "2.0.0-beta.22", - "@docusaurus/preset-classic": "2.0.0-beta.22", + "@docusaurus/core": "2.0.0-rc.1", + "@docusaurus/preset-classic": "2.0.0-rc.1", "@mdx-js/react": "^1.6.22", "clsx": "^1.2.1", "prism-react-renderer": "^1.3.5", @@ -23,7 +23,7 @@ "react-dom": "^17.0.2" }, "devDependencies": { - "@docusaurus/module-type-aliases": "2.0.0-beta.22" + "@docusaurus/module-type-aliases": "2.0.0-rc.1" }, "browserslist": { "production": [ diff --git a/packages/create-docusaurus/templates/facebook/package.json b/packages/create-docusaurus/templates/facebook/package.json index 8a2a19f5759d..c3b6243e3bf3 100644 --- a/packages/create-docusaurus/templates/facebook/package.json +++ b/packages/create-docusaurus/templates/facebook/package.json @@ -1,6 +1,6 @@ { "name": "docusaurus-2-facebook-template", - "version": "2.0.0-beta.22", + "version": "2.0.0-rc.1", "private": true, "scripts": { "docusaurus": "docusaurus", @@ -18,8 +18,8 @@ "format:diff": "prettier --config .prettierrc --list-different \"**/*.{js,jsx,ts,tsx,md,mdx}\"" }, "dependencies": { - "@docusaurus/core": "2.0.0-beta.22", - "@docusaurus/preset-classic": "2.0.0-beta.22", + "@docusaurus/core": "2.0.0-rc.1", + "@docusaurus/preset-classic": "2.0.0-rc.1", "@mdx-js/react": "^1.6.22", "clsx": "^1.2.1", "react": "^17.0.2", diff --git a/packages/docusaurus-cssnano-preset/package.json b/packages/docusaurus-cssnano-preset/package.json index 5b6dc7f8fb7b..f294f0216288 100644 --- a/packages/docusaurus-cssnano-preset/package.json +++ b/packages/docusaurus-cssnano-preset/package.json @@ -1,6 +1,6 @@ { "name": "@docusaurus/cssnano-preset", - "version": "2.0.0-beta.22", + "version": "2.0.0-rc.1", "description": "Advanced cssnano preset for maximum optimization.", "main": "lib/index.js", "license": "MIT", diff --git a/packages/docusaurus-logger/package.json b/packages/docusaurus-logger/package.json index abff1073897e..62202c7a6161 100644 --- a/packages/docusaurus-logger/package.json +++ b/packages/docusaurus-logger/package.json @@ -1,6 +1,6 @@ { "name": "@docusaurus/logger", - "version": "2.0.0-beta.22", + "version": "2.0.0-rc.1", "description": "An encapsulated logger for semantically formatting console messages.", "main": "./lib/index.js", "repository": { diff --git a/packages/docusaurus-mdx-loader/package.json b/packages/docusaurus-mdx-loader/package.json index 39673295ef1b..33261a3c0e27 100644 --- a/packages/docusaurus-mdx-loader/package.json +++ b/packages/docusaurus-mdx-loader/package.json @@ -1,6 +1,6 @@ { "name": "@docusaurus/mdx-loader", - "version": "2.0.0-beta.22", + "version": "2.0.0-rc.1", "description": "Docusaurus Loader for MDX", "main": "lib/index.js", "types": "lib/index.d.ts", @@ -20,8 +20,8 @@ "dependencies": { "@babel/parser": "^7.18.8", "@babel/traverse": "^7.18.8", - "@docusaurus/logger": "2.0.0-beta.22", - "@docusaurus/utils": "2.0.0-beta.22", + "@docusaurus/logger": "2.0.0-rc.1", + "@docusaurus/utils": "2.0.0-rc.1", "@mdx-js/mdx": "^1.6.22", "escape-html": "^1.0.3", "file-loader": "^6.2.0", @@ -37,7 +37,7 @@ "webpack": "^5.73.0" }, "devDependencies": { - "@docusaurus/types": "2.0.0-beta.22", + "@docusaurus/types": "2.0.0-rc.1", "@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 c546c151146f..7176fe695471 100644 --- a/packages/docusaurus-migrate/package.json +++ b/packages/docusaurus-migrate/package.json @@ -1,6 +1,6 @@ { "name": "@docusaurus/migrate", - "version": "2.0.0-beta.22", + "version": "2.0.0-rc.1", "description": "A CLI tool to migrate from older versions of Docusaurus.", "license": "MIT", "engines": { @@ -24,8 +24,8 @@ "dependencies": { "@babel/core": "^7.18.6", "@babel/preset-env": "^7.18.6", - "@docusaurus/logger": "2.0.0-beta.22", - "@docusaurus/utils": "2.0.0-beta.22", + "@docusaurus/logger": "2.0.0-rc.1", + "@docusaurus/utils": "2.0.0-rc.1", "@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 b49481ecad3c..52254cbfa9c8 100644 --- a/packages/docusaurus-module-type-aliases/package.json +++ b/packages/docusaurus-module-type-aliases/package.json @@ -1,6 +1,6 @@ { "name": "@docusaurus/module-type-aliases", - "version": "2.0.0-beta.22", + "version": "2.0.0-rc.1", "description": "Docusaurus module type aliases.", "types": "./src/index.d.ts", "publishConfig": { @@ -13,7 +13,7 @@ }, "dependencies": { "@docusaurus/react-loadable": "5.5.2", - "@docusaurus/types": "2.0.0-beta.22", + "@docusaurus/types": "2.0.0-rc.1", "@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 b6ea2106398c..ad6693a94fe0 100644 --- a/packages/docusaurus-plugin-client-redirects/package.json +++ b/packages/docusaurus-plugin-client-redirects/package.json @@ -1,6 +1,6 @@ { "name": "@docusaurus/plugin-client-redirects", - "version": "2.0.0-beta.22", + "version": "2.0.0-rc.1", "description": "Client redirects plugin for Docusaurus.", "main": "lib/index.js", "types": "lib/index.d.ts", @@ -18,18 +18,18 @@ }, "license": "MIT", "dependencies": { - "@docusaurus/core": "2.0.0-beta.22", - "@docusaurus/logger": "2.0.0-beta.22", - "@docusaurus/utils": "2.0.0-beta.22", - "@docusaurus/utils-common": "2.0.0-beta.22", - "@docusaurus/utils-validation": "2.0.0-beta.22", + "@docusaurus/core": "2.0.0-rc.1", + "@docusaurus/logger": "2.0.0-rc.1", + "@docusaurus/utils": "2.0.0-rc.1", + "@docusaurus/utils-common": "2.0.0-rc.1", + "@docusaurus/utils-validation": "2.0.0-rc.1", "eta": "^1.12.3", "fs-extra": "^10.1.0", "lodash": "^4.17.21", "tslib": "^2.4.0" }, "devDependencies": { - "@docusaurus/types": "2.0.0-beta.22" + "@docusaurus/types": "2.0.0-rc.1" }, "peerDependencies": { "react": "^16.8.4 || ^17.0.0", diff --git a/packages/docusaurus-plugin-content-blog/package.json b/packages/docusaurus-plugin-content-blog/package.json index 8fa6e3244f53..1da0951be899 100644 --- a/packages/docusaurus-plugin-content-blog/package.json +++ b/packages/docusaurus-plugin-content-blog/package.json @@ -1,6 +1,6 @@ { "name": "@docusaurus/plugin-content-blog", - "version": "2.0.0-beta.22", + "version": "2.0.0-rc.1", "description": "Blog plugin for Docusaurus.", "main": "lib/index.js", "types": "src/plugin-content-blog.d.ts", @@ -18,13 +18,13 @@ }, "license": "MIT", "dependencies": { - "@docusaurus/core": "2.0.0-beta.22", - "@docusaurus/logger": "2.0.0-beta.22", - "@docusaurus/mdx-loader": "2.0.0-beta.22", - "@docusaurus/types": "2.0.0-beta.22", - "@docusaurus/utils": "2.0.0-beta.22", - "@docusaurus/utils-common": "2.0.0-beta.22", - "@docusaurus/utils-validation": "2.0.0-beta.22", + "@docusaurus/core": "2.0.0-rc.1", + "@docusaurus/logger": "2.0.0-rc.1", + "@docusaurus/mdx-loader": "2.0.0-rc.1", + "@docusaurus/types": "2.0.0-rc.1", + "@docusaurus/utils": "2.0.0-rc.1", + "@docusaurus/utils-common": "2.0.0-rc.1", + "@docusaurus/utils-validation": "2.0.0-rc.1", "cheerio": "^1.0.0-rc.12", "feed": "^4.2.2", "fs-extra": "^10.1.0", diff --git a/packages/docusaurus-plugin-content-docs/package.json b/packages/docusaurus-plugin-content-docs/package.json index 0f756297b9e4..1478512bdedb 100644 --- a/packages/docusaurus-plugin-content-docs/package.json +++ b/packages/docusaurus-plugin-content-docs/package.json @@ -1,6 +1,6 @@ { "name": "@docusaurus/plugin-content-docs", - "version": "2.0.0-beta.22", + "version": "2.0.0-rc.1", "description": "Docs plugin for Docusaurus.", "main": "lib/index.js", "sideEffects": false, @@ -34,13 +34,13 @@ }, "license": "MIT", "dependencies": { - "@docusaurus/core": "2.0.0-beta.22", - "@docusaurus/logger": "2.0.0-beta.22", - "@docusaurus/mdx-loader": "2.0.0-beta.22", - "@docusaurus/module-type-aliases": "2.0.0-beta.22", - "@docusaurus/types": "2.0.0-beta.22", - "@docusaurus/utils": "2.0.0-beta.22", - "@docusaurus/utils-validation": "2.0.0-beta.22", + "@docusaurus/core": "2.0.0-rc.1", + "@docusaurus/logger": "2.0.0-rc.1", + "@docusaurus/mdx-loader": "2.0.0-rc.1", + "@docusaurus/module-type-aliases": "2.0.0-rc.1", + "@docusaurus/types": "2.0.0-rc.1", + "@docusaurus/utils": "2.0.0-rc.1", + "@docusaurus/utils-validation": "2.0.0-rc.1", "@types/react-router-config": "^5.0.6", "combine-promises": "^1.1.0", "fs-extra": "^10.1.0", diff --git a/packages/docusaurus-plugin-content-pages/package.json b/packages/docusaurus-plugin-content-pages/package.json index 4bf7069048bc..6beaa2b9f9a7 100644 --- a/packages/docusaurus-plugin-content-pages/package.json +++ b/packages/docusaurus-plugin-content-pages/package.json @@ -1,6 +1,6 @@ { "name": "@docusaurus/plugin-content-pages", - "version": "2.0.0-beta.22", + "version": "2.0.0-rc.1", "description": "Pages plugin for Docusaurus.", "main": "lib/index.js", "types": "src/plugin-content-pages.d.ts", @@ -18,11 +18,11 @@ }, "license": "MIT", "dependencies": { - "@docusaurus/core": "2.0.0-beta.22", - "@docusaurus/mdx-loader": "2.0.0-beta.22", - "@docusaurus/types": "2.0.0-beta.22", - "@docusaurus/utils": "2.0.0-beta.22", - "@docusaurus/utils-validation": "2.0.0-beta.22", + "@docusaurus/core": "2.0.0-rc.1", + "@docusaurus/mdx-loader": "2.0.0-rc.1", + "@docusaurus/types": "2.0.0-rc.1", + "@docusaurus/utils": "2.0.0-rc.1", + "@docusaurus/utils-validation": "2.0.0-rc.1", "fs-extra": "^10.1.0", "tslib": "^2.4.0", "webpack": "^5.73.0" diff --git a/packages/docusaurus-plugin-debug/package.json b/packages/docusaurus-plugin-debug/package.json index 834d802fba81..06c369332a88 100644 --- a/packages/docusaurus-plugin-debug/package.json +++ b/packages/docusaurus-plugin-debug/package.json @@ -1,6 +1,6 @@ { "name": "@docusaurus/plugin-debug", - "version": "2.0.0-beta.22", + "version": "2.0.0-rc.1", "description": "Debug plugin for Docusaurus.", "main": "lib/index.js", "types": "src/plugin-debug.d.ts", @@ -20,9 +20,9 @@ }, "license": "MIT", "dependencies": { - "@docusaurus/core": "2.0.0-beta.22", - "@docusaurus/types": "2.0.0-beta.22", - "@docusaurus/utils": "2.0.0-beta.22", + "@docusaurus/core": "2.0.0-rc.1", + "@docusaurus/types": "2.0.0-rc.1", + "@docusaurus/utils": "2.0.0-rc.1", "fs-extra": "^10.1.0", "react-json-view": "^1.21.3", "tslib": "^2.4.0" diff --git a/packages/docusaurus-plugin-google-analytics/package.json b/packages/docusaurus-plugin-google-analytics/package.json index c1e55437cac9..5653c8f1ec85 100644 --- a/packages/docusaurus-plugin-google-analytics/package.json +++ b/packages/docusaurus-plugin-google-analytics/package.json @@ -1,6 +1,6 @@ { "name": "@docusaurus/plugin-google-analytics", - "version": "2.0.0-beta.22", + "version": "2.0.0-rc.1", "description": "Global analytics (analytics.js) plugin for Docusaurus.", "main": "lib/index.js", "types": "lib/index.d.ts", @@ -18,9 +18,9 @@ }, "license": "MIT", "dependencies": { - "@docusaurus/core": "2.0.0-beta.22", - "@docusaurus/types": "2.0.0-beta.22", - "@docusaurus/utils-validation": "2.0.0-beta.22", + "@docusaurus/core": "2.0.0-rc.1", + "@docusaurus/types": "2.0.0-rc.1", + "@docusaurus/utils-validation": "2.0.0-rc.1", "tslib": "^2.4.0" }, "devDependencies": { diff --git a/packages/docusaurus-plugin-google-gtag/package.json b/packages/docusaurus-plugin-google-gtag/package.json index e1b67006d10c..a4bd759fea9c 100644 --- a/packages/docusaurus-plugin-google-gtag/package.json +++ b/packages/docusaurus-plugin-google-gtag/package.json @@ -1,6 +1,6 @@ { "name": "@docusaurus/plugin-google-gtag", - "version": "2.0.0-beta.22", + "version": "2.0.0-rc.1", "description": "Global Site Tag (gtag.js) plugin for Docusaurus.", "main": "lib/index.js", "types": "lib/index.d.ts", @@ -18,9 +18,9 @@ }, "license": "MIT", "dependencies": { - "@docusaurus/core": "2.0.0-beta.22", - "@docusaurus/types": "2.0.0-beta.22", - "@docusaurus/utils-validation": "2.0.0-beta.22", + "@docusaurus/core": "2.0.0-rc.1", + "@docusaurus/types": "2.0.0-rc.1", + "@docusaurus/utils-validation": "2.0.0-rc.1", "tslib": "^2.4.0" }, "devDependencies": { diff --git a/packages/docusaurus-plugin-ideal-image/package.json b/packages/docusaurus-plugin-ideal-image/package.json index f43806fb7006..d1a9ca0c85bb 100644 --- a/packages/docusaurus-plugin-ideal-image/package.json +++ b/packages/docusaurus-plugin-ideal-image/package.json @@ -1,6 +1,6 @@ { "name": "@docusaurus/plugin-ideal-image", - "version": "2.0.0-beta.22", + "version": "2.0.0-rc.1", "description": "Docusaurus Plugin to generate an almost ideal image (responsive, lazy-loading, and low quality placeholder).", "main": "lib/index.js", "types": "src/plugin-ideal-image.d.ts", @@ -20,12 +20,12 @@ }, "license": "MIT", "dependencies": { - "@docusaurus/core": "2.0.0-beta.22", - "@docusaurus/lqip-loader": "2.0.0-beta.22", + "@docusaurus/core": "2.0.0-rc.1", + "@docusaurus/lqip-loader": "2.0.0-rc.1", "@docusaurus/responsive-loader": "^1.7.0", - "@docusaurus/theme-translations": "2.0.0-beta.22", - "@docusaurus/types": "2.0.0-beta.22", - "@docusaurus/utils-validation": "2.0.0-beta.22", + "@docusaurus/theme-translations": "2.0.0-rc.1", + "@docusaurus/types": "2.0.0-rc.1", + "@docusaurus/utils-validation": "2.0.0-rc.1", "@endiliey/react-ideal-image": "^0.0.11", "react-waypoint": "^10.3.0", "sharp": "^0.30.7", @@ -33,7 +33,7 @@ "webpack": "^5.73.0" }, "devDependencies": { - "@docusaurus/module-type-aliases": "2.0.0-beta.22", + "@docusaurus/module-type-aliases": "2.0.0-rc.1", "@docusaurus/types": "2.0.0-beta.21", "fs-extra": "^10.1.0" }, diff --git a/packages/docusaurus-plugin-pwa/package.json b/packages/docusaurus-plugin-pwa/package.json index 4d91dd42568e..73731c8191b3 100644 --- a/packages/docusaurus-plugin-pwa/package.json +++ b/packages/docusaurus-plugin-pwa/package.json @@ -1,6 +1,6 @@ { "name": "@docusaurus/plugin-pwa", - "version": "2.0.0-beta.22", + "version": "2.0.0-rc.1", "description": "Docusaurus Plugin to add PWA support.", "main": "lib/index.js", "types": "src/plugin-pwa.d.ts", @@ -22,12 +22,12 @@ "dependencies": { "@babel/core": "^7.18.6", "@babel/preset-env": "^7.18.6", - "@docusaurus/core": "2.0.0-beta.22", - "@docusaurus/theme-common": "2.0.0-beta.22", - "@docusaurus/theme-translations": "2.0.0-beta.22", - "@docusaurus/types": "2.0.0-beta.22", - "@docusaurus/utils": "2.0.0-beta.22", - "@docusaurus/utils-validation": "2.0.0-beta.22", + "@docusaurus/core": "2.0.0-rc.1", + "@docusaurus/theme-common": "2.0.0-rc.1", + "@docusaurus/theme-translations": "2.0.0-rc.1", + "@docusaurus/types": "2.0.0-rc.1", + "@docusaurus/utils": "2.0.0-rc.1", + "@docusaurus/utils-validation": "2.0.0-rc.1", "babel-loader": "^8.2.5", "clsx": "^1.2.1", "core-js": "^3.23.3", @@ -40,7 +40,7 @@ "workbox-window": "^6.5.3" }, "devDependencies": { - "@docusaurus/module-type-aliases": "2.0.0-beta.22", + "@docusaurus/module-type-aliases": "2.0.0-rc.1", "fs-extra": "^10.1.0" }, "peerDependencies": { diff --git a/packages/docusaurus-plugin-sitemap/package.json b/packages/docusaurus-plugin-sitemap/package.json index 23b65ea3476c..46611fb21a3b 100644 --- a/packages/docusaurus-plugin-sitemap/package.json +++ b/packages/docusaurus-plugin-sitemap/package.json @@ -1,6 +1,6 @@ { "name": "@docusaurus/plugin-sitemap", - "version": "2.0.0-beta.22", + "version": "2.0.0-rc.1", "description": "Simple sitemap generation plugin for Docusaurus.", "main": "lib/index.js", "types": "lib/index.d.ts", @@ -18,12 +18,12 @@ }, "license": "MIT", "dependencies": { - "@docusaurus/core": "2.0.0-beta.22", - "@docusaurus/logger": "2.0.0-beta.22", - "@docusaurus/types": "2.0.0-beta.22", - "@docusaurus/utils": "2.0.0-beta.22", - "@docusaurus/utils-common": "2.0.0-beta.22", - "@docusaurus/utils-validation": "2.0.0-beta.22", + "@docusaurus/core": "2.0.0-rc.1", + "@docusaurus/logger": "2.0.0-rc.1", + "@docusaurus/types": "2.0.0-rc.1", + "@docusaurus/utils": "2.0.0-rc.1", + "@docusaurus/utils-common": "2.0.0-rc.1", + "@docusaurus/utils-validation": "2.0.0-rc.1", "fs-extra": "^10.1.0", "sitemap": "^7.1.1", "tslib": "^2.4.0" diff --git a/packages/docusaurus-preset-classic/package.json b/packages/docusaurus-preset-classic/package.json index 38580177c5ba..56e91f2c5001 100644 --- a/packages/docusaurus-preset-classic/package.json +++ b/packages/docusaurus-preset-classic/package.json @@ -1,6 +1,6 @@ { "name": "@docusaurus/preset-classic", - "version": "2.0.0-beta.22", + "version": "2.0.0-rc.1", "description": "Classic preset for Docusaurus.", "main": "lib/index.js", "types": "lib/index.d.ts", @@ -18,18 +18,18 @@ }, "license": "MIT", "dependencies": { - "@docusaurus/core": "2.0.0-beta.22", - "@docusaurus/plugin-content-blog": "2.0.0-beta.22", - "@docusaurus/plugin-content-docs": "2.0.0-beta.22", - "@docusaurus/plugin-content-pages": "2.0.0-beta.22", - "@docusaurus/plugin-debug": "2.0.0-beta.22", - "@docusaurus/plugin-google-analytics": "2.0.0-beta.22", - "@docusaurus/plugin-google-gtag": "2.0.0-beta.22", - "@docusaurus/plugin-sitemap": "2.0.0-beta.22", - "@docusaurus/theme-classic": "2.0.0-beta.22", - "@docusaurus/theme-common": "2.0.0-beta.22", - "@docusaurus/theme-search-algolia": "2.0.0-beta.22", - "@docusaurus/types": "2.0.0-beta.22" + "@docusaurus/core": "2.0.0-rc.1", + "@docusaurus/plugin-content-blog": "2.0.0-rc.1", + "@docusaurus/plugin-content-docs": "2.0.0-rc.1", + "@docusaurus/plugin-content-pages": "2.0.0-rc.1", + "@docusaurus/plugin-debug": "2.0.0-rc.1", + "@docusaurus/plugin-google-analytics": "2.0.0-rc.1", + "@docusaurus/plugin-google-gtag": "2.0.0-rc.1", + "@docusaurus/plugin-sitemap": "2.0.0-rc.1", + "@docusaurus/theme-classic": "2.0.0-rc.1", + "@docusaurus/theme-common": "2.0.0-rc.1", + "@docusaurus/theme-search-algolia": "2.0.0-rc.1", + "@docusaurus/types": "2.0.0-rc.1" }, "peerDependencies": { "react": "^16.8.4 || ^17.0.0", diff --git a/packages/docusaurus-remark-plugin-npm2yarn/package.json b/packages/docusaurus-remark-plugin-npm2yarn/package.json index e94aff7e42f4..9c156a52a547 100644 --- a/packages/docusaurus-remark-plugin-npm2yarn/package.json +++ b/packages/docusaurus-remark-plugin-npm2yarn/package.json @@ -1,6 +1,6 @@ { "name": "@docusaurus/remark-plugin-npm2yarn", - "version": "2.0.0-beta.22", + "version": "2.0.0-rc.1", "description": "Remark plugin for converting npm commands to Yarn commands as tabs.", "main": "lib/index.js", "publishConfig": { diff --git a/packages/docusaurus-theme-classic/package.json b/packages/docusaurus-theme-classic/package.json index 65d09e88a043..64dd6d31f103 100644 --- a/packages/docusaurus-theme-classic/package.json +++ b/packages/docusaurus-theme-classic/package.json @@ -1,6 +1,6 @@ { "name": "@docusaurus/theme-classic", - "version": "2.0.0-beta.22", + "version": "2.0.0-rc.1", "description": "Classic theme for Docusaurus", "main": "lib/index.js", "types": "src/theme-classic.d.ts", @@ -20,18 +20,18 @@ "copy:watch": "node ../../admin/scripts/copyUntypedFiles.js --watch" }, "dependencies": { - "@docusaurus/core": "2.0.0-beta.22", - "@docusaurus/mdx-loader": "2.0.0-beta.22", - "@docusaurus/module-type-aliases": "2.0.0-beta.22", - "@docusaurus/plugin-content-blog": "2.0.0-beta.22", - "@docusaurus/plugin-content-docs": "2.0.0-beta.22", - "@docusaurus/plugin-content-pages": "2.0.0-beta.22", - "@docusaurus/theme-common": "2.0.0-beta.22", - "@docusaurus/theme-translations": "2.0.0-beta.22", - "@docusaurus/types": "2.0.0-beta.22", - "@docusaurus/utils": "2.0.0-beta.22", - "@docusaurus/utils-common": "2.0.0-beta.22", - "@docusaurus/utils-validation": "2.0.0-beta.22", + "@docusaurus/core": "2.0.0-rc.1", + "@docusaurus/mdx-loader": "2.0.0-rc.1", + "@docusaurus/module-type-aliases": "2.0.0-rc.1", + "@docusaurus/plugin-content-blog": "2.0.0-rc.1", + "@docusaurus/plugin-content-docs": "2.0.0-rc.1", + "@docusaurus/plugin-content-pages": "2.0.0-rc.1", + "@docusaurus/theme-common": "2.0.0-rc.1", + "@docusaurus/theme-translations": "2.0.0-rc.1", + "@docusaurus/types": "2.0.0-rc.1", + "@docusaurus/utils": "2.0.0-rc.1", + "@docusaurus/utils-common": "2.0.0-rc.1", + "@docusaurus/utils-validation": "2.0.0-rc.1", "@mdx-js/react": "^1.6.22", "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 a601a8eec0dd..bc9c760d8eec 100644 --- a/packages/docusaurus-theme-common/package.json +++ b/packages/docusaurus-theme-common/package.json @@ -1,6 +1,6 @@ { "name": "@docusaurus/theme-common", - "version": "2.0.0-beta.22", + "version": "2.0.0-rc.1", "description": "Common code for Docusaurus themes.", "main": "./lib/index.js", "types": "./lib/index.d.ts", @@ -30,12 +30,12 @@ }, "license": "MIT", "dependencies": { - "@docusaurus/mdx-loader": "2.0.0-beta.22", - "@docusaurus/module-type-aliases": "2.0.0-beta.22", - "@docusaurus/plugin-content-blog": "2.0.0-beta.22", - "@docusaurus/plugin-content-docs": "2.0.0-beta.22", - "@docusaurus/plugin-content-pages": "2.0.0-beta.22", - "@docusaurus/utils": "2.0.0-beta.22", + "@docusaurus/mdx-loader": "2.0.0-rc.1", + "@docusaurus/module-type-aliases": "2.0.0-rc.1", + "@docusaurus/plugin-content-blog": "2.0.0-rc.1", + "@docusaurus/plugin-content-docs": "2.0.0-rc.1", + "@docusaurus/plugin-content-pages": "2.0.0-rc.1", + "@docusaurus/utils": "2.0.0-rc.1", "@types/history": "^4.7.11", "@types/react": "*", "@types/react-router-config": "*", @@ -46,8 +46,8 @@ "utility-types": "^3.10.0" }, "devDependencies": { - "@docusaurus/core": "2.0.0-beta.22", - "@docusaurus/types": "2.0.0-beta.22", + "@docusaurus/core": "2.0.0-rc.1", + "@docusaurus/types": "2.0.0-rc.1", "fs-extra": "^10.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 09b35ef0a821..ca806b90a74c 100644 --- a/packages/docusaurus-theme-live-codeblock/package.json +++ b/packages/docusaurus-theme-live-codeblock/package.json @@ -1,6 +1,6 @@ { "name": "@docusaurus/theme-live-codeblock", - "version": "2.0.0-beta.22", + "version": "2.0.0-rc.1", "description": "Docusaurus live code block component.", "main": "lib/index.js", "types": "src/theme-live-codeblock.d.ts", @@ -23,10 +23,10 @@ }, "license": "MIT", "dependencies": { - "@docusaurus/core": "2.0.0-beta.22", - "@docusaurus/theme-common": "2.0.0-beta.22", - "@docusaurus/theme-translations": "2.0.0-beta.22", - "@docusaurus/utils-validation": "2.0.0-beta.22", + "@docusaurus/core": "2.0.0-rc.1", + "@docusaurus/theme-common": "2.0.0-rc.1", + "@docusaurus/theme-translations": "2.0.0-rc.1", + "@docusaurus/utils-validation": "2.0.0-rc.1", "@philpl/buble": "^0.19.7", "clsx": "^1.2.1", "fs-extra": "^10.1.0", @@ -34,7 +34,7 @@ "tslib": "^2.4.0" }, "devDependencies": { - "@docusaurus/types": "2.0.0-beta.22", + "@docusaurus/types": "2.0.0-rc.1", "@types/buble": "^0.20.1" }, "peerDependencies": { diff --git a/packages/docusaurus-theme-search-algolia/package.json b/packages/docusaurus-theme-search-algolia/package.json index 645228e12ea2..a86ec904e59f 100644 --- a/packages/docusaurus-theme-search-algolia/package.json +++ b/packages/docusaurus-theme-search-algolia/package.json @@ -1,6 +1,6 @@ { "name": "@docusaurus/theme-search-algolia", - "version": "2.0.0-beta.22", + "version": "2.0.0-rc.1", "description": "Algolia search component for Docusaurus.", "main": "lib/index.js", "sideEffects": [ @@ -34,13 +34,13 @@ }, "dependencies": { "@docsearch/react": "^3.1.1", - "@docusaurus/core": "2.0.0-beta.22", - "@docusaurus/logger": "2.0.0-beta.22", - "@docusaurus/plugin-content-docs": "2.0.0-beta.22", - "@docusaurus/theme-common": "2.0.0-beta.22", - "@docusaurus/theme-translations": "2.0.0-beta.22", - "@docusaurus/utils": "2.0.0-beta.22", - "@docusaurus/utils-validation": "2.0.0-beta.22", + "@docusaurus/core": "2.0.0-rc.1", + "@docusaurus/logger": "2.0.0-rc.1", + "@docusaurus/plugin-content-docs": "2.0.0-rc.1", + "@docusaurus/theme-common": "2.0.0-rc.1", + "@docusaurus/theme-translations": "2.0.0-rc.1", + "@docusaurus/utils": "2.0.0-rc.1", + "@docusaurus/utils-validation": "2.0.0-rc.1", "algoliasearch": "^4.13.1", "algoliasearch-helper": "^3.10.0", "clsx": "^1.2.1", @@ -51,7 +51,7 @@ "utility-types": "^3.10.0" }, "devDependencies": { - "@docusaurus/module-type-aliases": "2.0.0-beta.22" + "@docusaurus/module-type-aliases": "2.0.0-rc.1" }, "peerDependencies": { "react": "^16.8.4 || ^17.0.0", diff --git a/packages/docusaurus-theme-translations/package.json b/packages/docusaurus-theme-translations/package.json index bb47a90e0432..7403ead5bfaf 100644 --- a/packages/docusaurus-theme-translations/package.json +++ b/packages/docusaurus-theme-translations/package.json @@ -1,6 +1,6 @@ { "name": "@docusaurus/theme-translations", - "version": "2.0.0-beta.22", + "version": "2.0.0-rc.1", "description": "Docusaurus theme translations.", "main": "lib/index.js", "types": "lib/index.d.ts", @@ -23,8 +23,8 @@ "tslib": "^2.4.0" }, "devDependencies": { - "@docusaurus/core": "2.0.0-beta.22", - "@docusaurus/logger": "2.0.0-beta.22", + "@docusaurus/core": "2.0.0-rc.1", + "@docusaurus/logger": "2.0.0-rc.1", "lodash": "^4.17.21" }, "engines": { diff --git a/packages/docusaurus-types/package.json b/packages/docusaurus-types/package.json index d581f8efd2f5..62e8004b7848 100644 --- a/packages/docusaurus-types/package.json +++ b/packages/docusaurus-types/package.json @@ -1,6 +1,6 @@ { "name": "@docusaurus/types", - "version": "2.0.0-beta.22", + "version": "2.0.0-rc.1", "description": "Common types for Docusaurus packages.", "types": "./src/index.d.ts", "publishConfig": { diff --git a/packages/docusaurus-utils-common/package.json b/packages/docusaurus-utils-common/package.json index c05c3764e077..a23c9440e55b 100644 --- a/packages/docusaurus-utils-common/package.json +++ b/packages/docusaurus-utils-common/package.json @@ -1,6 +1,6 @@ { "name": "@docusaurus/utils-common", - "version": "2.0.0-beta.22", + "version": "2.0.0-rc.1", "description": "Common (Node/Browser) utility functions for Docusaurus packages.", "main": "./lib/index.js", "types": "./lib/index.d.ts", diff --git a/packages/docusaurus-utils-validation/package.json b/packages/docusaurus-utils-validation/package.json index a22e52e10acb..53fd5d160bf8 100644 --- a/packages/docusaurus-utils-validation/package.json +++ b/packages/docusaurus-utils-validation/package.json @@ -1,6 +1,6 @@ { "name": "@docusaurus/utils-validation", - "version": "2.0.0-beta.22", + "version": "2.0.0-rc.1", "description": "Node validation utility functions for Docusaurus packages.", "main": "./lib/index.js", "types": "./lib/index.d.ts", @@ -18,8 +18,8 @@ }, "license": "MIT", "dependencies": { - "@docusaurus/logger": "2.0.0-beta.22", - "@docusaurus/utils": "2.0.0-beta.22", + "@docusaurus/logger": "2.0.0-rc.1", + "@docusaurus/utils": "2.0.0-rc.1", "joi": "^17.6.0", "js-yaml": "^4.1.0", "tslib": "^2.4.0" diff --git a/packages/docusaurus-utils/package.json b/packages/docusaurus-utils/package.json index 872245a51fd2..5af9c4f37112 100644 --- a/packages/docusaurus-utils/package.json +++ b/packages/docusaurus-utils/package.json @@ -1,6 +1,6 @@ { "name": "@docusaurus/utils", - "version": "2.0.0-beta.22", + "version": "2.0.0-rc.1", "description": "Node utility functions for Docusaurus packages.", "main": "./lib/index.js", "types": "./lib/index.d.ts", @@ -18,7 +18,7 @@ }, "license": "MIT", "dependencies": { - "@docusaurus/logger": "2.0.0-beta.22", + "@docusaurus/logger": "2.0.0-rc.1", "@svgr/webpack": "^6.2.1", "file-loader": "^6.2.0", "fs-extra": "^10.1.0", @@ -38,7 +38,7 @@ "node": ">=16.14" }, "devDependencies": { - "@docusaurus/types": "2.0.0-beta.22", + "@docusaurus/types": "2.0.0-rc.1", "@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 2de057bd2d2d..f621ba6e6e30 100644 --- a/packages/docusaurus/package.json +++ b/packages/docusaurus/package.json @@ -1,7 +1,7 @@ { "name": "@docusaurus/core", "description": "Easy to Maintain Open Source Documentation Websites", - "version": "2.0.0-beta.22", + "version": "2.0.0-rc.1", "license": "MIT", "publishConfig": { "access": "public" @@ -43,13 +43,13 @@ "@babel/runtime": "^7.18.6", "@babel/runtime-corejs3": "^7.18.6", "@babel/traverse": "^7.18.8", - "@docusaurus/cssnano-preset": "2.0.0-beta.22", - "@docusaurus/logger": "2.0.0-beta.22", - "@docusaurus/mdx-loader": "2.0.0-beta.22", + "@docusaurus/cssnano-preset": "2.0.0-rc.1", + "@docusaurus/logger": "2.0.0-rc.1", + "@docusaurus/mdx-loader": "2.0.0-rc.1", "@docusaurus/react-loadable": "5.5.2", - "@docusaurus/utils": "2.0.0-beta.22", - "@docusaurus/utils-common": "2.0.0-beta.22", - "@docusaurus/utils-validation": "2.0.0-beta.22", + "@docusaurus/utils": "2.0.0-rc.1", + "@docusaurus/utils-common": "2.0.0-rc.1", + "@docusaurus/utils-validation": "2.0.0-rc.1", "@slorber/static-site-generator-webpack-plugin": "^4.0.7", "@svgr/webpack": "^6.2.1", "autoprefixer": "^10.4.7", @@ -106,8 +106,8 @@ "webpackbar": "^5.0.2" }, "devDependencies": { - "@docusaurus/module-type-aliases": "2.0.0-beta.22", - "@docusaurus/types": "2.0.0-beta.22", + "@docusaurus/module-type-aliases": "2.0.0-rc.1", + "@docusaurus/types": "2.0.0-rc.1", "@types/detect-port": "^1.3.2", "@types/react-dom": "^18.0.6", "@types/react-router-config": "^5.0.6", diff --git a/packages/eslint-plugin/package.json b/packages/eslint-plugin/package.json index 11aca3005b01..9a36f3062a82 100644 --- a/packages/eslint-plugin/package.json +++ b/packages/eslint-plugin/package.json @@ -1,6 +1,6 @@ { "name": "@docusaurus/eslint-plugin", - "version": "2.0.0-beta.22", + "version": "2.0.0-rc.1", "description": "ESLint plugin to enforce best Docusaurus practices.", "main": "lib/index.js", "keywords": [ diff --git a/packages/lqip-loader/package.json b/packages/lqip-loader/package.json index 04dee1b565d5..45d71d03a8b0 100644 --- a/packages/lqip-loader/package.json +++ b/packages/lqip-loader/package.json @@ -1,6 +1,6 @@ { "name": "@docusaurus/lqip-loader", - "version": "2.0.0-beta.22", + "version": "2.0.0-rc.1", "description": "Low Quality Image Placeholders (LQIP) loader for webpack.", "main": "lib/index.js", "publishConfig": { @@ -17,7 +17,7 @@ }, "license": "MIT", "dependencies": { - "@docusaurus/logger": "2.0.0-beta.22", + "@docusaurus/logger": "2.0.0-rc.1", "file-loader": "^6.2.0", "lodash": "^4.17.21", "sharp": "^0.30.7", diff --git a/packages/stylelint-copyright/package.json b/packages/stylelint-copyright/package.json index b56492b0f72d..1161f1cdefaf 100644 --- a/packages/stylelint-copyright/package.json +++ b/packages/stylelint-copyright/package.json @@ -1,6 +1,6 @@ { "name": "stylelint-copyright", - "version": "2.0.0-beta.22", + "version": "2.0.0-rc.1", "description": "Stylelint plugin to check CSS files for a copyright header.", "main": "lib/index.js", "license": "MIT", diff --git a/website/docusaurus.config.js b/website/docusaurus.config.js index 022ba4cf7762..b4bc19997ae2 100644 --- a/website/docusaurus.config.js +++ b/website/docusaurus.config.js @@ -21,14 +21,14 @@ const ArchivedVersionsDropdownItems = Object.entries(VersionsArchived).splice( 5, ); -// This probably only makes sense for the beta phase, temporary -function getNextBetaVersionName() { - const expectedPrefix = '2.0.0-beta.'; +// This probably only makes sense for the alpha/beta/rc phase, temporary +function getNextVersionName() { + const expectedPrefix = '2.0.0-rc.'; const lastReleasedVersion = versions[0]; if (!lastReleasedVersion || !lastReleasedVersion.includes(expectedPrefix)) { throw new Error( - 'this code is only meant to be used during the 2.0 beta phase.', + 'this code is only meant to be used during the 2.0 alpha/beta/rc phase.', ); } const version = parseInt(lastReleasedVersion.replace(expectedPrefix, ''), 10); @@ -310,7 +310,7 @@ const config = { })(), versions: { current: { - label: `${getNextBetaVersionName()} 🚧`, + label: `${getNextVersionName()} 🚧`, }, }, }, diff --git a/website/package.json b/website/package.json index b0848d580dc2..ff9aab04830d 100644 --- a/website/package.json +++ b/website/package.json @@ -1,6 +1,6 @@ { "name": "website", - "version": "2.0.0-beta.22", + "version": "2.0.0-rc.1", "private": true, "scripts": { "docusaurus": "docusaurus", @@ -35,18 +35,18 @@ "dependencies": { "@crowdin/cli": "^3.7.9", "@crowdin/crowdin-api-client": "^1.18.2", - "@docusaurus/core": "2.0.0-beta.22", - "@docusaurus/logger": "2.0.0-beta.22", - "@docusaurus/plugin-client-redirects": "2.0.0-beta.22", - "@docusaurus/plugin-ideal-image": "2.0.0-beta.22", - "@docusaurus/plugin-pwa": "2.0.0-beta.22", - "@docusaurus/preset-classic": "2.0.0-beta.22", - "@docusaurus/remark-plugin-npm2yarn": "2.0.0-beta.22", - "@docusaurus/theme-classic": "2.0.0-beta.22", - "@docusaurus/theme-common": "2.0.0-beta.22", - "@docusaurus/theme-live-codeblock": "2.0.0-beta.22", - "@docusaurus/utils": "2.0.0-beta.22", - "@docusaurus/utils-common": "2.0.0-beta.22", + "@docusaurus/core": "2.0.0-rc.1", + "@docusaurus/logger": "2.0.0-rc.1", + "@docusaurus/plugin-client-redirects": "2.0.0-rc.1", + "@docusaurus/plugin-ideal-image": "2.0.0-rc.1", + "@docusaurus/plugin-pwa": "2.0.0-rc.1", + "@docusaurus/preset-classic": "2.0.0-rc.1", + "@docusaurus/remark-plugin-npm2yarn": "2.0.0-rc.1", + "@docusaurus/theme-classic": "2.0.0-rc.1", + "@docusaurus/theme-common": "2.0.0-rc.1", + "@docusaurus/theme-live-codeblock": "2.0.0-rc.1", + "@docusaurus/utils": "2.0.0-rc.1", + "@docusaurus/utils-common": "2.0.0-rc.1", "@popperjs/core": "^2.11.5", "@swc/core": "1.2.197", "clsx": "^1.2.1", @@ -80,7 +80,7 @@ ] }, "devDependencies": { - "@docusaurus/eslint-plugin": "2.0.0-beta.22", + "@docusaurus/eslint-plugin": "2.0.0-rc.1", "@tsconfig/docusaurus": "^1.0.5", "@types/jest": "^28.1.4", "cross-env": "^7.0.3", diff --git a/website/versioned_docs/version-2.0.0-beta.21/api/themes/theme-classic.md b/website/versioned_docs/version-2.0.0-beta.21/api/themes/theme-classic.md deleted file mode 100644 index e99a320f135b..000000000000 --- a/website/versioned_docs/version-2.0.0-beta.21/api/themes/theme-classic.md +++ /dev/null @@ -1,20 +0,0 @@ ---- -sidebar_position: 2 -id: theme-classic -title: 'πŸ“¦ theme-classic' -slug: '/api/themes/@docusaurus/theme-classic' ---- - -The classic theme for Docusaurus. - -You can refer to the [theme configuration page](theme-configuration.md) for more details on the configuration. - -```bash npm2yarn -npm install --save @docusaurus/theme-classic -``` - -:::tip - -If you have installed `@docusaurus/preset-classic`, you don't need to install it as a dependency. - -::: diff --git a/website/versioned_docs/version-2.0.0-beta.21/guides/docs/docs-create-doc.mdx b/website/versioned_docs/version-2.0.0-beta.21/guides/docs/docs-create-doc.mdx deleted file mode 100644 index f81121781d1d..000000000000 --- a/website/versioned_docs/version-2.0.0-beta.21/guides/docs/docs-create-doc.mdx +++ /dev/null @@ -1,119 +0,0 @@ ---- -id: create-doc -title: Create a doc -description: Create a Markdown Document -slug: /create-doc ---- - -Create a Markdown file, `greeting.md`, and place it under the `docs` directory. - -```bash -website # root directory of your site -β”œβ”€β”€ docs -β”‚ └── greeting.md -β”œβ”€β”€ src -β”‚ └── pages -β”œβ”€β”€ docusaurus.config.js -β”œβ”€β”€ ... -``` - -At the top of the file, specify `id` and `title` in the front matter, so that Docusaurus will pick them up correctly when generating your site. - -```md ---- -id: greeting -title: Hello ---- - -## Hello from Docusaurus - -Are you ready to create the documentation site for your open source project? - -### Headers - -will show up on the table of contents on the upper right - -So that your users will know what this page is all about without scrolling down or even without reading too much. - -### Only h2 and h3 will be in the TOC by default. - -You can configure the TOC heading levels either per-document or in the theme configuration. - -The headers are well-spaced so that the hierarchy is clear. - -- lists will help you -- present the key points -- that you want your users to remember - - and you may nest them - - multiple times - -### Custom id headers {#custom-id} - -With `{#custom-id}` syntax you can set your own header id. -``` - -This will render in the browser as follows: - -```mdx-code-block -import BrowserWindow from '@site/src/components/BrowserWindow'; - - - -

Hello from Docusaurus

- -Are you ready to create the documentation site for your open source project? - -

Headers

- -will show up on the table of contents on the upper right - -So that your users will know what this page is all about without scrolling down or even without reading too much. - -

Only h2 and h3 will be in the TOC by default.

- -You can configure the TOC heading levels either per document or in the theme configuration. - -The headers are well-spaced so that the hierarchy is clear. - -- lists will help you -- present the key points -- that you want your users to remember - - and you may nest them - - multiple times - -

Custom id headers

- -With {#custom-id} syntax you can set your own header id. - -
-``` - -:::note - -All files prefixed with an underscore (`_`) under the `docs` directory are treated as "partial" pages and will be ignored by default. - -Read more about [importing partial pages](../markdown-features/markdown-features-react.mdx#importing-markdown). - -::: - -## Doc tags {#doc-tags} - -Optionally, you can add tags to your doc pages, which introduces another dimension of categorization in addition to the [docs sidebar](./sidebar/index.md). Tags are passed in the front matter as a list of labels: - -```md "your-doc-page.md" ---- -id: doc-with-tags -title: A doc with tags -tags: - - Demo - - Getting started ---- -``` - -:::tip - -Tags can also be declared with `tags: [Demo, Getting started]`. - -Read more about all the possible [Yaml array syntaxes](https://www.w3schools.io/file/yaml-arrays/). - -::: diff --git a/website/versioned_docs/version-2.0.0-beta.21/advanced/architecture.md b/website/versioned_docs/version-2.0.0-rc.1/advanced/architecture.md similarity index 100% rename from website/versioned_docs/version-2.0.0-beta.21/advanced/architecture.md rename to website/versioned_docs/version-2.0.0-rc.1/advanced/architecture.md diff --git a/website/versioned_docs/version-2.0.0-beta.21/advanced/client.md b/website/versioned_docs/version-2.0.0-rc.1/advanced/client.md similarity index 100% rename from website/versioned_docs/version-2.0.0-beta.21/advanced/client.md rename to website/versioned_docs/version-2.0.0-rc.1/advanced/client.md diff --git a/website/versioned_docs/version-2.0.0-beta.21/advanced/index.md b/website/versioned_docs/version-2.0.0-rc.1/advanced/index.md similarity index 100% rename from website/versioned_docs/version-2.0.0-beta.21/advanced/index.md rename to website/versioned_docs/version-2.0.0-rc.1/advanced/index.md diff --git a/website/versioned_docs/version-2.0.0-beta.21/advanced/plugins.md b/website/versioned_docs/version-2.0.0-rc.1/advanced/plugins.md similarity index 100% rename from website/versioned_docs/version-2.0.0-beta.21/advanced/plugins.md rename to website/versioned_docs/version-2.0.0-rc.1/advanced/plugins.md diff --git a/website/versioned_docs/version-2.0.0-beta.21/advanced/routing.md b/website/versioned_docs/version-2.0.0-rc.1/advanced/routing.md similarity index 99% rename from website/versioned_docs/version-2.0.0-beta.21/advanced/routing.md rename to website/versioned_docs/version-2.0.0-rc.1/advanced/routing.md index 82c85b7aae12..9ee8294b1b1a 100644 --- a/website/versioned_docs/version-2.0.0-beta.21/advanced/routing.md +++ b/website/versioned_docs/version-2.0.0-rc.1/advanced/routing.md @@ -81,7 +81,7 @@ When writing links in Markdown, you could either mean a _file path_, or a _URL p - If the path has an `.md(x)` extension, Docusaurus would try to resolve that Markdown file to a URL, and replace the file path with a URL path. - If the path has any other extension, Docusaurus would treat it as [an asset](../guides/markdown-features/markdown-features-assets.mdx) and bundle it. -The following directory structure may help you visualize this file -> URL mapping. Assume that there's no slug customization in any page. +The following directory structure may help you visualize this file β†’ URL mapping. Assume that there's no slug customization in any page.
diff --git a/website/versioned_docs/version-2.0.0-beta.21/advanced/ssg.md b/website/versioned_docs/version-2.0.0-rc.1/advanced/ssg.md similarity index 94% rename from website/versioned_docs/version-2.0.0-beta.21/advanced/ssg.md rename to website/versioned_docs/version-2.0.0-rc.1/advanced/ssg.md index 0a394f9179b4..09fb981e6dfc 100644 --- a/website/versioned_docs/version-2.0.0-beta.21/advanced/ssg.md +++ b/website/versioned_docs/version-2.0.0-rc.1/advanced/ssg.md @@ -8,12 +8,14 @@ description: Docusaurus statically renders your React code into HTML, allowing f In [architecture](architecture.md), we mentioned that the theme is run in Webpack. But beware: that doesn't mean it always has access to browser globals! The theme is built twice: - During **server-side rendering**, the theme is compiled in a sandbox called [React DOM Server](https://reactjs.org/docs/react-dom-server.html). You can see this as a "headless browser", where there is no `window` or `document`, only React. SSR produces static HTML pages. -- During **client-side rendering**, the theme is compiled with standard React DOM, and has access to browser variables. CSR produces dynamic JavaScript. +- During **client-side rendering**, the theme is compiled to JavaScript that gets eventually executed in the browser, so it has access to browser variables. :::info SSR or SSG? _Server-side rendering_ and _static site generation_ can be different concepts, but we use them interchangeably. +Strictly speaking, Docusaurus is a static site generator, because there's no server-side runtimeβ€”we statically render to HTML files that are deployed on a CDN, instead of dynamically pre-rendering on each request. This differs from the working model of [Next.js](https://nextjs.org/). + ::: Therefore, while you probably know not to access Node globals like `process` ([or can we?](#node-env)) or the `'fs'` module, you can't freely access browser globals either. @@ -34,9 +36,10 @@ ReferenceError: window is not defined This is because during server-side rendering, the Docusaurus app isn't actually run in browser, and it doesn't know what `window` is. +```mdx-code-block
- What about process.env.NODE_ENV? +``` 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: @@ -56,8 +59,10 @@ During Webpack build, the `process.env.NODE_ENV` will be replaced with the value import Tabs from '@theme/Tabs'; import TabItem from '@theme/TabItem'; +```mdx-code-block +``` ```diff import React from 'react'; @@ -72,8 +77,10 @@ export default function expensiveComp() { } ``` +```mdx-code-block +``` ```diff import React from 'react'; @@ -88,9 +95,11 @@ export default function expensiveComp() { } ``` +```mdx-code-block
+``` ## Understanding SSR {#understanding-ssr} diff --git a/website/versioned_docs/version-2.0.0-beta.21/api/docusaurus.config.js.md b/website/versioned_docs/version-2.0.0-rc.1/api/docusaurus.config.js.md similarity index 89% rename from website/versioned_docs/version-2.0.0-beta.21/api/docusaurus.config.js.md rename to website/versioned_docs/version-2.0.0-rc.1/api/docusaurus.config.js.md index 9910ddb5220a..6aea4f53b140 100644 --- a/website/versioned_docs/version-2.0.0-beta.21/api/docusaurus.config.js.md +++ b/website/versioned_docs/version-2.0.0-rc.1/api/docusaurus.config.js.md @@ -1,6 +1,5 @@ --- sidebar_position: 0 -id: docusaurus.config.js description: API reference for Docusaurus configuration file. slug: /api/docusaurus-config --- @@ -64,7 +63,7 @@ module.exports = { - Type: `string` -URL for your website. This can also be considered the top-level hostname. For example, `https://facebook.github.io` is the URL of https://facebook.github.io/metro/, and `https://docusaurus.io` is the URL for https://docusaurus.io. This field is related to the [baseUrl](#baseurl) field. +URL for your website. This can also be considered the top-level hostname. For example, `https://facebook.github.io` is the URL of https://facebook.github.io/metro/, and `https://docusaurus.io` is the URL for https://docusaurus.io. This field is related to the [`baseUrl`](#baseUrl) field. ```js title="docusaurus.config.js" module.exports = { @@ -76,7 +75,7 @@ module.exports = { - Type: `string` -Base URL for your site. Can be considered as the path after the host. For example, `/metro/` is the base URL of https://facebook.github.io/metro/. For URLs that have no path, the baseUrl should be set to `/`. This field is related to the [url](#url) field. Always has both leading and trailing slash. +Base URL for your site. Can be considered as the path after the host. For example, `/metro/` is the base URL of https://facebook.github.io/metro/. For URLs that have no path, the baseUrl should be set to `/`. This field is related to the [`url`](#url) field. Always has both leading and trailing slash. ```js title="docusaurus.config.js" module.exports = { @@ -131,18 +130,21 @@ module.exports = { i18n: { defaultLocale: 'en', locales: ['en', 'fa'], + path: 'i18n', localeConfigs: { en: { label: 'English', direction: 'ltr', htmlLang: 'en-US', calendar: 'gregory', + path: 'en', }, fa: { label: 'فارسی', direction: 'rtl', htmlLang: 'fa-IR', calendar: 'persian', + path: 'fa', }, }, }, @@ -151,11 +153,13 @@ module.exports = { - `defaultLocale`: The locale that (1) does not have its name in the base URL (2) gets started with `docusaurus start` without `--locale` option (3) will be used for the `` tag - `locales`: List of locales deployed on your site. Must contain `defaultLocale`. +- `path`: Root folder which all locale folders are relative to. Can be absolute or relative to the config file. Defaults to `i18n`. - `localeConfigs`: Individual options for each locale. - `label`: The label displayed for this locale in the locales dropdown. - - `direction`: `ltr` (default) or `rtl` (for [right-to-left languages](https://developer.mozilla.org/en-US/docs/Glossary/rtl) like Farsi, Arabic, Hebrew, etc.). Used to select the locale's CSS and html meta attribute. + - `direction`: `ltr` (default) or `rtl` (for [right-to-left languages](https://developer.mozilla.org/en-US/docs/Glossary/rtl) like Farsi, Arabic, Hebrew, etc.). Used to select the locale's CSS and HTML meta attribute. - `htmlLang`: BCP 47 language tag to use in `` and in `` - `calendar`: the [calendar](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/Locale/calendar) used to calculate the date era. Note that it doesn't control the actual string displayed: `MM/DD/YYYY` and `DD/MM/YYYY` are both `gregory`. To choose the format (`DD/MM/YYYY` or `MM/DD/YYYY`), set your locale name to `en-GB` or `en-US` (`en` means `en-US`). + - `path`: Root folder that all plugin localization folders of this locale are relative to. Will be resolved against `i18n.path`. Defaults to the locale's name. Note: this has no effect on the locale's `baseUrl`β€”customization of base URL is a work-in-progress. ### `noIndex` {#noIndex} @@ -173,7 +177,7 @@ module.exports = { ### `onBrokenLinks` {#onBrokenLinks} -- Type: `'ignore' | 'log' | 'warn' | 'error' | 'throw'` +- Type: `'ignore' | 'log' | 'warn' | 'throw'` The behavior of Docusaurus when it detects any broken link. @@ -187,15 +191,15 @@ The broken links detection is only available for a production build (`docusaurus ### `onBrokenMarkdownLinks` {#onBrokenMarkdownLinks} -- Type: `'ignore' | 'log' | 'warn' | 'error' | 'throw'` +- Type: `'ignore' | 'log' | 'warn' | 'throw'` -The behavior of Docusaurus when it detects any broken markdown link. +The behavior of Docusaurus when it detects any broken Markdown link. -By default, it prints a warning, to let you know about your broken markdown link, but you can change this security if needed. +By default, it prints a warning, to let you know about your broken Markdown link, but you can change this security if needed. ### `onDuplicateRoutes` {#onDuplicateRoutes} -- Type: `'ignore' | 'log' | 'warn' | 'error' | 'throw'` +- Type: `'ignore' | 'log' | 'warn' | 'throw'` The behavior of Docusaurus when it detects any [duplicate routes](/guides/creating-pages.md#duplicate-routes). @@ -330,8 +334,9 @@ module.exports = { // ... other links ], logo: { - alt: 'Facebook Open Source Logo', - src: 'https://docusaurus.io/img/oss_logo.png', + alt: 'Meta Open Source Logo', + src: 'img/meta_oss_logo.png', + href: 'https://opensource.fb.com', width: 160, height: 51, }, @@ -426,7 +431,7 @@ module.exports = { ### `scripts` {#scripts} -An array of scripts to load. The values can be either strings or plain objects of attribute-value maps. The `