From f18b3769b777790fd9b4b70b9c57ebb512af0f99 Mon Sep 17 00:00:00 2001 From: Alexey Pyltsyn Date: Tue, 2 Nov 2021 19:59:16 +0300 Subject: [PATCH 1/2] chore: prepare v2.0.0-beta.9 release --- CHANGELOG.md | 104 +++++++++ .../markdown-features-plugins.mdx | 78 ------- .../_partials/swizzleWarning.mdx | 0 .../api/docusaurus.config.js.md | 28 ++- .../api/plugins/overview.md | 2 +- .../api/plugins/plugin-client-redirects.md | 0 .../api/plugins/plugin-content-blog.md | 18 ++ .../api/plugins/plugin-content-docs.md | 2 + .../api/plugins/plugin-content-pages.md | 0 .../api/plugins/plugin-debug.md | 0 .../api/plugins/plugin-google-analytics.md | 0 .../api/plugins/plugin-google-gtag.md | 0 .../api/plugins/plugin-ideal-image.md | 0 .../api/plugins/plugin-pwa.md | 0 .../api/plugins/plugin-sitemap.md | 0 .../api/themes/overview.md | 0 .../api/themes/theme-classic.md | 0 .../api/themes/theme-configuration.md | 6 + .../api/themes/theme-live-codeblock.md | 0 .../api/themes/theme-search-algolia.md | 0 .../docusaurus-asset-example-banner.png | Bin .../assets/docusaurus-asset-example.docx | Bin .../assets/docusaurus-asset-example.xyz | Bin .../blog.mdx | 118 +++++++++++ .../browser-support.md | 0 .../cli.md | 8 +- .../configuration.md | 2 +- .../deployment.mdx | 10 +- .../docusaurus-core.md | 0 .../guides/creating-pages.md | 0 .../guides/docs/docs-create-doc.mdx | 2 +- .../guides/docs/docs-introduction.md | 0 .../guides/docs/docs-markdown-features.mdx | 0 .../guides/docs/docs-multi-instance.mdx | 0 .../guides/docs/sidebar.md | 1 + .../guides/docs/versioning.md | 2 +- .../_markdown-partial-example.mdx | 0 .../markdown-features-admonitions.mdx | 0 .../markdown-features-assets.mdx | 0 .../markdown-features-code-blocks.mdx | 0 .../markdown-features-head-metadatas.mdx | 0 .../markdown-features-headings.mdx | 0 .../markdown-features-inline-toc.mdx | 0 .../markdown-features-intro.mdx | 0 .../markdown-features-math-equations.mdx | 0 .../markdown-features-plugins.mdx | 198 ++++++++++++++++++ .../markdown-features-react.mdx | 0 .../markdown-features-tabs.mdx | 0 .../i18n/i18n-crowdin.mdx | 1 + .../i18n/i18n-git.md | 0 .../i18n/i18n-introduction.md | 0 .../i18n/i18n-tutorial.md | 0 .../installation.md | 2 +- .../introduction.md | 0 .../lifecycle-apis.md | 9 +- .../migration/migration-automated.md | 0 .../migration/migration-manual.md | 1 + .../migration/migration-overview.md | 0 .../migration/migration-translated-sites.md | 0 .../migration/migration-versioned-sites.md | 0 .../playground.mdx | 0 .../presets.md | 0 .../search.md | 5 +- .../static-assets.md | 0 .../styling-layout.md | 0 .../typescript-support.md | 0 .../using-plugins.md | 2 +- .../using-themes.md | 0 ...son => version-2.0.0-beta.9-sidebars.json} | 126 +++++------ website/versions.json | 4 +- website/versionsArchived.json | 1 + 71 files changed, 565 insertions(+), 165 deletions(-) delete mode 100644 website/versioned_docs/version-2.0.0-beta.7/guides/markdown-features/markdown-features-plugins.mdx rename website/versioned_docs/{version-2.0.0-beta.7 => version-2.0.0-beta.9}/_partials/swizzleWarning.mdx (100%) rename website/versioned_docs/{version-2.0.0-beta.7 => version-2.0.0-beta.9}/api/docusaurus.config.js.md (96%) rename website/versioned_docs/{version-2.0.0-beta.7 => version-2.0.0-beta.9}/api/plugins/overview.md (89%) rename website/versioned_docs/{version-2.0.0-beta.7 => version-2.0.0-beta.9}/api/plugins/plugin-client-redirects.md (100%) rename website/versioned_docs/{version-2.0.0-beta.7 => version-2.0.0-beta.9}/api/plugins/plugin-content-blog.md (95%) rename website/versioned_docs/{version-2.0.0-beta.7 => version-2.0.0-beta.9}/api/plugins/plugin-content-docs.md (97%) rename website/versioned_docs/{version-2.0.0-beta.7 => version-2.0.0-beta.9}/api/plugins/plugin-content-pages.md (100%) rename website/versioned_docs/{version-2.0.0-beta.7 => version-2.0.0-beta.9}/api/plugins/plugin-debug.md (100%) rename website/versioned_docs/{version-2.0.0-beta.7 => version-2.0.0-beta.9}/api/plugins/plugin-google-analytics.md (100%) rename website/versioned_docs/{version-2.0.0-beta.7 => version-2.0.0-beta.9}/api/plugins/plugin-google-gtag.md (100%) rename website/versioned_docs/{version-2.0.0-beta.7 => version-2.0.0-beta.9}/api/plugins/plugin-ideal-image.md (100%) rename website/versioned_docs/{version-2.0.0-beta.7 => version-2.0.0-beta.9}/api/plugins/plugin-pwa.md (100%) rename website/versioned_docs/{version-2.0.0-beta.7 => version-2.0.0-beta.9}/api/plugins/plugin-sitemap.md (100%) rename website/versioned_docs/{version-2.0.0-beta.7 => version-2.0.0-beta.9}/api/themes/overview.md (100%) rename website/versioned_docs/{version-2.0.0-beta.7 => version-2.0.0-beta.9}/api/themes/theme-classic.md (100%) rename website/versioned_docs/{version-2.0.0-beta.7 => version-2.0.0-beta.9}/api/themes/theme-configuration.md (98%) rename website/versioned_docs/{version-2.0.0-beta.7 => version-2.0.0-beta.9}/api/themes/theme-live-codeblock.md (100%) rename website/versioned_docs/{version-2.0.0-beta.7 => version-2.0.0-beta.9}/api/themes/theme-search-algolia.md (100%) rename website/versioned_docs/{version-2.0.0-beta.7 => version-2.0.0-beta.9}/assets/docusaurus-asset-example-banner.png (100%) rename website/versioned_docs/{version-2.0.0-beta.7 => version-2.0.0-beta.9}/assets/docusaurus-asset-example.docx (100%) rename website/versioned_docs/{version-2.0.0-beta.7 => version-2.0.0-beta.9}/assets/docusaurus-asset-example.xyz (100%) rename website/versioned_docs/{version-2.0.0-beta.7 => version-2.0.0-beta.9}/blog.mdx (79%) rename website/versioned_docs/{version-2.0.0-beta.7 => version-2.0.0-beta.9}/browser-support.md (100%) rename website/versioned_docs/{version-2.0.0-beta.7 => version-2.0.0-beta.9}/cli.md (95%) rename website/versioned_docs/{version-2.0.0-beta.7 => version-2.0.0-beta.9}/configuration.md (96%) rename website/versioned_docs/{version-2.0.0-beta.7 => version-2.0.0-beta.9}/deployment.mdx (97%) rename website/versioned_docs/{version-2.0.0-beta.7 => version-2.0.0-beta.9}/docusaurus-core.md (100%) rename website/versioned_docs/{version-2.0.0-beta.7 => version-2.0.0-beta.9}/guides/creating-pages.md (100%) rename website/versioned_docs/{version-2.0.0-beta.7 => version-2.0.0-beta.9}/guides/docs/docs-create-doc.mdx (97%) rename website/versioned_docs/{version-2.0.0-beta.7 => version-2.0.0-beta.9}/guides/docs/docs-introduction.md (100%) rename website/versioned_docs/{version-2.0.0-beta.7 => version-2.0.0-beta.9}/guides/docs/docs-markdown-features.mdx (100%) rename website/versioned_docs/{version-2.0.0-beta.7 => version-2.0.0-beta.9}/guides/docs/docs-multi-instance.mdx (100%) rename website/versioned_docs/{version-2.0.0-beta.7 => version-2.0.0-beta.9}/guides/docs/sidebar.md (99%) rename website/versioned_docs/{version-2.0.0-beta.7 => version-2.0.0-beta.9}/guides/docs/versioning.md (99%) rename website/versioned_docs/{version-2.0.0-beta.7 => version-2.0.0-beta.9}/guides/markdown-features/_markdown-partial-example.mdx (100%) rename website/versioned_docs/{version-2.0.0-beta.7 => version-2.0.0-beta.9}/guides/markdown-features/markdown-features-admonitions.mdx (100%) rename website/versioned_docs/{version-2.0.0-beta.7 => version-2.0.0-beta.9}/guides/markdown-features/markdown-features-assets.mdx (100%) rename website/versioned_docs/{version-2.0.0-beta.7 => version-2.0.0-beta.9}/guides/markdown-features/markdown-features-code-blocks.mdx (100%) rename website/versioned_docs/{version-2.0.0-beta.7 => version-2.0.0-beta.9}/guides/markdown-features/markdown-features-head-metadatas.mdx (100%) rename website/versioned_docs/{version-2.0.0-beta.7 => version-2.0.0-beta.9}/guides/markdown-features/markdown-features-headings.mdx (100%) rename website/versioned_docs/{version-2.0.0-beta.7 => version-2.0.0-beta.9}/guides/markdown-features/markdown-features-inline-toc.mdx (100%) rename website/versioned_docs/{version-2.0.0-beta.7 => version-2.0.0-beta.9}/guides/markdown-features/markdown-features-intro.mdx (100%) rename website/versioned_docs/{version-2.0.0-beta.7 => version-2.0.0-beta.9}/guides/markdown-features/markdown-features-math-equations.mdx (100%) create mode 100644 website/versioned_docs/version-2.0.0-beta.9/guides/markdown-features/markdown-features-plugins.mdx rename website/versioned_docs/{version-2.0.0-beta.7 => version-2.0.0-beta.9}/guides/markdown-features/markdown-features-react.mdx (100%) rename website/versioned_docs/{version-2.0.0-beta.7 => version-2.0.0-beta.9}/guides/markdown-features/markdown-features-tabs.mdx (100%) rename website/versioned_docs/{version-2.0.0-beta.7 => version-2.0.0-beta.9}/i18n/i18n-crowdin.mdx (99%) rename website/versioned_docs/{version-2.0.0-beta.7 => version-2.0.0-beta.9}/i18n/i18n-git.md (100%) rename website/versioned_docs/{version-2.0.0-beta.7 => version-2.0.0-beta.9}/i18n/i18n-introduction.md (100%) rename website/versioned_docs/{version-2.0.0-beta.7 => version-2.0.0-beta.9}/i18n/i18n-tutorial.md (100%) rename website/versioned_docs/{version-2.0.0-beta.7 => version-2.0.0-beta.9}/installation.md (96%) rename website/versioned_docs/{version-2.0.0-beta.7 => version-2.0.0-beta.9}/introduction.md (100%) rename website/versioned_docs/{version-2.0.0-beta.7 => version-2.0.0-beta.9}/lifecycle-apis.md (99%) rename website/versioned_docs/{version-2.0.0-beta.7 => version-2.0.0-beta.9}/migration/migration-automated.md (100%) rename website/versioned_docs/{version-2.0.0-beta.7 => version-2.0.0-beta.9}/migration/migration-manual.md (99%) rename website/versioned_docs/{version-2.0.0-beta.7 => version-2.0.0-beta.9}/migration/migration-overview.md (100%) rename website/versioned_docs/{version-2.0.0-beta.7 => version-2.0.0-beta.9}/migration/migration-translated-sites.md (100%) rename website/versioned_docs/{version-2.0.0-beta.7 => version-2.0.0-beta.9}/migration/migration-versioned-sites.md (100%) rename website/versioned_docs/{version-2.0.0-beta.7 => version-2.0.0-beta.9}/playground.mdx (100%) rename website/versioned_docs/{version-2.0.0-beta.7 => version-2.0.0-beta.9}/presets.md (100%) rename website/versioned_docs/{version-2.0.0-beta.7 => version-2.0.0-beta.9}/search.md (96%) rename website/versioned_docs/{version-2.0.0-beta.7 => version-2.0.0-beta.9}/static-assets.md (100%) rename website/versioned_docs/{version-2.0.0-beta.7 => version-2.0.0-beta.9}/styling-layout.md (100%) rename website/versioned_docs/{version-2.0.0-beta.7 => version-2.0.0-beta.9}/typescript-support.md (100%) rename website/versioned_docs/{version-2.0.0-beta.7 => version-2.0.0-beta.9}/using-plugins.md (99%) rename website/versioned_docs/{version-2.0.0-beta.7 => version-2.0.0-beta.9}/using-themes.md (100%) rename website/versioned_sidebars/{version-2.0.0-beta.7-sidebars.json => version-2.0.0-beta.9-sidebars.json} (56%) diff --git a/CHANGELOG.md b/CHANGELOG.md index 34c46bc8d7a7..736929768bc9 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,109 @@ # Docusaurus 2 Changelog +## 2.0.0-beta.9 (2021-11-02) + +#### :rocket: New Feature + +- `docusaurus-theme-classic`, `docusaurus-theme-common` + - [#5770](https://github.com/facebook/docusaurus/pull/5770) feat(theme-classic): allow specifying width/height in logo ([@cerkiewny](https://github.com/cerkiewny)) +- `docusaurus-types`, `docusaurus` + - [#5841](https://github.com/facebook/docusaurus/pull/5841) feat: allow user to specify deploymentBranch property in docusaurus.config.js ([@wpyoga](https://github.com/wpyoga)) +- `docusaurus-theme-classic`, `docusaurus-theme-common`, `docusaurus-theme-search-algolia` + - [#5795](https://github.com/facebook/docusaurus/pull/5795) feat(search-algolia): algolia externalUrl regex to navigate with window.href ([@semoal](https://github.com/semoal)) +- `docusaurus-mdx-loader`, `docusaurus-plugin-content-blog`, `docusaurus-plugin-content-docs`, `docusaurus-plugin-content-pages`, `docusaurus-plugin-ideal-image`, `docusaurus-plugin-pwa`, `docusaurus-types`, `docusaurus` + - [#5814](https://github.com/facebook/docusaurus/pull/5814) feat: Support Node 17 ([@slorber](https://github.com/slorber)) + - [#5420](https://github.com/facebook/docusaurus/pull/5420) feat(core): upgrade to webpack-dev-server@4 ([@AviVahl](https://github.com/AviVahl)) +- `docusaurus-theme-classic` + - [#5791](https://github.com/facebook/docusaurus/pull/5791) feat(theme-classic): add Serbian Cyrillic translation ([@utajum](https://github.com/utajum)) + +#### :boom: Breaking Change + +- `create-docusaurus`, `docusaurus-mdx-loader`, `docusaurus-migrate`, `docusaurus-plugin-client-redirects`, `docusaurus-plugin-content-blog`, `docusaurus-plugin-content-docs`, `docusaurus-plugin-content-pages`, `docusaurus-plugin-debug`, `docusaurus-plugin-google-analytics`, `docusaurus-plugin-google-gtag`, `docusaurus-plugin-ideal-image`, `docusaurus-plugin-sitemap`, `docusaurus-preset-classic`, `docusaurus-remark-plugin-npm2yarn`, `docusaurus-theme-classic`, `docusaurus-theme-common`, `docusaurus-theme-live-codeblock`, `docusaurus-theme-search-algolia`, `docusaurus-utils-common`, `docusaurus-utils-validation`, `docusaurus-utils`, `docusaurus`, `lqip-loader` + - [#5812](https://github.com/facebook/docusaurus/pull/5812) chore: require Node 14 ([@slorber](https://github.com/slorber)) + +#### :bug: Bug Fix + +- `docusaurus-plugin-content-blog` + - [#5835](https://github.com/facebook/docusaurus/pull/5835) fix(content-blog): Fix blog feeds not generated ([@slorber](https://github.com/slorber)) +- `docusaurus` + - [#5828](https://github.com/facebook/docusaurus/pull/5828) fix: include all branch tips for shallow clone in deploy command ([@sivapalan](https://github.com/sivapalan)) + - [#5824](https://github.com/facebook/docusaurus/pull/5824) fix: baseUrl passed to sortConfig ([@semoal](https://github.com/semoal)) + - [#5813](https://github.com/facebook/docusaurus/pull/5813) fix: handle SIGTERM in build command ([@slorber](https://github.com/slorber)) +- `docusaurus-module-type-aliases`, `docusaurus` + - [#5819](https://github.com/facebook/docusaurus/pull/5819) fix: use @docusaurus/react-loadable as package alias + include types ([@slorber](https://github.com/slorber)) + +#### :nail_care: Polish + +- `docusaurus-preset-classic` + - [#5831](https://github.com/facebook/docusaurus/pull/5831) feat(preset-classic): guard against unknown keys in options ([@Josh-Cena](https://github.com/Josh-Cena)) +- `docusaurus` + - [#5815](https://github.com/facebook/docusaurus/pull/5815) refactor: some improvements for webpack-dev-server ([@lex111](https://github.com/lex111)) +- `docusaurus-theme-classic`, `docusaurus-theme-common`, `docusaurus-utils`, `docusaurus` + - [#5788](https://github.com/facebook/docusaurus/pull/5788) refactor: fix a few type inconsistencies ([@Josh-Cena](https://github.com/Josh-Cena)) +- `docusaurus-theme-classic` + - [#5781](https://github.com/facebook/docusaurus/pull/5781) refactor: Vietnamese translations ([@datlechin](https://github.com/datlechin)) + +#### :memo: Documentation + +- Other + - [#5853](https://github.com/facebook/docusaurus/pull/5853) docs: Fix a typo in CONTRIBUTING.md ([@fishmandev](https://github.com/fishmandev)) + - [#5852](https://github.com/facebook/docusaurus/pull/5852) docs: Fix a typo in versioning.md ([@fishmandev](https://github.com/fishmandev)) + - [#5847](https://github.com/facebook/docusaurus/pull/5847) docs: add InfraQL product docs website to showcase ([@jeffreyaven](https://github.com/jeffreyaven)) + - [#5843](https://github.com/facebook/docusaurus/pull/5843) docs: fix i18n routes to feature requests ([@Josh-Cena](https://github.com/Josh-Cena)) + - [#5766](https://github.com/facebook/docusaurus/pull/5766) docs: elaborate on the usage of MDX plugins ([@cerkiewny](https://github.com/cerkiewny)) + - [#5826](https://github.com/facebook/docusaurus/pull/5826) docs: fix lint issue ([@slorber](https://github.com/slorber)) + - [#5801](https://github.com/facebook/docusaurus/pull/5801) docs: Update Drone Deployment docs ([@gabrielfalcao](https://github.com/gabrielfalcao)) + - [#5821](https://github.com/facebook/docusaurus/pull/5821) docs: include navbar item type in the API table ([@Josh-Cena](https://github.com/Josh-Cena)) + - [#5820](https://github.com/facebook/docusaurus/pull/5820) docs: add @Josh-Cena to the team ([@Josh-Cena](https://github.com/Josh-Cena)) + - [#5818](https://github.com/facebook/docusaurus/pull/5818) doc: fix typo in "create a doc" ([@dominikmeyersap](https://github.com/dominikmeyersap)) + - [#5797](https://github.com/facebook/docusaurus/pull/5797) docs: use "npx create-docusaurus" for init ([@slorber](https://github.com/slorber)) + - [#5771](https://github.com/facebook/docusaurus/pull/5771) docs: Minor update to grammar in plugins overview page ([@robbieaverill](https://github.com/robbieaverill)) + - [#5774](https://github.com/facebook/docusaurus/pull/5774) docs: update ssrTemplate ([@juzhiyuan](https://github.com/juzhiyuan)) + - [#5784](https://github.com/facebook/docusaurus/pull/5784) docs: fix link for apply to DocSearch program ([@lex111](https://github.com/lex111)) +- `create-docusaurus` + - [#5792](https://github.com/facebook/docusaurus/pull/5792) docs: fix typo ([@wingclover](https://github.com/wingclover)) + +#### :house: Internal + +- Other + - [#5842](https://github.com/facebook/docusaurus/pull/5842) misc: add "name" field for root package.json ([@wpyoga](https://github.com/wpyoga)) + - [#5836](https://github.com/facebook/docusaurus/pull/5836) chore: switch to GitHub issue forms ([@lex111](https://github.com/lex111)) + - [#5834](https://github.com/facebook/docusaurus/pull/5834) chore(issue templ): add "self service" section in templates ([@Josh-Cena](https://github.com/Josh-Cena)) + - [#5833](https://github.com/facebook/docusaurus/pull/5833) chore(workflow): remove v2 prefix from titles ([@Josh-Cena](https://github.com/Josh-Cena)) + - [#5697](https://github.com/facebook/docusaurus/pull/5697) chore(workflow): add cache to workflows using actions/setup-node ([@oscard0m](https://github.com/oscard0m)) + - [#5825](https://github.com/facebook/docusaurus/pull/5825) chore: fix Crowdin again ([@slorber](https://github.com/slorber)) + - [#5823](https://github.com/facebook/docusaurus/pull/5823) chore: replace doc sample .pdf file by .xlsx to solve Crowdin issue ([@slorber](https://github.com/slorber)) + - [#5763](https://github.com/facebook/docusaurus/pull/5763) chore: update examples for beta.8 ([@slorber](https://github.com/slorber)) +- `create-docusaurus`, `docusaurus-mdx-loader`, `docusaurus-migrate`, `docusaurus-plugin-client-redirects`, `docusaurus-plugin-content-blog`, `docusaurus-plugin-content-docs`, `docusaurus-plugin-content-pages`, `docusaurus-plugin-debug`, `docusaurus-plugin-google-analytics`, `docusaurus-plugin-google-gtag`, `docusaurus-plugin-ideal-image`, `docusaurus-plugin-sitemap`, `docusaurus-preset-classic`, `docusaurus-remark-plugin-npm2yarn`, `docusaurus-theme-classic`, `docusaurus-theme-common`, `docusaurus-theme-live-codeblock`, `docusaurus-theme-search-algolia`, `docusaurus-utils-common`, `docusaurus-utils-validation`, `docusaurus-utils`, `docusaurus`, `lqip-loader` + - [#5812](https://github.com/facebook/docusaurus/pull/5812) chore: require Node 14 ([@slorber](https://github.com/slorber)) +- `docusaurus-plugin-client-redirects`, `docusaurus-plugin-content-blog`, `docusaurus-plugin-content-docs`, `docusaurus-plugin-content-pages`, `docusaurus-theme-classic`, `docusaurus` + - [#5807](https://github.com/facebook/docusaurus/pull/5807) refactor: remove a few Lodash usages & ESLint enforcement ([@Josh-Cena](https://github.com/Josh-Cena)) +- `docusaurus-module-type-aliases`, `docusaurus-plugin-client-redirects`, `docusaurus-theme-classic`, `docusaurus-theme-common`, `docusaurus-utils`, `docusaurus` + - [#5808](https://github.com/facebook/docusaurus/pull/5808) refactor: clear a few ESLint warnings ([@Josh-Cena](https://github.com/Josh-Cena)) +- `docusaurus-mdx-loader`, `docusaurus-plugin-content-blog`, `docusaurus-plugin-content-docs`, `docusaurus-plugin-content-pages`, `lqip-loader` + - [#5779](https://github.com/facebook/docusaurus/pull/5779) refactor: migrate lqip-loader to TS, fix typing for Webpack Loaders ([@Josh-Cena](https://github.com/Josh-Cena)) + +#### Committers: 18 + +- Alexey Pyltsyn ([@lex111](https://github.com/lex111)) +- Avi Vahl ([@AviVahl](https://github.com/AviVahl)) +- Devtato ([@cerkiewny](https://github.com/cerkiewny)) +- Dmitriy Fishman ([@fishmandev](https://github.com/fishmandev)) +- Dominik Meyer ([@dominikmeyersap](https://github.com/dominikmeyersap)) +- Gabriel Falcão ([@gabrielfalcao](https://github.com/gabrielfalcao)) +- Jeffrey Aven ([@jeffreyaven](https://github.com/jeffreyaven)) +- Joshua Chen ([@Josh-Cena](https://github.com/Josh-Cena)) +- Ngô Quốc Đạt ([@datlechin](https://github.com/datlechin)) +- Oscar Dominguez ([@oscard0m](https://github.com/oscard0m)) +- Robbie Averill ([@robbieaverill](https://github.com/robbieaverill)) +- Sergio Moreno ([@semoal](https://github.com/semoal)) +- Sébastien Lorber ([@slorber](https://github.com/slorber)) +- Varun Sivapalan ([@sivapalan](https://github.com/sivapalan)) +- Vladimir Tasic ([@utajum](https://github.com/utajum)) +- William Poetra Yoga ([@wpyoga](https://github.com/wpyoga)) +- Ying Wang ([@wingclover](https://github.com/wingclover)) +- 琚致远 ([@juzhiyuan](https://github.com/juzhiyuan)) + ## 2.0.0-beta.8 (2021-10-21) #### :rocket: New Feature diff --git a/website/versioned_docs/version-2.0.0-beta.7/guides/markdown-features/markdown-features-plugins.mdx b/website/versioned_docs/version-2.0.0-beta.7/guides/markdown-features/markdown-features-plugins.mdx deleted file mode 100644 index 90bbdee6d3e6..000000000000 --- a/website/versioned_docs/version-2.0.0-beta.7/guides/markdown-features/markdown-features-plugins.mdx +++ /dev/null @@ -1,78 +0,0 @@ ---- -id: plugins -title: Plugins -description: Using MDX plugins to expand Docusaurus Markdown functionalities -slug: /markdown-features/plugins ---- - -You can expand the MDX functionalities, using plugins. - -Docusaurus content plugins support both [Remark](https://github.com/remarkjs/remark) and [Rehype](https://github.com/rehypejs/rehype) plugins that work with MDX. - -## Configuring plugins {#configuring-plugins} - -An MDX plugin is usually a npm package, so you install them like other npm packages using npm. - -First, install your [Remark](https://github.com/remarkjs/remark/blob/main/doc/plugins.md#list-of-plugins) and [Rehype](https://github.com/rehypejs/rehype/blob/main/doc/plugins.md#list-of-plugins) plugins. - -For example: - -```bash npm2yarn -npm install --save remark-images -npm install --save rehype-truncate -``` - -Next, import the plugins: - -```js -const remarkImages = require('remark-images'); -const rehypeTruncate = require('rehype-truncate'); -``` - -Finally, add them to the `@docusaurus/preset-classic` options in `docusaurus.config.js`: - -```js {10,11} title="docusaurus.config.js" -module.exports = { - // ... - presets: [ - [ - '@docusaurus/preset-classic', - { - docs: { - sidebarPath: require.resolve('./sidebars.js'), - // ... - remarkPlugins: [remarkImages], - rehypePlugins: [rehypeTruncate], - }, - }, - ], - ], -}; -``` - -## Configuring plugin options {#configuring-plugin-options} - -Some plugins can be configured and accept their own options. In that case, use the `[plugin, pluginOptions]` syntax, like so: - -```jsx {10-13} title="docusaurus.config.js" -module.exports = { - // ... - presets: [ - [ - '@docusaurus/preset-classic', - { - docs: { - sidebarPath: require.resolve('./sidebars.js'), - // ... - remarkPlugins: [ - plugin1, - [plugin2, {option1: {...}}], - ], - }, - }, - ], - ], -}; -``` - -See more information in the [MDX documentation](https://mdxjs.com/advanced/plugins). diff --git a/website/versioned_docs/version-2.0.0-beta.7/_partials/swizzleWarning.mdx b/website/versioned_docs/version-2.0.0-beta.9/_partials/swizzleWarning.mdx similarity index 100% rename from website/versioned_docs/version-2.0.0-beta.7/_partials/swizzleWarning.mdx rename to website/versioned_docs/version-2.0.0-beta.9/_partials/swizzleWarning.mdx diff --git a/website/versioned_docs/version-2.0.0-beta.7/api/docusaurus.config.js.md b/website/versioned_docs/version-2.0.0-beta.9/api/docusaurus.config.js.md similarity index 96% rename from website/versioned_docs/version-2.0.0-beta.7/api/docusaurus.config.js.md rename to website/versioned_docs/version-2.0.0-beta.9/api/docusaurus.config.js.md index a153a84910dc..92fe87b4e7f2 100644 --- a/website/versioned_docs/version-2.0.0-beta.7/api/docusaurus.config.js.md +++ b/website/versioned_docs/version-2.0.0-beta.9/api/docusaurus.config.js.md @@ -194,6 +194,18 @@ module.exports = { }; ``` +### `deploymentBranch` {#deploymentbranch} + +- Type: `string` + +The name of the branch to deploy the static files to. Used by the deployment command. + +```js title="docusaurus.config.js" +module.exports = { + deploymentBranch: 'gh-pages', +}; +``` + ### `githubHost` {#githubhost} - Type: `string` @@ -252,6 +264,8 @@ module.exports = { logo: { alt: 'Site Logo', src: 'img/logo.svg', + width: 32, + height: 32, }, items: [ { @@ -280,6 +294,8 @@ module.exports = { logo: { alt: 'Facebook Open Source Logo', src: 'https://docusaurus.io/img/oss_logo.png', + width: 160, + height: 51, }, copyright: `Copyright © ${new Date().getFullYear()} Facebook, Inc.`, // You can also put own HTML here }, @@ -399,8 +415,11 @@ module.exports = { > - + + <% if (it.noIndex) { %> + + <% } %> <%~ it.headTags %> <% it.metaAttributes.forEach((metaAttribute) => { %> <%~ metaAttribute %> @@ -412,20 +431,17 @@ module.exports = { <% }); %> - itemscope="" itemtype="http://schema.org/Organization"> + > <%~ it.preBodyTags %>
<%~ it.appHtml %>
-
- Custom markup -
<% it.scripts.forEach((script) => { %> <% }); %> <%~ it.postBodyTags %> - +`, }; ``` diff --git a/website/versioned_docs/version-2.0.0-beta.7/api/plugins/overview.md b/website/versioned_docs/version-2.0.0-beta.9/api/plugins/overview.md similarity index 89% rename from website/versioned_docs/version-2.0.0-beta.7/api/plugins/overview.md rename to website/versioned_docs/version-2.0.0-beta.9/api/plugins/overview.md index e39469a22542..bbacce004782 100644 --- a/website/versioned_docs/version-2.0.0-beta.7/api/plugins/overview.md +++ b/website/versioned_docs/version-2.0.0-beta.9/api/plugins/overview.md @@ -9,7 +9,7 @@ We provide official Docusaurus plugins. ## Content plugins {#content-plugins} -These plugins are responsible to load your site's content, and create pages for your theme to render. +These plugins are responsible for loading your site's content, and creating pages for your theme to render. - [@docusaurus/plugin-content-docs](./plugin-content-docs.md) - [@docusaurus/plugin-content-blog](./plugin-content-blog.md) diff --git a/website/versioned_docs/version-2.0.0-beta.7/api/plugins/plugin-client-redirects.md b/website/versioned_docs/version-2.0.0-beta.9/api/plugins/plugin-client-redirects.md similarity index 100% rename from website/versioned_docs/version-2.0.0-beta.7/api/plugins/plugin-client-redirects.md rename to website/versioned_docs/version-2.0.0-beta.9/api/plugins/plugin-client-redirects.md diff --git a/website/versioned_docs/version-2.0.0-beta.7/api/plugins/plugin-content-blog.md b/website/versioned_docs/version-2.0.0-beta.9/api/plugins/plugin-content-blog.md similarity index 95% rename from website/versioned_docs/version-2.0.0-beta.7/api/plugins/plugin-content-blog.md rename to website/versioned_docs/version-2.0.0-beta.9/api/plugins/plugin-content-blog.md index af7f8e0c9fa3..f769ab10b3f4 100644 --- a/website/versioned_docs/version-2.0.0-beta.7/api/plugins/plugin-content-blog.md +++ b/website/versioned_docs/version-2.0.0-beta.9/api/plugins/plugin-content-blog.md @@ -51,6 +51,7 @@ Accepted fields: | `beforeDefaultRehypePlugins` | `any[]` | `[]` | Custom Rehype plugins passed to MDX before the default Docusaurus Rehype plugins. | | `truncateMarker` | `string` | `//` | Truncate marker, can be a regex or string. | | `showReadingTime` | `boolean` | `true` | Show estimated reading time for the blog post. | +| `readingTime` | `ReadingTimeFunctionOption` | The default reading time | A callback to customize the reading time number displayed. | | `authorsMapPath` | `string` | `'authors.yml'` | Path to the authors map file, relative to the blog content directory specified with `path`. Can also be a `json` file. | | `feedOptions` | _See below_ | `{type: ['rss', 'atom']}` | Blog feed. If undefined, no rss feed will be generated. | | `feedOptions.type` | 'rss' \| 'atom' \| 'all' (or array of multiple options) | **Required** | Type of feed to be generated. | @@ -68,6 +69,23 @@ type EditUrlFunction = (params: { permalink: string; locale: string; }) => string | undefined; + +type ReadingTimeOptions = { + wordsPerMinute: number; + wordBound: (char: string) => boolean; +}; + +type ReadingTimeFunction = (params: { + content: string; + frontMatter?: BlogPostFrontMatter & Record; + options?: ReadingTimeOptions; +}) => number; + +type ReadingTimeFunctionOption = (params: { + content: string; + frontMatter: BlogPostFrontMatter & Record; + defaultReadingTime: ReadingTimeFunction; +}) => number | undefined; ``` ## Example configuration {#ex-config} diff --git a/website/versioned_docs/version-2.0.0-beta.7/api/plugins/plugin-content-docs.md b/website/versioned_docs/version-2.0.0-beta.9/api/plugins/plugin-content-docs.md similarity index 97% rename from website/versioned_docs/version-2.0.0-beta.7/api/plugins/plugin-content-docs.md rename to website/versioned_docs/version-2.0.0-beta.9/api/plugins/plugin-content-docs.md index 942cd7ef2ee2..ab324d4a096f 100644 --- a/website/versioned_docs/version-2.0.0-beta.7/api/plugins/plugin-content-docs.md +++ b/website/versioned_docs/version-2.0.0-beta.9/api/plugins/plugin-content-docs.md @@ -252,6 +252,8 @@ Accepted fields: | `hide_table_of_contents` | `boolean` | `false` | Whether to hide the table of contents to the right. | | `toc_min_heading_level` | `number` | `2` | The minimum heading level shown in the table of contents. Must be between 2 and 6 and lower or equal to the max value. | | `toc_max_heading_level` | `number` | `3` | The max heading level shown in the table of contents. Must be between 2 and 6. | +| `pagination_next` | string \| null | Next doc in the sidebar | The ID of the documentation you want the "Next" pagination to link to. Use `null` to disable showing "Next" for this page. | +| `pagination_prev` | string \| null | Previous doc in the sidebar | The ID of the documentation you want the "Previous" pagination to link to. Use `null` to disable showing "Previous" for this page. | | `parse_number_prefixes` | `boolean` | `numberPrefixParser` plugin option | Whether number prefix parsing is disabled on this doc. See also [Using number prefixes](/docs/sidebar#using-number-prefixes). | | `custom_edit_url` | `string` | Computed using the `editUrl` plugin option | The URL for editing this document. | | `keywords` | `string[]` | `undefined` | Keywords meta tag for the document page, for search engines. | diff --git a/website/versioned_docs/version-2.0.0-beta.7/api/plugins/plugin-content-pages.md b/website/versioned_docs/version-2.0.0-beta.9/api/plugins/plugin-content-pages.md similarity index 100% rename from website/versioned_docs/version-2.0.0-beta.7/api/plugins/plugin-content-pages.md rename to website/versioned_docs/version-2.0.0-beta.9/api/plugins/plugin-content-pages.md diff --git a/website/versioned_docs/version-2.0.0-beta.7/api/plugins/plugin-debug.md b/website/versioned_docs/version-2.0.0-beta.9/api/plugins/plugin-debug.md similarity index 100% rename from website/versioned_docs/version-2.0.0-beta.7/api/plugins/plugin-debug.md rename to website/versioned_docs/version-2.0.0-beta.9/api/plugins/plugin-debug.md diff --git a/website/versioned_docs/version-2.0.0-beta.7/api/plugins/plugin-google-analytics.md b/website/versioned_docs/version-2.0.0-beta.9/api/plugins/plugin-google-analytics.md similarity index 100% rename from website/versioned_docs/version-2.0.0-beta.7/api/plugins/plugin-google-analytics.md rename to website/versioned_docs/version-2.0.0-beta.9/api/plugins/plugin-google-analytics.md diff --git a/website/versioned_docs/version-2.0.0-beta.7/api/plugins/plugin-google-gtag.md b/website/versioned_docs/version-2.0.0-beta.9/api/plugins/plugin-google-gtag.md similarity index 100% rename from website/versioned_docs/version-2.0.0-beta.7/api/plugins/plugin-google-gtag.md rename to website/versioned_docs/version-2.0.0-beta.9/api/plugins/plugin-google-gtag.md diff --git a/website/versioned_docs/version-2.0.0-beta.7/api/plugins/plugin-ideal-image.md b/website/versioned_docs/version-2.0.0-beta.9/api/plugins/plugin-ideal-image.md similarity index 100% rename from website/versioned_docs/version-2.0.0-beta.7/api/plugins/plugin-ideal-image.md rename to website/versioned_docs/version-2.0.0-beta.9/api/plugins/plugin-ideal-image.md diff --git a/website/versioned_docs/version-2.0.0-beta.7/api/plugins/plugin-pwa.md b/website/versioned_docs/version-2.0.0-beta.9/api/plugins/plugin-pwa.md similarity index 100% rename from website/versioned_docs/version-2.0.0-beta.7/api/plugins/plugin-pwa.md rename to website/versioned_docs/version-2.0.0-beta.9/api/plugins/plugin-pwa.md diff --git a/website/versioned_docs/version-2.0.0-beta.7/api/plugins/plugin-sitemap.md b/website/versioned_docs/version-2.0.0-beta.9/api/plugins/plugin-sitemap.md similarity index 100% rename from website/versioned_docs/version-2.0.0-beta.7/api/plugins/plugin-sitemap.md rename to website/versioned_docs/version-2.0.0-beta.9/api/plugins/plugin-sitemap.md diff --git a/website/versioned_docs/version-2.0.0-beta.7/api/themes/overview.md b/website/versioned_docs/version-2.0.0-beta.9/api/themes/overview.md similarity index 100% rename from website/versioned_docs/version-2.0.0-beta.7/api/themes/overview.md rename to website/versioned_docs/version-2.0.0-beta.9/api/themes/overview.md diff --git a/website/versioned_docs/version-2.0.0-beta.7/api/themes/theme-classic.md b/website/versioned_docs/version-2.0.0-beta.9/api/themes/theme-classic.md similarity index 100% rename from website/versioned_docs/version-2.0.0-beta.7/api/themes/theme-classic.md rename to website/versioned_docs/version-2.0.0-beta.9/api/themes/theme-classic.md diff --git a/website/versioned_docs/version-2.0.0-beta.7/api/themes/theme-configuration.md b/website/versioned_docs/version-2.0.0-beta.9/api/themes/theme-configuration.md similarity index 98% rename from website/versioned_docs/version-2.0.0-beta.7/api/themes/theme-configuration.md rename to website/versioned_docs/version-2.0.0-beta.9/api/themes/theme-configuration.md index af90e16d4bd1..4b91fad475e7 100644 --- a/website/versioned_docs/version-2.0.0-beta.7/api/themes/theme-configuration.md +++ b/website/versioned_docs/version-2.0.0-beta.9/api/themes/theme-configuration.md @@ -187,6 +187,8 @@ Accepted fields: | `src` | `string` | **Required** | URL to the logo image. Base URL is appended by default. | | `srcDark` | `string` | `logo.src` | An alternative image URL to use in dark mode. | | `href` | `string` | `siteConfig.baseUrl` | Link to navigate to when the logo is clicked. | +| `width` | string \| number | `undefined` | Specifies the `width` attribute. | +| `height` | string \| number | `undefined` | Specifies the `height` attribute. | | `target` | `string` | Calculated based on `href` (external links will open in a new tab, all others in the current one). | The `target` attribute of the link; controls whether the link is opened in a new tab, the current one, or otherwise. | @@ -205,6 +207,8 @@ module.exports = { srcDark: 'img/logo_dark.svg', href: 'https://docusaurus.io/', target: '_self', + width: 32, + height: 32, }, // highlight-end }, @@ -679,6 +683,8 @@ module.exports = { alt: 'Facebook Open Source Logo', src: 'img/oss_logo.png', href: 'https://opensource.facebook.com', + width: 160, + height: 51, }, copyright: `Copyright © ${new Date().getFullYear()} My Project, Inc. Built with Docusaurus.`, }, diff --git a/website/versioned_docs/version-2.0.0-beta.7/api/themes/theme-live-codeblock.md b/website/versioned_docs/version-2.0.0-beta.9/api/themes/theme-live-codeblock.md similarity index 100% rename from website/versioned_docs/version-2.0.0-beta.7/api/themes/theme-live-codeblock.md rename to website/versioned_docs/version-2.0.0-beta.9/api/themes/theme-live-codeblock.md diff --git a/website/versioned_docs/version-2.0.0-beta.7/api/themes/theme-search-algolia.md b/website/versioned_docs/version-2.0.0-beta.9/api/themes/theme-search-algolia.md similarity index 100% rename from website/versioned_docs/version-2.0.0-beta.7/api/themes/theme-search-algolia.md rename to website/versioned_docs/version-2.0.0-beta.9/api/themes/theme-search-algolia.md diff --git a/website/versioned_docs/version-2.0.0-beta.7/assets/docusaurus-asset-example-banner.png b/website/versioned_docs/version-2.0.0-beta.9/assets/docusaurus-asset-example-banner.png similarity index 100% rename from website/versioned_docs/version-2.0.0-beta.7/assets/docusaurus-asset-example-banner.png rename to website/versioned_docs/version-2.0.0-beta.9/assets/docusaurus-asset-example-banner.png diff --git a/website/versioned_docs/version-2.0.0-beta.7/assets/docusaurus-asset-example.docx b/website/versioned_docs/version-2.0.0-beta.9/assets/docusaurus-asset-example.docx similarity index 100% rename from website/versioned_docs/version-2.0.0-beta.7/assets/docusaurus-asset-example.docx rename to website/versioned_docs/version-2.0.0-beta.9/assets/docusaurus-asset-example.docx diff --git a/website/versioned_docs/version-2.0.0-beta.7/assets/docusaurus-asset-example.xyz b/website/versioned_docs/version-2.0.0-beta.9/assets/docusaurus-asset-example.xyz similarity index 100% rename from website/versioned_docs/version-2.0.0-beta.7/assets/docusaurus-asset-example.xyz rename to website/versioned_docs/version-2.0.0-beta.9/assets/docusaurus-asset-example.xyz diff --git a/website/versioned_docs/version-2.0.0-beta.7/blog.mdx b/website/versioned_docs/version-2.0.0-beta.9/blog.mdx similarity index 79% rename from website/versioned_docs/version-2.0.0-beta.7/blog.mdx rename to website/versioned_docs/version-2.0.0-beta.9/blog.mdx index ecb03123843e..171cc12c7607 100644 --- a/website/versioned_docs/version-2.0.0-beta.7/blog.mdx +++ b/website/versioned_docs/version-2.0.0-beta.9/blog.mdx @@ -335,6 +335,124 @@ website/i18n//docusaurus-plugin-content-blog/authors.yml ::: +## Reading time {#reading-time} + +Docusaurus generates a reading time estimation for each blog post based on word count. We provide an option to customize this. + +```js title="docusaurus.config.js" +module.exports = { + presets: [ + [ + '@docusaurus/preset-classic', + { + blog: { + // highlight-start + showReadingTime: true, // When set to false, the "x min read" won't be shown + readingTime: ({content, frontMatter, defaultReadingTime}) => + defaultReadingTime({content, options: {wordsPerMinute: 300}}), + // highlight-end + }, + }, + ], + ], +}; +``` + +The `readingTime` callback receives three parameters: the blog content text as a string, front matter as a record of string keys and their values, and the default reading time function. It returns a number (reading time in minutes) or `undefined` (disable reading time for this page). + +The default reading time is able to accept additional options: `wordsPerMinute` as a number (default: 300), and `wordBound` as a function from string to boolean. If the string passed to `wordBound` should be a word bound (spaces, tabs, and line breaks by default), the function should return `true`. + +:::tip + +Use the callback for all your customization needs: + +````mdx-code-block + + + +**Disable reading time on one page:** + +```js title="docusaurus.config.js" +module.exports = { + presets: [ + [ + '@docusaurus/preset-classic', + { + blog: { + showReadingTime: true, + // highlight-start + readingTime: ({content, frontMatter, defaultReadingTime}) => + frontMatter.hide_reading_time ? undefined : defaultReadingTime({content}), + // highlight-end + }, + }, + ], + ], +}; +``` + +Usage: + +```yml "my-blog-post.md" +--- +hide_reading_time: true +--- + +This page will no longer display the reading time stats! +``` + + + + +**Pass options to the default reading time function:** + +```js title="docusaurus.config.js" +module.exports = { + presets: [ + [ + '@docusaurus/preset-classic', + { + blog: { + // highlight-start + readingTime: ({content, defaultReadingTime}) => + defaultReadingTime({content, options: {wordsPerMinute: 100}}), + // highlight-end + }, + }, + ], + ], +}; +``` + + + + +**Use a custom implementation of reading time:** + +```js title="docusaurus.config.js" +const myReadingTime = require('./myReadingTime'); + +module.exports = { + presets: [ + [ + '@docusaurus/preset-classic', + { + blog: { + // highlight-next-line + readingTime: ({content}) => myReadingTime(content), + }, + }, + ], + ], +}; +``` + + + +```` + +::: + ## Feed {#feed} You can generate RSS/Atom feed by passing feedOptions. By default, RSS and Atom feeds are generated. To disable feed generation, set `feedOptions.type` to `null`. diff --git a/website/versioned_docs/version-2.0.0-beta.7/browser-support.md b/website/versioned_docs/version-2.0.0-beta.9/browser-support.md similarity index 100% rename from website/versioned_docs/version-2.0.0-beta.7/browser-support.md rename to website/versioned_docs/version-2.0.0-beta.9/browser-support.md diff --git a/website/versioned_docs/version-2.0.0-beta.7/cli.md b/website/versioned_docs/version-2.0.0-beta.9/cli.md similarity index 95% rename from website/versioned_docs/version-2.0.0-beta.7/cli.md rename to website/versioned_docs/version-2.0.0-beta.9/cli.md index 026011d03af6..9ea0d48af1c6 100644 --- a/website/versioned_docs/version-2.0.0-beta.7/cli.md +++ b/website/versioned_docs/version-2.0.0-beta.9/cli.md @@ -183,6 +183,12 @@ By default, the files are written in `website/i18n//...`. | `--config` | `undefined` | Path to docusaurus config file, default to `[siteDir]/docusaurus.config.js` | | `--messagePrefix` | `''` | Allows to add a prefix to each translation message, to help you highlight untranslated strings | -### `docusaurus write-heading-ids [siteDir]` {#docusaurus-write-heading-ids-sitedir} +### `docusaurus write-heading-ids [siteDir] [files]` {#docusaurus-write-heading-ids-sitedir} Add [explicit heading ids](./guides/markdown-features/markdown-features-headings.mdx#explicit-ids) to the Markdown documents of your site. + +| Name | Default | Description | +| --- | --- | --- | +| `files` | All MD files used by plugins | The files that you want heading IDs to be written to. | +| `--maintain-case` | `false` | Keep the headings' casing, otherwise make all lowercase. | +| `--overwrite` | `false` | Overwrite existing heading IDs. | diff --git a/website/versioned_docs/version-2.0.0-beta.7/configuration.md b/website/versioned_docs/version-2.0.0-beta.9/configuration.md similarity index 96% rename from website/versioned_docs/version-2.0.0-beta.7/configuration.md rename to website/versioned_docs/version-2.0.0-beta.9/configuration.md index 60af67e7498a..58e21652ced2 100644 --- a/website/versioned_docs/version-2.0.0-beta.7/configuration.md +++ b/website/versioned_docs/version-2.0.0-beta.9/configuration.md @@ -29,7 +29,7 @@ They are used in a number of places such as your site's title and headings, brow ### Deployment configurations {#deployment-configurations} -Deployment configurations such as `projectName` and `organizationName` are used when you deploy your site with the `deploy` command. +Deployment configurations such as `projectName`, `organizationName`, and optionally `deploymentBranch` are used when you deploy your site with the `deploy` command. It is recommended to check the [deployment docs](deployment.mdx) for more information. diff --git a/website/versioned_docs/version-2.0.0-beta.7/deployment.mdx b/website/versioned_docs/version-2.0.0-beta.9/deployment.mdx similarity index 97% rename from website/versioned_docs/version-2.0.0-beta.7/deployment.mdx rename to website/versioned_docs/version-2.0.0-beta.9/deployment.mdx index d5624990918e..ff492bd640bb 100644 --- a/website/versioned_docs/version-2.0.0-beta.7/deployment.mdx +++ b/website/versioned_docs/version-2.0.0-beta.9/deployment.mdx @@ -75,6 +75,7 @@ First, modify your `docusaurus.config.js` and add the required params: | --- | --- | | `organizationName` | The GitHub user or organization that owns the repository. If you are the owner, it is your GitHub username. In the case of Docusaurus, it is "_facebook_" which is the GitHub organization that owns Docusaurus. | | `projectName` | The name of the GitHub repository. For example, the repository name for Docusaurus is "docusaurus", so the project name is "docusaurus". | +| `deploymentBranch` | The name of the branch to deploy the static files to. This defaults to "gh-pages" for non-organization GitHub Pages repos. If the repo name ends in ".github.io", you have to either specify this property or set the environment variable `DEPLOYMENT_BRANCH`. | | `url` | URL for your GitHub Page's user/organization page. This is commonly https://_username_.github.io. | | `baseUrl` | Base URL for your project. For projects hosted on GitHub pages, it follows the format "/_projectName_/". For https://github.com/facebook/docusaurus, `baseUrl` is `/docusaurus/`. | @@ -127,7 +128,7 @@ Optional parameters, also set as environment variables: | Name | Description | | --- | --- | | `USE_SSH` | Set to `true` to use SSH instead of the default HTTPS for the connection to the GitHub repo. | -| `DEPLOYMENT_BRANCH` | The branch that the website will be deployed to, defaults to `gh-pages`. For GitHub Pages Organization repos (`config.projectName` ending in `github.io`), this env variable is required. | +| `DEPLOYMENT_BRANCH` | The branch that the website will be deployed to, defaults to `gh-pages`. For GitHub Pages Organization repos (`config.projectName` ending in `github.io`), you need to either set this env variable or specify the `deploymentBranch` param in `docusaurus.config.js`. | | `CURRENT_BRANCH` | The branch that contains the latest docs changes that will be deployed. Usually, the branch will be `main`, but it could be any branch (default or otherwise) except for `gh-pages`. If nothing is set for this variable, then the current branch will be used. | | `GIT_PASS` | Password (or token) of the `git` user (specified by `GIT_USER`). For example, to facilitate non-interactive deployment (e.g. continuous deployment) | @@ -354,15 +355,16 @@ trigger: commands: - mkdir -p $HOME/.ssh - ssh-keyscan -t rsa github.com >> $HOME/.ssh/known_hosts - - echo "$GITHUB_PRIVATE_KEY > $HOME/.ssh/id_rsa" + - echo "$GITHUB_PRIVATE_KEY" > "$HOME/.ssh/id_rsa" - chmod 0600 $HOME/.ssh/id_rsa - cd website - npm i - - npm run publish-gh-pages + - npm run deploy environment: USE_SSH: true GIT_USER: $DRONE_COMMIT_AUTHOR - GITHUB_PRIVATE_KEY: git_deploy_private_key + GITHUB_PRIVATE_KEY: + from_secret: "git_deploy_private_key" ``` Now, whenever you push a new tag to github, this trigger will start the drone ci job to publish your website. diff --git a/website/versioned_docs/version-2.0.0-beta.7/docusaurus-core.md b/website/versioned_docs/version-2.0.0-beta.9/docusaurus-core.md similarity index 100% rename from website/versioned_docs/version-2.0.0-beta.7/docusaurus-core.md rename to website/versioned_docs/version-2.0.0-beta.9/docusaurus-core.md diff --git a/website/versioned_docs/version-2.0.0-beta.7/guides/creating-pages.md b/website/versioned_docs/version-2.0.0-beta.9/guides/creating-pages.md similarity index 100% rename from website/versioned_docs/version-2.0.0-beta.7/guides/creating-pages.md rename to website/versioned_docs/version-2.0.0-beta.9/guides/creating-pages.md diff --git a/website/versioned_docs/version-2.0.0-beta.7/guides/docs/docs-create-doc.mdx b/website/versioned_docs/version-2.0.0-beta.9/guides/docs/docs-create-doc.mdx similarity index 97% rename from website/versioned_docs/version-2.0.0-beta.7/guides/docs/docs-create-doc.mdx rename to website/versioned_docs/version-2.0.0-beta.9/guides/docs/docs-create-doc.mdx index f068973ff762..4bc628d91419 100644 --- a/website/versioned_docs/version-2.0.0-beta.7/guides/docs/docs-create-doc.mdx +++ b/website/versioned_docs/version-2.0.0-beta.9/guides/docs/docs-create-doc.mdx @@ -112,7 +112,7 @@ tags: :::tip -Tags can also be declared with `tags [Demo, Getting started]` +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.7/guides/docs/docs-introduction.md b/website/versioned_docs/version-2.0.0-beta.9/guides/docs/docs-introduction.md similarity index 100% rename from website/versioned_docs/version-2.0.0-beta.7/guides/docs/docs-introduction.md rename to website/versioned_docs/version-2.0.0-beta.9/guides/docs/docs-introduction.md diff --git a/website/versioned_docs/version-2.0.0-beta.7/guides/docs/docs-markdown-features.mdx b/website/versioned_docs/version-2.0.0-beta.9/guides/docs/docs-markdown-features.mdx similarity index 100% rename from website/versioned_docs/version-2.0.0-beta.7/guides/docs/docs-markdown-features.mdx rename to website/versioned_docs/version-2.0.0-beta.9/guides/docs/docs-markdown-features.mdx diff --git a/website/versioned_docs/version-2.0.0-beta.7/guides/docs/docs-multi-instance.mdx b/website/versioned_docs/version-2.0.0-beta.9/guides/docs/docs-multi-instance.mdx similarity index 100% rename from website/versioned_docs/version-2.0.0-beta.7/guides/docs/docs-multi-instance.mdx rename to website/versioned_docs/version-2.0.0-beta.9/guides/docs/docs-multi-instance.mdx diff --git a/website/versioned_docs/version-2.0.0-beta.7/guides/docs/sidebar.md b/website/versioned_docs/version-2.0.0-beta.9/guides/docs/sidebar.md similarity index 99% rename from website/versioned_docs/version-2.0.0-beta.7/guides/docs/sidebar.md rename to website/versioned_docs/version-2.0.0-beta.9/guides/docs/sidebar.md index ac49def5aebb..dfc8c4175bef 100644 --- a/website/versioned_docs/version-2.0.0-beta.7/guides/docs/sidebar.md +++ b/website/versioned_docs/version-2.0.0-beta.9/guides/docs/sidebar.md @@ -1,6 +1,7 @@ --- id: sidebar title: Sidebar +toc_max_heading_level: 4 slug: /sidebar --- diff --git a/website/versioned_docs/version-2.0.0-beta.7/guides/docs/versioning.md b/website/versioned_docs/version-2.0.0-beta.9/guides/docs/versioning.md similarity index 99% rename from website/versioned_docs/version-2.0.0-beta.7/guides/docs/versioning.md rename to website/versioned_docs/version-2.0.0-beta.9/guides/docs/versioning.md index e62511dbbb1f..167f83fde8d7 100644 --- a/website/versioned_docs/version-2.0.0-beta.7/guides/docs/versioning.md +++ b/website/versioned_docs/version-2.0.0-beta.9/guides/docs/versioning.md @@ -184,7 +184,7 @@ Should you cut a new documentation version 1.0.1? **You probably shouldn't**. 1. ### Keep the number of versions small {#keep-the-number-of-versions-small} -As a good rule of thumb, try to keep the number of your versions below 10. **It is very likely** that you will have a lot of obsolete versioned documentation that nobody even reads anymore. For example, [Jest](https://jestjs.io/versions) is currently in version `24.9`, and only maintains several latest documentation version with the lowest being `22.X`. Keep it small 😊 +As a good rule of thumb, try to keep the number of your versions below 10. **It is very likely** that you will have a lot of obsolete versioned documentation that nobody even reads anymore. For example, [Jest](https://jestjs.io/versions) is currently in version `24.9`, and only maintains several latest documentation versions with the lowest being `22.X`. Keep it small 😊 ### Use absolute import within the docs {#use-absolute-import-within-the-docs} diff --git a/website/versioned_docs/version-2.0.0-beta.7/guides/markdown-features/_markdown-partial-example.mdx b/website/versioned_docs/version-2.0.0-beta.9/guides/markdown-features/_markdown-partial-example.mdx similarity index 100% rename from website/versioned_docs/version-2.0.0-beta.7/guides/markdown-features/_markdown-partial-example.mdx rename to website/versioned_docs/version-2.0.0-beta.9/guides/markdown-features/_markdown-partial-example.mdx diff --git a/website/versioned_docs/version-2.0.0-beta.7/guides/markdown-features/markdown-features-admonitions.mdx b/website/versioned_docs/version-2.0.0-beta.9/guides/markdown-features/markdown-features-admonitions.mdx similarity index 100% rename from website/versioned_docs/version-2.0.0-beta.7/guides/markdown-features/markdown-features-admonitions.mdx rename to website/versioned_docs/version-2.0.0-beta.9/guides/markdown-features/markdown-features-admonitions.mdx diff --git a/website/versioned_docs/version-2.0.0-beta.7/guides/markdown-features/markdown-features-assets.mdx b/website/versioned_docs/version-2.0.0-beta.9/guides/markdown-features/markdown-features-assets.mdx similarity index 100% rename from website/versioned_docs/version-2.0.0-beta.7/guides/markdown-features/markdown-features-assets.mdx rename to website/versioned_docs/version-2.0.0-beta.9/guides/markdown-features/markdown-features-assets.mdx diff --git a/website/versioned_docs/version-2.0.0-beta.7/guides/markdown-features/markdown-features-code-blocks.mdx b/website/versioned_docs/version-2.0.0-beta.9/guides/markdown-features/markdown-features-code-blocks.mdx similarity index 100% rename from website/versioned_docs/version-2.0.0-beta.7/guides/markdown-features/markdown-features-code-blocks.mdx rename to website/versioned_docs/version-2.0.0-beta.9/guides/markdown-features/markdown-features-code-blocks.mdx diff --git a/website/versioned_docs/version-2.0.0-beta.7/guides/markdown-features/markdown-features-head-metadatas.mdx b/website/versioned_docs/version-2.0.0-beta.9/guides/markdown-features/markdown-features-head-metadatas.mdx similarity index 100% rename from website/versioned_docs/version-2.0.0-beta.7/guides/markdown-features/markdown-features-head-metadatas.mdx rename to website/versioned_docs/version-2.0.0-beta.9/guides/markdown-features/markdown-features-head-metadatas.mdx diff --git a/website/versioned_docs/version-2.0.0-beta.7/guides/markdown-features/markdown-features-headings.mdx b/website/versioned_docs/version-2.0.0-beta.9/guides/markdown-features/markdown-features-headings.mdx similarity index 100% rename from website/versioned_docs/version-2.0.0-beta.7/guides/markdown-features/markdown-features-headings.mdx rename to website/versioned_docs/version-2.0.0-beta.9/guides/markdown-features/markdown-features-headings.mdx diff --git a/website/versioned_docs/version-2.0.0-beta.7/guides/markdown-features/markdown-features-inline-toc.mdx b/website/versioned_docs/version-2.0.0-beta.9/guides/markdown-features/markdown-features-inline-toc.mdx similarity index 100% rename from website/versioned_docs/version-2.0.0-beta.7/guides/markdown-features/markdown-features-inline-toc.mdx rename to website/versioned_docs/version-2.0.0-beta.9/guides/markdown-features/markdown-features-inline-toc.mdx diff --git a/website/versioned_docs/version-2.0.0-beta.7/guides/markdown-features/markdown-features-intro.mdx b/website/versioned_docs/version-2.0.0-beta.9/guides/markdown-features/markdown-features-intro.mdx similarity index 100% rename from website/versioned_docs/version-2.0.0-beta.7/guides/markdown-features/markdown-features-intro.mdx rename to website/versioned_docs/version-2.0.0-beta.9/guides/markdown-features/markdown-features-intro.mdx diff --git a/website/versioned_docs/version-2.0.0-beta.7/guides/markdown-features/markdown-features-math-equations.mdx b/website/versioned_docs/version-2.0.0-beta.9/guides/markdown-features/markdown-features-math-equations.mdx similarity index 100% rename from website/versioned_docs/version-2.0.0-beta.7/guides/markdown-features/markdown-features-math-equations.mdx rename to website/versioned_docs/version-2.0.0-beta.9/guides/markdown-features/markdown-features-math-equations.mdx diff --git a/website/versioned_docs/version-2.0.0-beta.9/guides/markdown-features/markdown-features-plugins.mdx b/website/versioned_docs/version-2.0.0-beta.9/guides/markdown-features/markdown-features-plugins.mdx new file mode 100644 index 000000000000..4cb8fa378382 --- /dev/null +++ b/website/versioned_docs/version-2.0.0-beta.9/guides/markdown-features/markdown-features-plugins.mdx @@ -0,0 +1,198 @@ +--- +id: plugins +title: MDX Plugins +description: Using MDX plugins to expand Docusaurus Markdown functionalities +slug: /markdown-features/plugins +--- + +Sometimes, you may want to extend or tweak your Markdown syntax. For example: + +- How do I embed youtube videos using the image syntax (`![](https://youtu.be/yKNxeF4KMsY)`)? +- How do I style links that are on its own line differently, e.g., like a social card? +- How do I make every page start with a copyright notice? + +And the answer is: create an MDX plugin! MDX has a built-in [plugin system](https://mdxjs.com/advanced/plugins/) that can be used to customize how the Markdown files will be parsed and transformed to JSX. There are three typical use-cases of MDX plugins: + +- Using existing [remark plugins](https://github.com/remarkjs/remark/blob/main/doc/plugins.md#list-of-plugins) or [rehype plugins](https://github.com/rehypejs/rehype/blob/main/doc/plugins.md#list-of-plugins); +- Creating remark/rehype plugins to tranform the elements generated by existing MDX syntax; +- Creating remark/rehype plugins to introduce new syntaxes to MDX. + +If you play with the [MDX playground](https://mdx-git-renovate-babel-monorepo-mdx.vercel.app/playground), you would notice that the MDX transpilation has two intermediate steps: Markdown AST (MDAST), and Hypertext AST (HAST), before arriving at the final JSX output. MDX plugins also come in two forms: + +- **[Remark](https://github.com/remarkjs/remark/)**: processes the Markdown AST. +- **[Rehype](https://github.com/rehypejs/rehype/)**: processes the Hypertext AST. + +:::tip + +Use plugins to introduce shorter syntax for the most commonly used JSX elements in your project. The [admonition](./markdown-features-admonitions.mdx) syntax that we offer is also generated by a [Remark plugin](https://github.com/elviswolcott/remark-admonitions), and you could do the same for your own use-case. + +::: + +## Default plugins {#default-plugins} + +Docusaurus injects [some default Remark plugins](https://github.com/facebook/docusaurus/tree/main/packages/docusaurus-mdx-loader/src/remark) during Markdown processing. These plugins would: + +- Generate the table of contents; +- Add anchor links to each heading; +- Transform images and links to `require()` calls. +- … + +These are all typical use-cases of Remark plugins, which can also be a source of inspiration if you want to implement your own plugin. + +## Installing plugins {#installing-plugins} + +An MDX plugin is usually a npm package, so you install them like other npm packages using npm. Take the [math plugins](./markdown-features-math-equations.mdx) as example. + +```bash npm2yarn +npm install --save remark-math@3 rehype-katex@4 +``` + +:::note + +There's recently a trend in the Remark/Rehype ecosystem to migrate to ES Modules, which Docusaurus doesn't support yet. Please make sure your installed plugin version is CommonJS-compatible before we officially support ESM. + +::: + +
+ How are remark-math and rehype-katex different? + +In case you are wondering how Remark and Rehype are different, here is a good example. `remark-math` operates on the Markdown AST, where it sees text like `$...$`, and all it does is transforms that to the JSX `...` without doing too much with the content. This decouples the extraction of math formulae from their rendering, which means you can swap $\KaTeX$ out with other math renderers, like MathJax (with [`rehype-mathjax`](https://github.com/remarkjs/remark-math/tree/main/packages/rehype-mathjax)), just by replacing the Rehype plugin. + +Next, the `rehype-katex` operates on the Hypertext AST where everything has been converted to HTML-like tags already. It traverses all the elements with `math` class, and uses $\KaTeX$ to parse and render the content to actual HTML. + +
+ +Next, add them to the plugin options through plugin or preset config in `docusaurus.config.js`: + +```js title="docusaurus.config.js" +// highlight-start +const math = require('remark-math'); +const katex = require('rehype-katex'); +// highlight-end + +module.exports = { + title: 'Docusaurus', + tagline: 'Build optimized websites quickly, focus on your content', + presets: [ + [ + '@docusaurus/preset-classic', + { + docs: { + // highlight-start + remarkPlugins: [math], + rehypePlugins: [katex], + // highlight-end + }, + }, + ], + ], +}; +``` + +## Configuring plugins {#configuring-plugins} + +Some plugins can be configured and accept their own options. In that case, use the `[plugin, pluginOptions]` syntax, like this: + +```jsx title="docusaurus.config.js" +module.exports = { + presets: [ + [ + '@docusaurus/preset-classic', + { + docs: { + remarkPlugins: [math], + rehypePlugins: [ + // highlight-next-line + [katex, {strict: false}], + ], + }, + }, + ], + ], +}; +``` + +You should check your plugin's documentation for options it supports. + +## Creating new rehype/remark plugins + +If there isn't an existing package that satisfies your customization need, you can create your own MDX plugin. + +:::note + +The writeup below is **not** meant to be a comprehensive guide to creating a plugin, but just an illustration of how to make it work with Docusaurus. Visit the [Remark](https://github.com/remarkjs/remark/blob/main/doc/plugins.md#creating-plugins) or [Rehype](https://github.com/remarkjs/remark/blob/main/doc/plugins.md#creating-plugins) documentation for a more in-depth explanation of how they work. + +::: + +For example, let's make a plugin that visits every `h2` heading and adds a `Section X. ` prefix. First, create your plugin source file anywhere—you can even publish it as a separate NPM package and install it like explained above. We would put ours at `src/remark/section-prefix.js`. A remark/rehype plugin is just a function that receives the `options` and returns a `transformer` which operates on the AST. + +```js "src/remark/section-prefix.js" +const visit = require('unist-util-visit'); + +const plugin = (options) => { + const transformer = async (ast) => { + let number = 1; + visit(ast, 'heading', (node) => { + if (node.depth === 2 && node.children.length > 0) { + if (node.children[0].type === 'text') { + node.children[0].value = `Section ${number}. ${node.children[0].value}`; + } else { + node.children.unshift({ + type: 'text', + value: `Section ${number}. `, + }); + } + number++; + } + }); + }; + return transformer; +}; + +module.exports = plugin; +``` + +You can now import your plugin in `docusaurus.config.js` and use it just like an installed plugin! + +```jsx title="docusaurus.config.js" +// highlight-next-line +const sectionPrefix = require('./src/remark/section-prefix'); + +module.exports = { + presets: [ + [ + '@docusaurus/preset-classic', + { + docs: { + // highlight-next-line + remarkPlugins: [sectionPrefix], + }, + }, + ], + ], +}; +``` + +:::note + +The default plugins of Docusaurus would operate before the custom remark plugins, and that means the images or links have been converted to JSX with `require()` calls already. For example, in the example above, the table of contents generated is still the same even when all `h2` headings are now prefixed by `Section X.`, because the TOC-generating plugin is called before our custom plugin. If you need to process the MDAST before the default plugins do, use the `beforeDefaultRemarkPlugins` and `beforeDefaultRehypePlugins`. + +```jsx title="docusaurus.config.js" +module.exports = { + presets: [ + [ + '@docusaurus/preset-classic', + { + docs: { + // highlight-next-line + beforeDefaultRemarkPlugins: [sectionPrefix], + }, + }, + ], + ], +}; +``` + +This would make the table of contents generated contain the `Section X.` prefix as well. + +::: diff --git a/website/versioned_docs/version-2.0.0-beta.7/guides/markdown-features/markdown-features-react.mdx b/website/versioned_docs/version-2.0.0-beta.9/guides/markdown-features/markdown-features-react.mdx similarity index 100% rename from website/versioned_docs/version-2.0.0-beta.7/guides/markdown-features/markdown-features-react.mdx rename to website/versioned_docs/version-2.0.0-beta.9/guides/markdown-features/markdown-features-react.mdx diff --git a/website/versioned_docs/version-2.0.0-beta.7/guides/markdown-features/markdown-features-tabs.mdx b/website/versioned_docs/version-2.0.0-beta.9/guides/markdown-features/markdown-features-tabs.mdx similarity index 100% rename from website/versioned_docs/version-2.0.0-beta.7/guides/markdown-features/markdown-features-tabs.mdx rename to website/versioned_docs/version-2.0.0-beta.9/guides/markdown-features/markdown-features-tabs.mdx diff --git a/website/versioned_docs/version-2.0.0-beta.7/i18n/i18n-crowdin.mdx b/website/versioned_docs/version-2.0.0-beta.9/i18n/i18n-crowdin.mdx similarity index 99% rename from website/versioned_docs/version-2.0.0-beta.7/i18n/i18n-crowdin.mdx rename to website/versioned_docs/version-2.0.0-beta.9/i18n/i18n-crowdin.mdx index 18499225c81b..b6b2fa31a5d6 100644 --- a/website/versioned_docs/version-2.0.0-beta.7/i18n/i18n-crowdin.mdx +++ b/website/versioned_docs/version-2.0.0-beta.9/i18n/i18n-crowdin.mdx @@ -2,6 +2,7 @@ id: crowdin title: i18n - Using Crowdin slug: /i18n/crowdin +toc_max_heading_level: 4 --- The i18n system of Docusaurus is **decoupled from any translation software**. diff --git a/website/versioned_docs/version-2.0.0-beta.7/i18n/i18n-git.md b/website/versioned_docs/version-2.0.0-beta.9/i18n/i18n-git.md similarity index 100% rename from website/versioned_docs/version-2.0.0-beta.7/i18n/i18n-git.md rename to website/versioned_docs/version-2.0.0-beta.9/i18n/i18n-git.md diff --git a/website/versioned_docs/version-2.0.0-beta.7/i18n/i18n-introduction.md b/website/versioned_docs/version-2.0.0-beta.9/i18n/i18n-introduction.md similarity index 100% rename from website/versioned_docs/version-2.0.0-beta.7/i18n/i18n-introduction.md rename to website/versioned_docs/version-2.0.0-beta.9/i18n/i18n-introduction.md diff --git a/website/versioned_docs/version-2.0.0-beta.7/i18n/i18n-tutorial.md b/website/versioned_docs/version-2.0.0-beta.9/i18n/i18n-tutorial.md similarity index 100% rename from website/versioned_docs/version-2.0.0-beta.7/i18n/i18n-tutorial.md rename to website/versioned_docs/version-2.0.0-beta.9/i18n/i18n-tutorial.md diff --git a/website/versioned_docs/version-2.0.0-beta.7/installation.md b/website/versioned_docs/version-2.0.0-beta.9/installation.md similarity index 96% rename from website/versioned_docs/version-2.0.0-beta.7/installation.md rename to website/versioned_docs/version-2.0.0-beta.9/installation.md index 68adc214bd57..174653ea0114 100644 --- a/website/versioned_docs/version-2.0.0-beta.7/installation.md +++ b/website/versioned_docs/version-2.0.0-beta.9/installation.md @@ -15,7 +15,7 @@ Use **[docusaurus.new](https://docusaurus.new)** to test Docusaurus immediately ## Requirements {#requirements} -- [Node.js](https://nodejs.org/en/download/) version >= 12.13.0 or above (which can be checked by running `node -v`). You can use [nvm](https://github.com/nvm-sh/nvm) for managing multiple Node versions on a single machine installed +- [Node.js](https://nodejs.org/en/download/) version >= 14 or above (which can be checked by running `node -v`). You can use [nvm](https://github.com/nvm-sh/nvm) for managing multiple Node versions on a single machine installed - [Yarn](https://yarnpkg.com/en/) version >= 1.5 (which can be checked by running `yarn --version`). Yarn is a performant package manager for JavaScript and replaces the `npm` client. It is not strictly necessary but highly encouraged. ## Scaffold project website {#scaffold-project-website} diff --git a/website/versioned_docs/version-2.0.0-beta.7/introduction.md b/website/versioned_docs/version-2.0.0-beta.9/introduction.md similarity index 100% rename from website/versioned_docs/version-2.0.0-beta.7/introduction.md rename to website/versioned_docs/version-2.0.0-beta.9/introduction.md diff --git a/website/versioned_docs/version-2.0.0-beta.7/lifecycle-apis.md b/website/versioned_docs/version-2.0.0-beta.9/lifecycle-apis.md similarity index 99% rename from website/versioned_docs/version-2.0.0-beta.7/lifecycle-apis.md rename to website/versioned_docs/version-2.0.0-beta.9/lifecycle-apis.md index c30034b994c7..8dd9d25772bd 100644 --- a/website/versioned_docs/version-2.0.0-beta.7/lifecycle-apis.md +++ b/website/versioned_docs/version-2.0.0-beta.9/lifecycle-apis.md @@ -1,6 +1,7 @@ --- id: lifecycle-apis title: Lifecycle APIs +toc_max_heading_level: 4 --- :::caution @@ -162,9 +163,9 @@ Plugins should use the data loaded in `loadContent` and construct the pages/rout ### `actions` {#actions} -`actions` contain two functions: +`actions` contain three functions: -- `addRoute(config: RouteConfig): void` +#### `addRoute(config: RouteConfig): void` Create a route to add to the website. @@ -189,7 +190,7 @@ type Module = | string; ``` -- `createData(name: string, data: any): Promise` +#### `createData(name: string, data: any): Promise` A function to help you create static data (generally json or string), that you can provide to your routes as props. @@ -231,7 +232,7 @@ export default function friendsPlugin(context, options) { } ``` -- `setGlobalData(data: any): void` +#### `setGlobalData(data: any): void` This function permits to create some global plugin data, that can be read from any page, including the pages created by other plugins, and your theme layout. diff --git a/website/versioned_docs/version-2.0.0-beta.7/migration/migration-automated.md b/website/versioned_docs/version-2.0.0-beta.9/migration/migration-automated.md similarity index 100% rename from website/versioned_docs/version-2.0.0-beta.7/migration/migration-automated.md rename to website/versioned_docs/version-2.0.0-beta.9/migration/migration-automated.md diff --git a/website/versioned_docs/version-2.0.0-beta.7/migration/migration-manual.md b/website/versioned_docs/version-2.0.0-beta.9/migration/migration-manual.md similarity index 99% rename from website/versioned_docs/version-2.0.0-beta.7/migration/migration-manual.md rename to website/versioned_docs/version-2.0.0-beta.9/migration/migration-manual.md index a20d3622fbb3..460e07d5a708 100644 --- a/website/versioned_docs/version-2.0.0-beta.7/migration/migration-manual.md +++ b/website/versioned_docs/version-2.0.0-beta.9/migration/migration-manual.md @@ -2,6 +2,7 @@ id: migration-manual title: Manual migration slug: /migration/manual +toc_max_heading_level: 4 --- This manual migration process should be run after the [automated migration process](./migration-automated.md), to complete the missing parts, or debug issues in the migration CLI output. diff --git a/website/versioned_docs/version-2.0.0-beta.7/migration/migration-overview.md b/website/versioned_docs/version-2.0.0-beta.9/migration/migration-overview.md similarity index 100% rename from website/versioned_docs/version-2.0.0-beta.7/migration/migration-overview.md rename to website/versioned_docs/version-2.0.0-beta.9/migration/migration-overview.md diff --git a/website/versioned_docs/version-2.0.0-beta.7/migration/migration-translated-sites.md b/website/versioned_docs/version-2.0.0-beta.9/migration/migration-translated-sites.md similarity index 100% rename from website/versioned_docs/version-2.0.0-beta.7/migration/migration-translated-sites.md rename to website/versioned_docs/version-2.0.0-beta.9/migration/migration-translated-sites.md diff --git a/website/versioned_docs/version-2.0.0-beta.7/migration/migration-versioned-sites.md b/website/versioned_docs/version-2.0.0-beta.9/migration/migration-versioned-sites.md similarity index 100% rename from website/versioned_docs/version-2.0.0-beta.7/migration/migration-versioned-sites.md rename to website/versioned_docs/version-2.0.0-beta.9/migration/migration-versioned-sites.md diff --git a/website/versioned_docs/version-2.0.0-beta.7/playground.mdx b/website/versioned_docs/version-2.0.0-beta.9/playground.mdx similarity index 100% rename from website/versioned_docs/version-2.0.0-beta.7/playground.mdx rename to website/versioned_docs/version-2.0.0-beta.9/playground.mdx diff --git a/website/versioned_docs/version-2.0.0-beta.7/presets.md b/website/versioned_docs/version-2.0.0-beta.9/presets.md similarity index 100% rename from website/versioned_docs/version-2.0.0-beta.7/presets.md rename to website/versioned_docs/version-2.0.0-beta.9/presets.md diff --git a/website/versioned_docs/version-2.0.0-beta.7/search.md b/website/versioned_docs/version-2.0.0-beta.9/search.md similarity index 96% rename from website/versioned_docs/version-2.0.0-beta.7/search.md rename to website/versioned_docs/version-2.0.0-beta.9/search.md index ceb6541a5982..ce9f98699661 100644 --- a/website/versioned_docs/version-2.0.0-beta.7/search.md +++ b/website/versioned_docs/version-2.0.0-beta.9/search.md @@ -25,7 +25,7 @@ There are a few options you can use to add search to your website: Docusaurus has **official support** for [Algolia DocSearch](https://docsearch.algolia.com). -The service is **free** in most cases: just [apply to the DocSearch program](https://docsearch.algolia.com/docs/apply). +The service is **free** in most cases: just [apply to the DocSearch program](https://docsearch.algolia.com/apply). It works by crawling the content of your website every 24 hours and putting all the content in an Algolia index. This content is then queried directly from your front-end using the Algolia API. @@ -86,6 +86,9 @@ module.exports = { // Optional: see doc section below contextualSearch: true, + // Optional: Specify domains where the navigation should occur through window.location instead on history.push. Useful when our Algolia config crawls multiple documentation sites and we want to navigate with window.location.href to them. + externalUrlRegex: 'external\\.com|domain\\.com', + // Optional: see doc section below appId: 'YOUR_APP_ID', diff --git a/website/versioned_docs/version-2.0.0-beta.7/static-assets.md b/website/versioned_docs/version-2.0.0-beta.9/static-assets.md similarity index 100% rename from website/versioned_docs/version-2.0.0-beta.7/static-assets.md rename to website/versioned_docs/version-2.0.0-beta.9/static-assets.md diff --git a/website/versioned_docs/version-2.0.0-beta.7/styling-layout.md b/website/versioned_docs/version-2.0.0-beta.9/styling-layout.md similarity index 100% rename from website/versioned_docs/version-2.0.0-beta.7/styling-layout.md rename to website/versioned_docs/version-2.0.0-beta.9/styling-layout.md diff --git a/website/versioned_docs/version-2.0.0-beta.7/typescript-support.md b/website/versioned_docs/version-2.0.0-beta.9/typescript-support.md similarity index 100% rename from website/versioned_docs/version-2.0.0-beta.7/typescript-support.md rename to website/versioned_docs/version-2.0.0-beta.9/typescript-support.md diff --git a/website/versioned_docs/version-2.0.0-beta.7/using-plugins.md b/website/versioned_docs/version-2.0.0-beta.9/using-plugins.md similarity index 99% rename from website/versioned_docs/version-2.0.0-beta.7/using-plugins.md rename to website/versioned_docs/version-2.0.0-beta.9/using-plugins.md index 2ebef9f49099..308a8c826654 100644 --- a/website/versioned_docs/version-2.0.0-beta.7/using-plugins.md +++ b/website/versioned_docs/version-2.0.0-beta.9/using-plugins.md @@ -133,7 +133,7 @@ You can use a plugin as a function, directly in the Docusaurus config file: module.exports = { // ... plugins: [ - // highligh-start + // highlight-start function myPlugin(context, options) { // ... return { diff --git a/website/versioned_docs/version-2.0.0-beta.7/using-themes.md b/website/versioned_docs/version-2.0.0-beta.9/using-themes.md similarity index 100% rename from website/versioned_docs/version-2.0.0-beta.7/using-themes.md rename to website/versioned_docs/version-2.0.0-beta.9/using-themes.md diff --git a/website/versioned_sidebars/version-2.0.0-beta.7-sidebars.json b/website/versioned_sidebars/version-2.0.0-beta.9-sidebars.json similarity index 56% rename from website/versioned_sidebars/version-2.0.0-beta.7-sidebars.json rename to website/versioned_sidebars/version-2.0.0-beta.9-sidebars.json index f4df56ed7e33..738a97672dee 100644 --- a/website/versioned_sidebars/version-2.0.0-beta.7-sidebars.json +++ b/website/versioned_sidebars/version-2.0.0-beta.9-sidebars.json @@ -1,8 +1,8 @@ { - "version-2.0.0-beta.7/docs": [ + "version-2.0.0-beta.9/docs": [ { "type": "doc", - "id": "version-2.0.0-beta.7/introduction" + "id": "version-2.0.0-beta.9/introduction" }, { "type": "category", @@ -11,19 +11,19 @@ "items": [ { "type": "doc", - "id": "version-2.0.0-beta.7/installation" + "id": "version-2.0.0-beta.9/installation" }, { "type": "doc", - "id": "version-2.0.0-beta.7/configuration" + "id": "version-2.0.0-beta.9/configuration" }, { "type": "doc", - "id": "version-2.0.0-beta.7/playground" + "id": "version-2.0.0-beta.9/playground" }, { "type": "doc", - "id": "version-2.0.0-beta.7/typescript-support" + "id": "version-2.0.0-beta.9/typescript-support" } ], "collapsible": true @@ -34,7 +34,7 @@ "items": [ { "type": "doc", - "id": "version-2.0.0-beta.7/guides/creating-pages" + "id": "version-2.0.0-beta.9/guides/creating-pages" }, { "type": "category", @@ -44,33 +44,33 @@ "items": [ { "type": "doc", - "id": "version-2.0.0-beta.7/guides/docs/introduction" + "id": "version-2.0.0-beta.9/guides/docs/introduction" }, { "type": "doc", - "id": "version-2.0.0-beta.7/guides/docs/create-doc" + "id": "version-2.0.0-beta.9/guides/docs/create-doc" }, { "type": "doc", - "id": "version-2.0.0-beta.7/guides/docs/sidebar" + "id": "version-2.0.0-beta.9/guides/docs/sidebar" }, { "type": "doc", - "id": "version-2.0.0-beta.7/guides/docs/versioning" + "id": "version-2.0.0-beta.9/guides/docs/versioning" }, { "type": "doc", - "id": "version-2.0.0-beta.7/guides/docs/markdown-features" + "id": "version-2.0.0-beta.9/guides/docs/markdown-features" }, { "type": "doc", - "id": "version-2.0.0-beta.7/guides/docs/multi-instance" + "id": "version-2.0.0-beta.9/guides/docs/multi-instance" } ] }, { "type": "doc", - "id": "version-2.0.0-beta.7/blog" + "id": "version-2.0.0-beta.9/blog" }, { "type": "category", @@ -78,47 +78,47 @@ "items": [ { "type": "doc", - "id": "version-2.0.0-beta.7/guides/markdown-features/introduction" + "id": "version-2.0.0-beta.9/guides/markdown-features/introduction" }, { "type": "doc", - "id": "version-2.0.0-beta.7/guides/markdown-features/react" + "id": "version-2.0.0-beta.9/guides/markdown-features/react" }, { "type": "doc", - "id": "version-2.0.0-beta.7/guides/markdown-features/tabs" + "id": "version-2.0.0-beta.9/guides/markdown-features/tabs" }, { "type": "doc", - "id": "version-2.0.0-beta.7/guides/markdown-features/code-blocks" + "id": "version-2.0.0-beta.9/guides/markdown-features/code-blocks" }, { "type": "doc", - "id": "version-2.0.0-beta.7/guides/markdown-features/admonitions" + "id": "version-2.0.0-beta.9/guides/markdown-features/admonitions" }, { "type": "doc", - "id": "version-2.0.0-beta.7/guides/markdown-features/headings" + "id": "version-2.0.0-beta.9/guides/markdown-features/headings" }, { "type": "doc", - "id": "version-2.0.0-beta.7/guides/markdown-features/inline-toc" + "id": "version-2.0.0-beta.9/guides/markdown-features/inline-toc" }, { "type": "doc", - "id": "version-2.0.0-beta.7/guides/markdown-features/assets" + "id": "version-2.0.0-beta.9/guides/markdown-features/assets" }, { "type": "doc", - "id": "version-2.0.0-beta.7/guides/markdown-features/plugins" + "id": "version-2.0.0-beta.9/guides/markdown-features/plugins" }, { "type": "doc", - "id": "version-2.0.0-beta.7/guides/markdown-features/math-equations" + "id": "version-2.0.0-beta.9/guides/markdown-features/math-equations" }, { "type": "doc", - "id": "version-2.0.0-beta.7/guides/markdown-features/head-metadatas" + "id": "version-2.0.0-beta.9/guides/markdown-features/head-metadatas" } ], "collapsible": true, @@ -126,23 +126,23 @@ }, { "type": "doc", - "id": "version-2.0.0-beta.7/styling-layout" + "id": "version-2.0.0-beta.9/styling-layout" }, { "type": "doc", - "id": "version-2.0.0-beta.7/static-assets" + "id": "version-2.0.0-beta.9/static-assets" }, { "type": "doc", - "id": "version-2.0.0-beta.7/search" + "id": "version-2.0.0-beta.9/search" }, { "type": "doc", - "id": "version-2.0.0-beta.7/browser-support" + "id": "version-2.0.0-beta.9/browser-support" }, { "type": "doc", - "id": "version-2.0.0-beta.7/deployment" + "id": "version-2.0.0-beta.9/deployment" }, { "type": "category", @@ -150,19 +150,19 @@ "items": [ { "type": "doc", - "id": "version-2.0.0-beta.7/i18n/introduction" + "id": "version-2.0.0-beta.9/i18n/introduction" }, { "type": "doc", - "id": "version-2.0.0-beta.7/i18n/tutorial" + "id": "version-2.0.0-beta.9/i18n/tutorial" }, { "type": "doc", - "id": "version-2.0.0-beta.7/i18n/git" + "id": "version-2.0.0-beta.9/i18n/git" }, { "type": "doc", - "id": "version-2.0.0-beta.7/i18n/crowdin" + "id": "version-2.0.0-beta.9/i18n/crowdin" } ], "collapsible": true, @@ -178,15 +178,15 @@ "items": [ { "type": "doc", - "id": "version-2.0.0-beta.7/using-plugins" + "id": "version-2.0.0-beta.9/using-plugins" }, { "type": "doc", - "id": "version-2.0.0-beta.7/using-themes" + "id": "version-2.0.0-beta.9/using-themes" }, { "type": "doc", - "id": "version-2.0.0-beta.7/presets" + "id": "version-2.0.0-beta.9/presets" } ], "collapsible": true, @@ -198,45 +198,45 @@ "items": [ { "type": "doc", - "id": "version-2.0.0-beta.7/migration/migration-overview" + "id": "version-2.0.0-beta.9/migration/migration-overview" }, { "type": "doc", - "id": "version-2.0.0-beta.7/migration/migration-automated" + "id": "version-2.0.0-beta.9/migration/migration-automated" }, { "type": "doc", - "id": "version-2.0.0-beta.7/migration/migration-manual" + "id": "version-2.0.0-beta.9/migration/migration-manual" }, { "type": "doc", - "id": "version-2.0.0-beta.7/migration/migration-versioned-sites" + "id": "version-2.0.0-beta.9/migration/migration-versioned-sites" }, { "type": "doc", - "id": "version-2.0.0-beta.7/migration/migration-translated-sites" + "id": "version-2.0.0-beta.9/migration/migration-translated-sites" } ], "collapsible": true, "collapsed": true } ], - "version-2.0.0-beta.7/api": [ + "version-2.0.0-beta.9/api": [ { "type": "doc", - "id": "version-2.0.0-beta.7/cli" + "id": "version-2.0.0-beta.9/cli" }, { "type": "doc", - "id": "version-2.0.0-beta.7/docusaurus-core" + "id": "version-2.0.0-beta.9/docusaurus-core" }, { "type": "doc", - "id": "version-2.0.0-beta.7/api/docusaurus.config.js" + "id": "version-2.0.0-beta.9/api/docusaurus.config.js" }, { "type": "doc", - "id": "version-2.0.0-beta.7/lifecycle-apis" + "id": "version-2.0.0-beta.9/lifecycle-apis" }, { "type": "category", @@ -244,47 +244,47 @@ "items": [ { "type": "doc", - "id": "version-2.0.0-beta.7/api/plugins/plugins-overview" + "id": "version-2.0.0-beta.9/api/plugins/plugins-overview" }, { "type": "doc", - "id": "version-2.0.0-beta.7/api/plugins/plugin-content-docs" + "id": "version-2.0.0-beta.9/api/plugins/plugin-content-docs" }, { "type": "doc", - "id": "version-2.0.0-beta.7/api/plugins/plugin-content-blog" + "id": "version-2.0.0-beta.9/api/plugins/plugin-content-blog" }, { "type": "doc", - "id": "version-2.0.0-beta.7/api/plugins/plugin-content-pages" + "id": "version-2.0.0-beta.9/api/plugins/plugin-content-pages" }, { "type": "doc", - "id": "version-2.0.0-beta.7/api/plugins/plugin-client-redirects" + "id": "version-2.0.0-beta.9/api/plugins/plugin-client-redirects" }, { "type": "doc", - "id": "version-2.0.0-beta.7/api/plugins/plugin-debug" + "id": "version-2.0.0-beta.9/api/plugins/plugin-debug" }, { "type": "doc", - "id": "version-2.0.0-beta.7/api/plugins/plugin-google-analytics" + "id": "version-2.0.0-beta.9/api/plugins/plugin-google-analytics" }, { "type": "doc", - "id": "version-2.0.0-beta.7/api/plugins/plugin-google-gtag" + "id": "version-2.0.0-beta.9/api/plugins/plugin-google-gtag" }, { "type": "doc", - "id": "version-2.0.0-beta.7/api/plugins/plugin-ideal-image" + "id": "version-2.0.0-beta.9/api/plugins/plugin-ideal-image" }, { "type": "doc", - "id": "version-2.0.0-beta.7/api/plugins/plugin-pwa" + "id": "version-2.0.0-beta.9/api/plugins/plugin-pwa" }, { "type": "doc", - "id": "version-2.0.0-beta.7/api/plugins/plugin-sitemap" + "id": "version-2.0.0-beta.9/api/plugins/plugin-sitemap" } ], "collapsible": true, @@ -296,23 +296,23 @@ "items": [ { "type": "doc", - "id": "version-2.0.0-beta.7/api/themes/themes-overview" + "id": "version-2.0.0-beta.9/api/themes/themes-overview" }, { "type": "doc", - "id": "version-2.0.0-beta.7/api/themes/theme-configuration" + "id": "version-2.0.0-beta.9/api/themes/theme-configuration" }, { "type": "doc", - "id": "version-2.0.0-beta.7/api/themes/theme-classic" + "id": "version-2.0.0-beta.9/api/themes/theme-classic" }, { "type": "doc", - "id": "version-2.0.0-beta.7/api/themes/theme-live-codeblock" + "id": "version-2.0.0-beta.9/api/themes/theme-live-codeblock" }, { "type": "doc", - "id": "version-2.0.0-beta.7/api/themes/theme-search-algolia" + "id": "version-2.0.0-beta.9/api/themes/theme-search-algolia" } ], "collapsible": true, diff --git a/website/versions.json b/website/versions.json index 228156222533..19acb252a0f8 100644 --- a/website/versions.json +++ b/website/versions.json @@ -1,4 +1,4 @@ [ - "2.0.0-beta.8", - "2.0.0-beta.7" + "2.0.0-beta.9", + "2.0.0-beta.8" ] diff --git a/website/versionsArchived.json b/website/versionsArchived.json index 1850d48c6b98..e2223ed693be 100644 --- a/website/versionsArchived.json +++ b/website/versionsArchived.json @@ -1,4 +1,5 @@ { + "2.0.0-beta.7": "https://6180b81acd61ea000825bc41--docusaurus-2.netlify.app/docs/2.0.0-beta.7", "2.0.0-beta.6": "https://61716a75858b7d0007e84c89--docusaurus-2.netlify.app/docs/2.0.0-beta.6", "2.0.0-beta.5": "https://61685d5327709b0007411bff--docusaurus-2.netlify.app/docs/2.0.0-beta.5", "2.0.0-beta.4": "https://6130eb5cde15830007fdf57b--docusaurus-2.netlify.app/docs/2.0.0-beta.4", From 8a491fc29ad002f90e97f5b5fe4178ac8fa0c4d7 Mon Sep 17 00:00:00 2001 From: Alexey Pyltsyn Date: Tue, 2 Nov 2021 20:28:37 +0300 Subject: [PATCH 2/2] v2.0.0-beta.9 --- admin/new.docusaurus.io/package.json | 2 +- lerna.json | 2 +- packages/create-docusaurus/package.json | 2 +- .../templates/classic-typescript/package.json | 8 +++---- .../templates/classic/package.json | 6 ++--- .../templates/facebook/package.json | 6 ++--- .../docusaurus-cssnano-preset/package.json | 2 +- packages/docusaurus-mdx-loader/package.json | 8 +++---- packages/docusaurus-migrate/package.json | 2 +- .../package.json | 2 +- .../package.json | 12 +++++----- .../package.json | 12 +++++----- .../package.json | 14 ++++++------ .../package.json | 12 +++++----- packages/docusaurus-plugin-debug/package.json | 8 +++---- .../package.json | 6 ++--- .../package.json | 6 ++--- .../package.json | 8 +++---- packages/docusaurus-plugin-pwa/package.json | 10 ++++----- .../docusaurus-plugin-sitemap/package.json | 12 +++++----- .../docusaurus-preset-classic/package.json | 22 +++++++++---------- .../package.json | 2 +- .../docusaurus-theme-classic/package.json | 22 +++++++++---------- packages/docusaurus-theme-common/package.json | 14 ++++++------ .../package.json | 8 +++---- .../package.json | 10 ++++----- packages/docusaurus-types/package.json | 2 +- packages/docusaurus-utils-common/package.json | 4 ++-- .../docusaurus-utils-validation/package.json | 4 ++-- packages/docusaurus-utils/package.json | 4 ++-- packages/docusaurus/package.json | 14 ++++++------ packages/lqip-loader/package.json | 2 +- packages/stylelint-copyright/package.json | 2 +- website/package.json | 16 +++++++------- 34 files changed, 133 insertions(+), 133 deletions(-) diff --git a/admin/new.docusaurus.io/package.json b/admin/new.docusaurus.io/package.json index df4980850d23..96805ea0c1ca 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.8", + "version": "2.0.0-beta.9", "private": true, "scripts": { "start": "netlify dev" diff --git a/lerna.json b/lerna.json index c59848a18698..d5fdedddc9af 100644 --- a/lerna.json +++ b/lerna.json @@ -1,5 +1,5 @@ { - "version": "2.0.0-beta.8", + "version": "2.0.0-beta.9", "npmClient": "yarn", "useWorkspaces": true, "changelog": { diff --git a/packages/create-docusaurus/package.json b/packages/create-docusaurus/package.json index 4947c8db0a8d..26f2373694f5 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.8", + "version": "2.0.0-beta.9", "description": "Create Docusaurus apps easily.", "repository": { "type": "git", diff --git a/packages/create-docusaurus/templates/classic-typescript/package.json b/packages/create-docusaurus/templates/classic-typescript/package.json index 0df788d22526..28d1e67b8dad 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.8", + "version": "2.0.0-beta.9", "private": true, "scripts": { "docusaurus": "docusaurus", @@ -15,8 +15,8 @@ "typecheck": "tsc" }, "dependencies": { - "@docusaurus/core": "2.0.0-beta.8", - "@docusaurus/preset-classic": "2.0.0-beta.8", + "@docusaurus/core": "2.0.0-beta.9", + "@docusaurus/preset-classic": "2.0.0-beta.9", "@mdx-js/react": "^1.6.21", "@svgr/webpack": "^5.5.0", "clsx": "^1.1.1", @@ -27,7 +27,7 @@ "url-loader": "^4.1.1" }, "devDependencies": { - "@docusaurus/module-type-aliases": "2.0.0-beta.8", + "@docusaurus/module-type-aliases": "2.0.0-beta.9", "@tsconfig/docusaurus": "^1.0.4", "typescript": "^4.3.5" }, diff --git a/packages/create-docusaurus/templates/classic/package.json b/packages/create-docusaurus/templates/classic/package.json index 257f2672bed1..3a99aeee0bb9 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.8", + "version": "2.0.0-beta.9", "private": true, "scripts": { "docusaurus": "docusaurus", @@ -14,8 +14,8 @@ "write-heading-ids": "docusaurus write-heading-ids" }, "dependencies": { - "@docusaurus/core": "2.0.0-beta.8", - "@docusaurus/preset-classic": "2.0.0-beta.8", + "@docusaurus/core": "2.0.0-beta.9", + "@docusaurus/preset-classic": "2.0.0-beta.9", "@mdx-js/react": "^1.6.21", "@svgr/webpack": "^5.5.0", "clsx": "^1.1.1", diff --git a/packages/create-docusaurus/templates/facebook/package.json b/packages/create-docusaurus/templates/facebook/package.json index 0ac930a90771..acaa90466861 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.8", + "version": "2.0.0-beta.9", "private": true, "scripts": { "docusaurus": "docusaurus", @@ -18,8 +18,8 @@ "prettier:diff": "prettier --config .prettierrc --list-different \"**/*.{js,jsx,ts,tsx,md,mdx}\"" }, "dependencies": { - "@docusaurus/core": "2.0.0-beta.8", - "@docusaurus/preset-classic": "2.0.0-beta.8", + "@docusaurus/core": "2.0.0-beta.9", + "@docusaurus/preset-classic": "2.0.0-beta.9", "@mdx-js/react": "^1.6.21", "@svgr/webpack": "^5.5.0", "clsx": "^1.1.1", diff --git a/packages/docusaurus-cssnano-preset/package.json b/packages/docusaurus-cssnano-preset/package.json index 44965c05a309..15db23aad0da 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.8", + "version": "2.0.0-beta.9", "description": "Advanced cssnano preset for maximum optimization.", "main": "index.js", "license": "MIT", diff --git a/packages/docusaurus-mdx-loader/package.json b/packages/docusaurus-mdx-loader/package.json index 509882278b99..25ee47fa79b6 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.8", + "version": "2.0.0-beta.9", "description": "Docusaurus Loader for MDX", "main": "lib/index.js", "types": "src/types.d.ts", @@ -20,8 +20,8 @@ "dependencies": { "@babel/parser": "^7.12.16", "@babel/traverse": "^7.12.13", - "@docusaurus/core": "2.0.0-beta.8", - "@docusaurus/utils": "2.0.0-beta.8", + "@docusaurus/core": "2.0.0-beta.9", + "@docusaurus/utils": "2.0.0-beta.9", "@mdx-js/mdx": "^1.6.21", "@mdx-js/react": "^1.6.21", "chalk": "^4.1.2", @@ -38,7 +38,7 @@ "webpack": "^5.61.0" }, "devDependencies": { - "@docusaurus/types": "2.0.0-beta.8", + "@docusaurus/types": "2.0.0-beta.9", "@types/escape-html": "^1.0.1", "@types/mdast": "^3.0.7", "@types/stringify-object": "^3.3.1", diff --git a/packages/docusaurus-migrate/package.json b/packages/docusaurus-migrate/package.json index f96e268ea6f1..f71e609aef51 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.8", + "version": "2.0.0-beta.9", "description": "A CLI tool to migrate from older versions of Docusaurus.", "main": "lib/index.js", "license": "MIT", diff --git a/packages/docusaurus-module-type-aliases/package.json b/packages/docusaurus-module-type-aliases/package.json index 95f84ca18ada..8f4b618c4a0e 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.8", + "version": "2.0.0-beta.9", "description": "Docusaurus module type aliases.", "types": "./src/index.d.ts", "publishConfig": { diff --git a/packages/docusaurus-plugin-client-redirects/package.json b/packages/docusaurus-plugin-client-redirects/package.json index ec56041dc28e..396b3dba90c5 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.8", + "version": "2.0.0-beta.9", "description": "Client redirects plugin for Docusaurus.", "main": "lib/index.js", "types": "src/plugin-client-redirects.d.ts", @@ -18,11 +18,11 @@ }, "license": "MIT", "dependencies": { - "@docusaurus/core": "2.0.0-beta.8", - "@docusaurus/types": "2.0.0-beta.8", - "@docusaurus/utils": "2.0.0-beta.8", - "@docusaurus/utils-common": "2.0.0-beta.8", - "@docusaurus/utils-validation": "2.0.0-beta.8", + "@docusaurus/core": "2.0.0-beta.9", + "@docusaurus/types": "2.0.0-beta.9", + "@docusaurus/utils": "2.0.0-beta.9", + "@docusaurus/utils-common": "2.0.0-beta.9", + "@docusaurus/utils-validation": "2.0.0-beta.9", "chalk": "^4.1.2", "eta": "^1.12.3", "fs-extra": "^10.0.0", diff --git a/packages/docusaurus-plugin-content-blog/package.json b/packages/docusaurus-plugin-content-blog/package.json index 0ca589f63e38..53f9202093da 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.8", + "version": "2.0.0-beta.9", "description": "Blog plugin for Docusaurus.", "main": "lib/index.js", "types": "src/plugin-content-blog.d.ts", @@ -18,11 +18,11 @@ }, "license": "MIT", "dependencies": { - "@docusaurus/core": "2.0.0-beta.8", - "@docusaurus/mdx-loader": "2.0.0-beta.8", - "@docusaurus/types": "2.0.0-beta.8", - "@docusaurus/utils": "2.0.0-beta.8", - "@docusaurus/utils-validation": "2.0.0-beta.8", + "@docusaurus/core": "2.0.0-beta.9", + "@docusaurus/mdx-loader": "2.0.0-beta.9", + "@docusaurus/types": "2.0.0-beta.9", + "@docusaurus/utils": "2.0.0-beta.9", + "@docusaurus/utils-validation": "2.0.0-beta.9", "chalk": "^4.1.2", "escape-string-regexp": "^4.0.0", "feed": "^4.2.2", diff --git a/packages/docusaurus-plugin-content-docs/package.json b/packages/docusaurus-plugin-content-docs/package.json index ea54fd4b8581..61849c6a1ca0 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.8", + "version": "2.0.0-beta.9", "description": "Docs plugin for Docusaurus.", "main": "lib/index.js", "types": "src/plugin-content-docs.d.ts", @@ -18,7 +18,7 @@ }, "license": "MIT", "devDependencies": { - "@docusaurus/module-type-aliases": "2.0.0-beta.8", + "@docusaurus/module-type-aliases": "2.0.0-beta.9", "@types/js-yaml": "^4.0.0", "@types/picomatch": "^2.2.1", "commander": "^5.1.0", @@ -26,11 +26,11 @@ "utility-types": "^3.10.0" }, "dependencies": { - "@docusaurus/core": "2.0.0-beta.8", - "@docusaurus/mdx-loader": "2.0.0-beta.8", - "@docusaurus/types": "2.0.0-beta.8", - "@docusaurus/utils": "2.0.0-beta.8", - "@docusaurus/utils-validation": "2.0.0-beta.8", + "@docusaurus/core": "2.0.0-beta.9", + "@docusaurus/mdx-loader": "2.0.0-beta.9", + "@docusaurus/types": "2.0.0-beta.9", + "@docusaurus/utils": "2.0.0-beta.9", + "@docusaurus/utils-validation": "2.0.0-beta.9", "chalk": "^4.1.2", "combine-promises": "^1.1.0", "escape-string-regexp": "^4.0.0", diff --git a/packages/docusaurus-plugin-content-pages/package.json b/packages/docusaurus-plugin-content-pages/package.json index 2c4ae84dd7b2..d300663868f1 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.8", + "version": "2.0.0-beta.9", "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.8", - "@docusaurus/mdx-loader": "2.0.0-beta.8", - "@docusaurus/types": "2.0.0-beta.8", - "@docusaurus/utils": "2.0.0-beta.8", - "@docusaurus/utils-validation": "2.0.0-beta.8", + "@docusaurus/core": "2.0.0-beta.9", + "@docusaurus/mdx-loader": "2.0.0-beta.9", + "@docusaurus/types": "2.0.0-beta.9", + "@docusaurus/utils": "2.0.0-beta.9", + "@docusaurus/utils-validation": "2.0.0-beta.9", "globby": "^11.0.2", "lodash": "^4.17.20", "remark-admonitions": "^1.2.1", diff --git a/packages/docusaurus-plugin-debug/package.json b/packages/docusaurus-plugin-debug/package.json index 772a8447933b..4a4d357de0f1 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.8", + "version": "2.0.0-beta.9", "description": "Debug plugin for Docusaurus.", "main": "lib/index.js", "types": "src/types.d.ts", @@ -18,9 +18,9 @@ }, "license": "MIT", "dependencies": { - "@docusaurus/core": "2.0.0-beta.8", - "@docusaurus/types": "2.0.0-beta.8", - "@docusaurus/utils": "2.0.0-beta.8", + "@docusaurus/core": "2.0.0-beta.9", + "@docusaurus/types": "2.0.0-beta.9", + "@docusaurus/utils": "2.0.0-beta.9", "fs-extra": "^10.0.0", "react-json-view": "^1.21.3", "tslib": "^2.3.1" diff --git a/packages/docusaurus-plugin-google-analytics/package.json b/packages/docusaurus-plugin-google-analytics/package.json index 0f889fe1fa7f..2d4df876ee7e 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.8", + "version": "2.0.0-beta.9", "description": "Global analytics (analytics.js) plugin for Docusaurus.", "main": "lib/index.js", "types": "src/plugin-google-analytics.d.ts", @@ -18,10 +18,10 @@ }, "license": "MIT", "dependencies": { - "@docusaurus/core": "2.0.0-beta.8" + "@docusaurus/core": "2.0.0-beta.9" }, "devDependencies": { - "@docusaurus/types": "2.0.0-beta.8" + "@docusaurus/types": "2.0.0-beta.9" }, "peerDependencies": { "react": "^16.8.4 || ^17.0.0", diff --git a/packages/docusaurus-plugin-google-gtag/package.json b/packages/docusaurus-plugin-google-gtag/package.json index f6051d2bf2b3..d95aa9a302e5 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.8", + "version": "2.0.0-beta.9", "description": "Global Site Tag (gtag.js) plugin for Docusaurus.", "main": "lib/index.js", "types": "src/plugin-google-gtag.d.ts", @@ -18,10 +18,10 @@ }, "license": "MIT", "dependencies": { - "@docusaurus/core": "2.0.0-beta.8" + "@docusaurus/core": "2.0.0-beta.9" }, "devDependencies": { - "@docusaurus/types": "2.0.0-beta.8" + "@docusaurus/types": "2.0.0-beta.9" }, "peerDependencies": { "react": "^16.8.4 || ^17.0.0", diff --git a/packages/docusaurus-plugin-ideal-image/package.json b/packages/docusaurus-plugin-ideal-image/package.json index 26a2b4a4d759..6e2606ff3331 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.8", + "version": "2.0.0-beta.9", "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", @@ -21,10 +21,10 @@ "fs-extra": "^10.0.0" }, "dependencies": { - "@docusaurus/core": "2.0.0-beta.8", - "@docusaurus/lqip-loader": "2.0.0-beta.8", + "@docusaurus/core": "2.0.0-beta.9", + "@docusaurus/lqip-loader": "2.0.0-beta.9", "@docusaurus/responsive-loader": "1.4.0", - "@docusaurus/types": "2.0.0-beta.8", + "@docusaurus/types": "2.0.0-beta.9", "@endiliey/react-ideal-image": "^0.0.11", "react-waypoint": "^10.1.0", "sharp": "^0.29.1", diff --git a/packages/docusaurus-plugin-pwa/package.json b/packages/docusaurus-plugin-pwa/package.json index 802bd323c8da..fa7c48b0f82b 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.8", + "version": "2.0.0-beta.9", "description": "Docusaurus Plugin to add PWA support.", "main": "src/index.js", "publishConfig": { @@ -16,10 +16,10 @@ "@babel/plugin-proposal-nullish-coalescing-operator": "^7.12.13", "@babel/plugin-proposal-optional-chaining": "^7.12.16", "@babel/preset-env": "^7.15.6", - "@docusaurus/core": "2.0.0-beta.8", - "@docusaurus/theme-common": "2.0.0-beta.8", - "@docusaurus/utils": "2.0.0-beta.8", - "@docusaurus/utils-validation": "2.0.0-beta.8", + "@docusaurus/core": "2.0.0-beta.9", + "@docusaurus/theme-common": "2.0.0-beta.9", + "@docusaurus/utils": "2.0.0-beta.9", + "@docusaurus/utils-validation": "2.0.0-beta.9", "babel-loader": "^8.2.2", "clsx": "^1.1.1", "core-js": "^2.6.5", diff --git a/packages/docusaurus-plugin-sitemap/package.json b/packages/docusaurus-plugin-sitemap/package.json index 4eaa288c1200..742e69227699 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.8", + "version": "2.0.0-beta.9", "description": "Simple sitemap generation plugin for Docusaurus.", "main": "lib/index.js", "types": "src/plugin-sitemap.d.ts", @@ -18,11 +18,11 @@ }, "license": "MIT", "dependencies": { - "@docusaurus/core": "2.0.0-beta.8", - "@docusaurus/types": "2.0.0-beta.8", - "@docusaurus/utils": "2.0.0-beta.8", - "@docusaurus/utils-common": "2.0.0-beta.8", - "@docusaurus/utils-validation": "2.0.0-beta.8", + "@docusaurus/core": "2.0.0-beta.9", + "@docusaurus/types": "2.0.0-beta.9", + "@docusaurus/utils": "2.0.0-beta.9", + "@docusaurus/utils-common": "2.0.0-beta.9", + "@docusaurus/utils-validation": "2.0.0-beta.9", "fs-extra": "^10.0.0", "sitemap": "^7.0.0", "tslib": "^2.3.1" diff --git a/packages/docusaurus-preset-classic/package.json b/packages/docusaurus-preset-classic/package.json index d0ba35f94a69..4318abc74b7a 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.8", + "version": "2.0.0-beta.9", "description": "Classic preset for Docusaurus.", "main": "lib/index.js", "types": "src/preset-classic.d.ts", @@ -18,16 +18,16 @@ }, "license": "MIT", "dependencies": { - "@docusaurus/core": "2.0.0-beta.8", - "@docusaurus/plugin-content-blog": "2.0.0-beta.8", - "@docusaurus/plugin-content-docs": "2.0.0-beta.8", - "@docusaurus/plugin-content-pages": "2.0.0-beta.8", - "@docusaurus/plugin-debug": "2.0.0-beta.8", - "@docusaurus/plugin-google-analytics": "2.0.0-beta.8", - "@docusaurus/plugin-google-gtag": "2.0.0-beta.8", - "@docusaurus/plugin-sitemap": "2.0.0-beta.8", - "@docusaurus/theme-classic": "2.0.0-beta.8", - "@docusaurus/theme-search-algolia": "2.0.0-beta.8" + "@docusaurus/core": "2.0.0-beta.9", + "@docusaurus/plugin-content-blog": "2.0.0-beta.9", + "@docusaurus/plugin-content-docs": "2.0.0-beta.9", + "@docusaurus/plugin-content-pages": "2.0.0-beta.9", + "@docusaurus/plugin-debug": "2.0.0-beta.9", + "@docusaurus/plugin-google-analytics": "2.0.0-beta.9", + "@docusaurus/plugin-google-gtag": "2.0.0-beta.9", + "@docusaurus/plugin-sitemap": "2.0.0-beta.9", + "@docusaurus/theme-classic": "2.0.0-beta.9", + "@docusaurus/theme-search-algolia": "2.0.0-beta.9" }, "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 3f4d9b613062..f0b9c5c623c0 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.8", + "version": "2.0.0-beta.9", "description": "Remark plugin for converting npm commands to Yarn commands as tabs.", "main": "src/index.js", "publishConfig": { diff --git a/packages/docusaurus-theme-classic/package.json b/packages/docusaurus-theme-classic/package.json index a8cee2a5de4f..581c181970eb 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.8", + "version": "2.0.0-beta.9", "description": "Classic theme for Docusaurus", "main": "lib/index.js", "types": "src/types.d.ts", @@ -23,15 +23,15 @@ "update-code-translations": "node -e 'require(\"./update-code-translations.js\").run()'" }, "dependencies": { - "@docusaurus/core": "2.0.0-beta.8", - "@docusaurus/plugin-content-blog": "2.0.0-beta.8", - "@docusaurus/plugin-content-docs": "2.0.0-beta.8", - "@docusaurus/plugin-content-pages": "2.0.0-beta.8", - "@docusaurus/theme-common": "2.0.0-beta.8", - "@docusaurus/types": "2.0.0-beta.8", - "@docusaurus/utils": "2.0.0-beta.8", - "@docusaurus/utils-common": "2.0.0-beta.8", - "@docusaurus/utils-validation": "2.0.0-beta.8", + "@docusaurus/core": "2.0.0-beta.9", + "@docusaurus/plugin-content-blog": "2.0.0-beta.9", + "@docusaurus/plugin-content-docs": "2.0.0-beta.9", + "@docusaurus/plugin-content-pages": "2.0.0-beta.9", + "@docusaurus/theme-common": "2.0.0-beta.9", + "@docusaurus/types": "2.0.0-beta.9", + "@docusaurus/utils": "2.0.0-beta.9", + "@docusaurus/utils-common": "2.0.0-beta.9", + "@docusaurus/utils-validation": "2.0.0-beta.9", "@mdx-js/mdx": "^1.6.21", "@mdx-js/react": "^1.6.21", "chalk": "^4.1.2", @@ -50,7 +50,7 @@ "rtlcss": "^3.3.0" }, "devDependencies": { - "@docusaurus/module-type-aliases": "2.0.0-beta.8", + "@docusaurus/module-type-aliases": "2.0.0-beta.9", "@types/mdx-js__react": "^1.5.4", "@types/parse-numeric-range": "^0.0.1", "@types/rtlcss": "^3.1.1", diff --git a/packages/docusaurus-theme-common/package.json b/packages/docusaurus-theme-common/package.json index 34382e4db9b2..56f8b378db13 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.8", + "version": "2.0.0-beta.9", "description": "Common code for Docusaurus themes.", "main": "./lib/index.js", "types": "./lib/index.d.ts", @@ -18,18 +18,18 @@ }, "license": "MIT", "dependencies": { - "@docusaurus/core": "2.0.0-beta.8", - "@docusaurus/plugin-content-blog": "2.0.0-beta.8", - "@docusaurus/plugin-content-docs": "2.0.0-beta.8", - "@docusaurus/plugin-content-pages": "2.0.0-beta.8", - "@docusaurus/types": "2.0.0-beta.8", + "@docusaurus/core": "2.0.0-beta.9", + "@docusaurus/plugin-content-blog": "2.0.0-beta.9", + "@docusaurus/plugin-content-docs": "2.0.0-beta.9", + "@docusaurus/plugin-content-pages": "2.0.0-beta.9", + "@docusaurus/types": "2.0.0-beta.9", "clsx": "^1.1.1", "fs-extra": "^10.0.0", "tslib": "^2.3.1", "utility-types": "^3.10.0" }, "devDependencies": { - "@docusaurus/module-type-aliases": "2.0.0-beta.8", + "@docusaurus/module-type-aliases": "2.0.0-beta.9", "lodash": "^4.17.20" }, "peerDependencies": { diff --git a/packages/docusaurus-theme-live-codeblock/package.json b/packages/docusaurus-theme-live-codeblock/package.json index 15ae15eb2c3d..790f09febf63 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.8", + "version": "2.0.0-beta.9", "description": "Docusaurus live code block component.", "main": "lib/index.js", "publishConfig": { @@ -17,8 +17,8 @@ }, "license": "MIT", "dependencies": { - "@docusaurus/core": "2.0.0-beta.8", - "@docusaurus/utils-validation": "2.0.0-beta.8", + "@docusaurus/core": "2.0.0-beta.9", + "@docusaurus/utils-validation": "2.0.0-beta.9", "@philpl/buble": "^0.19.7", "clsx": "^1.1.1", "fs-extra": "^10.0.0", @@ -27,7 +27,7 @@ "react-live": "2.2.3" }, "devDependencies": { - "@docusaurus/types": "2.0.0-beta.8", + "@docusaurus/types": "2.0.0-beta.9", "@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 5f2824feba4d..3e64f07c68a4 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.8", + "version": "2.0.0-beta.9", "description": "Algolia search component for Docusaurus.", "main": "src/index.js", "publishConfig": { @@ -14,10 +14,10 @@ "license": "MIT", "dependencies": { "@docsearch/react": "^3.0.0-alpha.39", - "@docusaurus/core": "2.0.0-beta.8", - "@docusaurus/theme-common": "2.0.0-beta.8", - "@docusaurus/utils": "2.0.0-beta.8", - "@docusaurus/utils-validation": "2.0.0-beta.8", + "@docusaurus/core": "2.0.0-beta.9", + "@docusaurus/theme-common": "2.0.0-beta.9", + "@docusaurus/utils": "2.0.0-beta.9", + "@docusaurus/utils-validation": "2.0.0-beta.9", "algoliasearch": "^4.10.5", "algoliasearch-helper": "^3.5.5", "clsx": "^1.1.1", diff --git a/packages/docusaurus-types/package.json b/packages/docusaurus-types/package.json index 1a13e75f8675..8e0b907426bd 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.8", + "version": "2.0.0-beta.9", "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 6f527da02c8f..6d8d82e6d58f 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.8", + "version": "2.0.0-beta.9", "description": "Common (Node/Browser) utility functions for Docusaurus packages.", "main": "./lib/index.js", "types": "./lib/index.d.ts", @@ -18,7 +18,7 @@ }, "license": "MIT", "dependencies": { - "@docusaurus/types": "2.0.0-beta.8", + "@docusaurus/types": "2.0.0-beta.9", "tslib": "^2.3.1" }, "engines": { diff --git a/packages/docusaurus-utils-validation/package.json b/packages/docusaurus-utils-validation/package.json index b44faf152954..92b40fa560f7 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.8", + "version": "2.0.0-beta.9", "description": "Node validation utility functions for Docusaurus packages.", "main": "./lib/index.js", "types": "./lib/index.d.ts", @@ -18,7 +18,7 @@ }, "license": "MIT", "dependencies": { - "@docusaurus/utils": "2.0.0-beta.8", + "@docusaurus/utils": "2.0.0-beta.9", "chalk": "^4.1.2", "joi": "^17.4.2", "tslib": "^2.3.1" diff --git a/packages/docusaurus-utils/package.json b/packages/docusaurus-utils/package.json index f1494c108e33..8f3febb9b88e 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.8", + "version": "2.0.0-beta.9", "description": "Node utility functions for Docusaurus packages.", "main": "./lib/index.js", "types": "./lib/index.d.ts", @@ -18,7 +18,7 @@ }, "license": "MIT", "dependencies": { - "@docusaurus/types": "2.0.0-beta.8", + "@docusaurus/types": "2.0.0-beta.9", "@mdx-js/runtime": "^1.6.22", "@types/github-slugger": "^1.3.0", "chalk": "^4.1.2", diff --git a/packages/docusaurus/package.json b/packages/docusaurus/package.json index 949061688381..4000e8996bd0 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.8", + "version": "2.0.0-beta.9", "license": "MIT", "publishConfig": { "access": "public" @@ -31,7 +31,7 @@ "url": "https://github.com/facebook/docusaurus/issues" }, "devDependencies": { - "@docusaurus/module-type-aliases": "2.0.0-beta.8", + "@docusaurus/module-type-aliases": "2.0.0-beta.9", "@types/copy-webpack-plugin": "^8.0.1", "@types/css-minimizer-webpack-plugin": "^3.0.2", "@types/detect-port": "^1.3.0", @@ -54,12 +54,12 @@ "@babel/runtime": "^7.15.4", "@babel/runtime-corejs3": "^7.15.4", "@babel/traverse": "^7.12.13", - "@docusaurus/cssnano-preset": "2.0.0-beta.8", + "@docusaurus/cssnano-preset": "2.0.0-beta.9", "@docusaurus/react-loadable": "5.5.2", - "@docusaurus/types": "2.0.0-beta.8", - "@docusaurus/utils": "2.0.0-beta.8", - "@docusaurus/utils-common": "2.0.0-beta.8", - "@docusaurus/utils-validation": "2.0.0-beta.8", + "@docusaurus/types": "2.0.0-beta.9", + "@docusaurus/utils": "2.0.0-beta.9", + "@docusaurus/utils-common": "2.0.0-beta.9", + "@docusaurus/utils-validation": "2.0.0-beta.9", "@slorber/static-site-generator-webpack-plugin": "^4.0.0", "@svgr/webpack": "^5.5.0", "autoprefixer": "^10.3.5", diff --git a/packages/lqip-loader/package.json b/packages/lqip-loader/package.json index c5bfde8f6221..eeac05b615ab 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.8", + "version": "2.0.0-beta.9", "description": "Low Quality Image Placeholders (LQIP) loader for webpack.", "main": "lib/index.js", "publishConfig": { diff --git a/packages/stylelint-copyright/package.json b/packages/stylelint-copyright/package.json index 8166ec55a91b..0a39fe10719e 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.8", + "version": "2.0.0-beta.9", "description": "Stylelint plugin to check CSS files for a copyright header.", "main": "index.js", "license": "MIT", diff --git a/website/package.json b/website/package.json index 81e5f6152ccc..daf8e430ee27 100644 --- a/website/package.json +++ b/website/package.json @@ -1,6 +1,6 @@ { "name": "website", - "version": "2.0.0-beta.8", + "version": "2.0.0-beta.9", "private": true, "scripts": { "docusaurus": "docusaurus", @@ -31,13 +31,13 @@ "dependencies": { "@crowdin/cli": "^3.7.1", "@crowdin/crowdin-api-client": "^1.10.6", - "@docusaurus/core": "2.0.0-beta.8", - "@docusaurus/plugin-client-redirects": "2.0.0-beta.8", - "@docusaurus/plugin-ideal-image": "2.0.0-beta.8", - "@docusaurus/plugin-pwa": "2.0.0-beta.8", - "@docusaurus/preset-classic": "2.0.0-beta.8", - "@docusaurus/remark-plugin-npm2yarn": "2.0.0-beta.8", - "@docusaurus/theme-live-codeblock": "2.0.0-beta.8", + "@docusaurus/core": "2.0.0-beta.9", + "@docusaurus/plugin-client-redirects": "2.0.0-beta.9", + "@docusaurus/plugin-ideal-image": "2.0.0-beta.9", + "@docusaurus/plugin-pwa": "2.0.0-beta.9", + "@docusaurus/preset-classic": "2.0.0-beta.9", + "@docusaurus/remark-plugin-npm2yarn": "2.0.0-beta.9", + "@docusaurus/theme-live-codeblock": "2.0.0-beta.9", "clsx": "^1.1.1", "color": "^4.0.1", "esbuild-loader": "2.13.1",