From a2e59399f5a75db06ebed762f6095197350285f8 Mon Sep 17 00:00:00 2001 From: sebastienlorber Date: Thu, 3 Mar 2022 18:04:00 +0100 Subject: [PATCH] chore: prepare v2.0.0-beta.17 release --- CHANGELOG.md | 75 ++++ .../_partials/swizzleWarning.mdx | 5 - .../advanced/swizzling.md | 195 ----------- .../advanced/architecture.md | 0 .../version-2.0.0-beta.17/advanced/client.md | 117 +++++++ .../advanced/index.md | 0 .../advanced/plugins.md | 4 +- .../advanced/routing.md | 18 +- .../advanced/ssg.md | 12 +- .../api/docusaurus.config.js.md | 16 +- .../api/plugin-methods/README.md | 4 +- .../api/plugin-methods/_category_.yml | 0 .../plugin-methods/extend-infrastructure.md | 0 .../api/plugin-methods/i18n-lifecycles.md | 0 .../api/plugin-methods/lifecycle-apis.md | 2 +- .../api/plugin-methods/static-methods.md | 0 .../api/plugins/_category_.yml | 0 .../api/plugins/overview.md | 0 .../api/plugins/plugin-client-redirects.md | 0 .../api/plugins/plugin-content-blog.md | 1 + .../api/plugins/plugin-content-docs.md | 3 + .../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 | 2 + .../api/themes/_category_.yml | 0 .../api/themes/overview.md | 0 .../api/themes/theme-classic.md | 0 .../api/themes/theme-configuration.md | 17 - .../api/themes/theme-live-codeblock.md | 0 .../api/themes/theme-search-algolia.md | 2 +- .../docusaurus-asset-example-banner.png | Bin .../assets/docusaurus-asset-example.docx | Bin .../assets/docusaurus-asset-example.xyz | Bin .../blog.mdx | 87 +++-- .../browser-support.md | 0 .../cli.md | 48 +-- .../configuration.md | 0 .../deployment.mdx | 104 ++++-- .../docusaurus-core.md | 0 .../guides/creating-pages.md | 0 .../guides/docs/docs-create-doc.mdx | 0 .../guides/docs/docs-introduction.md | 0 .../guides/docs/docs-markdown-features.mdx | 2 +- .../guides/docs/docs-multi-instance.mdx | 0 .../guides/docs/sidebar/autogenerated.md | 24 +- .../guides/docs/sidebar/index.md | 26 +- .../guides/docs/sidebar/items.md | 195 +++++++++-- .../guides/docs/sidebar/multiple-sidebars.md | 0 .../guides/docs/versioning.md | 12 +- .../_markdown-partial-example.mdx | 0 .../markdown-features-admonitions.mdx | 4 +- .../markdown-features-assets.mdx | 26 +- .../markdown-features-code-blocks.mdx | 4 +- .../markdown-features-head-metadata.mdx | 0 .../markdown-features-headings.mdx | 0 .../markdown-features-inline-toc.mdx | 71 +++- .../markdown-features-intro.mdx | 6 +- .../markdown-features-math-equations.mdx | 25 +- .../markdown-features-plugins.mdx | 2 +- .../markdown-features-react.mdx | 6 +- .../markdown-features-react.module.css | 0 .../markdown-features-tabs-styles.module.css | 0 .../markdown-features-tabs.mdx | 4 +- .../guides/whats-next.md | 0 .../i18n/i18n-crowdin.mdx | 0 .../i18n/i18n-git.md | 4 +- .../i18n/i18n-introduction.md | 2 +- .../i18n/i18n-tutorial.md | 6 +- .../installation.md | 62 +++- .../introduction.md | 16 + .../migration/migration-automated.md | 0 .../migration/migration-manual.md | 2 +- .../migration/migration-overview.md | 2 +- .../migration/migration-translated-sites.md | 0 .../migration/migration-versioned-sites.md | 0 .../playground.mdx | 0 .../search.md | 17 +- .../seo.md | 0 .../static-assets.md | 8 +- .../styling-layout.md | 24 +- .../version-2.0.0-beta.17/swizzling.md | 324 ++++++++++++++++++ .../typescript-support.md | 2 +- .../using-plugins.md | 6 +- ...on => version-2.0.0-beta.17-sidebars.json} | 5 +- website/versions.json | 4 +- website/versionsArchived.json | 1 + 90 files changed, 1140 insertions(+), 464 deletions(-) delete mode 100644 website/versioned_docs/version-2.0.0-beta.15/_partials/swizzleWarning.mdx delete mode 100644 website/versioned_docs/version-2.0.0-beta.15/advanced/swizzling.md rename website/versioned_docs/{version-2.0.0-beta.15 => version-2.0.0-beta.17}/advanced/architecture.md (100%) create mode 100644 website/versioned_docs/version-2.0.0-beta.17/advanced/client.md rename website/versioned_docs/{version-2.0.0-beta.15 => version-2.0.0-beta.17}/advanced/index.md (100%) rename website/versioned_docs/{version-2.0.0-beta.15 => version-2.0.0-beta.17}/advanced/plugins.md (98%) rename website/versioned_docs/{version-2.0.0-beta.15 => version-2.0.0-beta.17}/advanced/routing.md (96%) rename website/versioned_docs/{version-2.0.0-beta.15 => version-2.0.0-beta.17}/advanced/ssg.md (97%) rename website/versioned_docs/{version-2.0.0-beta.15 => version-2.0.0-beta.17}/api/docusaurus.config.js.md (96%) rename website/versioned_docs/{version-2.0.0-beta.15 => version-2.0.0-beta.17}/api/plugin-methods/README.md (98%) rename website/versioned_docs/{version-2.0.0-beta.15 => version-2.0.0-beta.17}/api/plugin-methods/_category_.yml (100%) rename website/versioned_docs/{version-2.0.0-beta.15 => version-2.0.0-beta.17}/api/plugin-methods/extend-infrastructure.md (100%) rename website/versioned_docs/{version-2.0.0-beta.15 => version-2.0.0-beta.17}/api/plugin-methods/i18n-lifecycles.md (100%) rename website/versioned_docs/{version-2.0.0-beta.15 => version-2.0.0-beta.17}/api/plugin-methods/lifecycle-apis.md (98%) rename website/versioned_docs/{version-2.0.0-beta.15 => version-2.0.0-beta.17}/api/plugin-methods/static-methods.md (100%) rename website/versioned_docs/{version-2.0.0-beta.15 => version-2.0.0-beta.17}/api/plugins/_category_.yml (100%) rename website/versioned_docs/{version-2.0.0-beta.15 => version-2.0.0-beta.17}/api/plugins/overview.md (100%) rename website/versioned_docs/{version-2.0.0-beta.15 => version-2.0.0-beta.17}/api/plugins/plugin-client-redirects.md (100%) rename website/versioned_docs/{version-2.0.0-beta.15 => version-2.0.0-beta.17}/api/plugins/plugin-content-blog.md (99%) rename website/versioned_docs/{version-2.0.0-beta.15 => version-2.0.0-beta.17}/api/plugins/plugin-content-docs.md (98%) rename website/versioned_docs/{version-2.0.0-beta.15 => version-2.0.0-beta.17}/api/plugins/plugin-content-pages.md (100%) rename website/versioned_docs/{version-2.0.0-beta.15 => version-2.0.0-beta.17}/api/plugins/plugin-debug.md (100%) rename website/versioned_docs/{version-2.0.0-beta.15 => version-2.0.0-beta.17}/api/plugins/plugin-google-analytics.md (100%) rename website/versioned_docs/{version-2.0.0-beta.15 => version-2.0.0-beta.17}/api/plugins/plugin-google-gtag.md (100%) rename website/versioned_docs/{version-2.0.0-beta.15 => version-2.0.0-beta.17}/api/plugins/plugin-ideal-image.md (100%) rename website/versioned_docs/{version-2.0.0-beta.15 => version-2.0.0-beta.17}/api/plugins/plugin-pwa.md (100%) rename website/versioned_docs/{version-2.0.0-beta.15 => version-2.0.0-beta.17}/api/plugins/plugin-sitemap.md (97%) rename website/versioned_docs/{version-2.0.0-beta.15 => version-2.0.0-beta.17}/api/themes/_category_.yml (100%) rename website/versioned_docs/{version-2.0.0-beta.15 => version-2.0.0-beta.17}/api/themes/overview.md (100%) rename website/versioned_docs/{version-2.0.0-beta.15 => version-2.0.0-beta.17}/api/themes/theme-classic.md (100%) rename website/versioned_docs/{version-2.0.0-beta.15 => version-2.0.0-beta.17}/api/themes/theme-configuration.md (97%) rename website/versioned_docs/{version-2.0.0-beta.15 => version-2.0.0-beta.17}/api/themes/theme-live-codeblock.md (100%) rename website/versioned_docs/{version-2.0.0-beta.15 => version-2.0.0-beta.17}/api/themes/theme-search-algolia.md (79%) rename website/versioned_docs/{version-2.0.0-beta.15 => version-2.0.0-beta.17}/assets/docusaurus-asset-example-banner.png (100%) rename website/versioned_docs/{version-2.0.0-beta.15 => version-2.0.0-beta.17}/assets/docusaurus-asset-example.docx (100%) rename website/versioned_docs/{version-2.0.0-beta.15 => version-2.0.0-beta.17}/assets/docusaurus-asset-example.xyz (100%) rename website/versioned_docs/{version-2.0.0-beta.15 => version-2.0.0-beta.17}/blog.mdx (92%) rename website/versioned_docs/{version-2.0.0-beta.15 => version-2.0.0-beta.17}/browser-support.md (100%) rename website/versioned_docs/{version-2.0.0-beta.15 => version-2.0.0-beta.17}/cli.md (81%) rename website/versioned_docs/{version-2.0.0-beta.15 => version-2.0.0-beta.17}/configuration.md (100%) rename website/versioned_docs/{version-2.0.0-beta.15 => version-2.0.0-beta.17}/deployment.mdx (89%) rename website/versioned_docs/{version-2.0.0-beta.15 => version-2.0.0-beta.17}/docusaurus-core.md (100%) rename website/versioned_docs/{version-2.0.0-beta.15 => version-2.0.0-beta.17}/guides/creating-pages.md (100%) rename website/versioned_docs/{version-2.0.0-beta.15 => version-2.0.0-beta.17}/guides/docs/docs-create-doc.mdx (100%) rename website/versioned_docs/{version-2.0.0-beta.15 => version-2.0.0-beta.17}/guides/docs/docs-introduction.md (100%) rename website/versioned_docs/{version-2.0.0-beta.15 => version-2.0.0-beta.17}/guides/docs/docs-markdown-features.mdx (92%) rename website/versioned_docs/{version-2.0.0-beta.15 => version-2.0.0-beta.17}/guides/docs/docs-multi-instance.mdx (100%) rename website/versioned_docs/{version-2.0.0-beta.15 => version-2.0.0-beta.17}/guides/docs/sidebar/autogenerated.md (91%) rename website/versioned_docs/{version-2.0.0-beta.15 => version-2.0.0-beta.17}/guides/docs/sidebar/index.md (88%) rename website/versioned_docs/{version-2.0.0-beta.15 => version-2.0.0-beta.17}/guides/docs/sidebar/items.md (75%) rename website/versioned_docs/{version-2.0.0-beta.15 => version-2.0.0-beta.17}/guides/docs/sidebar/multiple-sidebars.md (100%) rename website/versioned_docs/{version-2.0.0-beta.15 => version-2.0.0-beta.17}/guides/docs/versioning.md (98%) rename website/versioned_docs/{version-2.0.0-beta.15 => version-2.0.0-beta.17}/guides/markdown-features/_markdown-partial-example.mdx (100%) rename website/versioned_docs/{version-2.0.0-beta.15 => version-2.0.0-beta.17}/guides/markdown-features/markdown-features-admonitions.mdx (98%) rename website/versioned_docs/{version-2.0.0-beta.15 => version-2.0.0-beta.17}/guides/markdown-features/markdown-features-assets.mdx (83%) rename website/versioned_docs/{version-2.0.0-beta.15 => version-2.0.0-beta.17}/guides/markdown-features/markdown-features-code-blocks.mdx (99%) rename website/versioned_docs/{version-2.0.0-beta.15 => version-2.0.0-beta.17}/guides/markdown-features/markdown-features-head-metadata.mdx (100%) rename website/versioned_docs/{version-2.0.0-beta.15 => version-2.0.0-beta.17}/guides/markdown-features/markdown-features-headings.mdx (100%) rename website/versioned_docs/{version-2.0.0-beta.15 => version-2.0.0-beta.17}/guides/markdown-features/markdown-features-inline-toc.mdx (59%) rename website/versioned_docs/{version-2.0.0-beta.15 => version-2.0.0-beta.17}/guides/markdown-features/markdown-features-intro.mdx (97%) rename website/versioned_docs/{version-2.0.0-beta.15 => version-2.0.0-beta.17}/guides/markdown-features/markdown-features-math-equations.mdx (81%) rename website/versioned_docs/{version-2.0.0-beta.15 => version-2.0.0-beta.17}/guides/markdown-features/markdown-features-plugins.mdx (99%) rename website/versioned_docs/{version-2.0.0-beta.15 => version-2.0.0-beta.17}/guides/markdown-features/markdown-features-react.mdx (98%) rename website/versioned_docs/{version-2.0.0-beta.15 => version-2.0.0-beta.17}/guides/markdown-features/markdown-features-react.module.css (100%) rename website/versioned_docs/{version-2.0.0-beta.15 => version-2.0.0-beta.17}/guides/markdown-features/markdown-features-tabs-styles.module.css (100%) rename website/versioned_docs/{version-2.0.0-beta.15 => version-2.0.0-beta.17}/guides/markdown-features/markdown-features-tabs.mdx (98%) rename website/versioned_docs/{version-2.0.0-beta.15 => version-2.0.0-beta.17}/guides/whats-next.md (100%) rename website/versioned_docs/{version-2.0.0-beta.15 => version-2.0.0-beta.17}/i18n/i18n-crowdin.mdx (100%) rename website/versioned_docs/{version-2.0.0-beta.15 => version-2.0.0-beta.17}/i18n/i18n-git.md (98%) rename website/versioned_docs/{version-2.0.0-beta.15 => version-2.0.0-beta.17}/i18n/i18n-introduction.md (99%) rename website/versioned_docs/{version-2.0.0-beta.15 => version-2.0.0-beta.17}/i18n/i18n-tutorial.md (98%) rename website/versioned_docs/{version-2.0.0-beta.15 => version-2.0.0-beta.17}/installation.md (83%) rename website/versioned_docs/{version-2.0.0-beta.15 => version-2.0.0-beta.17}/introduction.md (94%) rename website/versioned_docs/{version-2.0.0-beta.15 => version-2.0.0-beta.17}/migration/migration-automated.md (100%) rename website/versioned_docs/{version-2.0.0-beta.15 => version-2.0.0-beta.17}/migration/migration-manual.md (99%) rename website/versioned_docs/{version-2.0.0-beta.15 => version-2.0.0-beta.17}/migration/migration-overview.md (98%) rename website/versioned_docs/{version-2.0.0-beta.15 => version-2.0.0-beta.17}/migration/migration-translated-sites.md (100%) rename website/versioned_docs/{version-2.0.0-beta.15 => version-2.0.0-beta.17}/migration/migration-versioned-sites.md (100%) rename website/versioned_docs/{version-2.0.0-beta.15 => version-2.0.0-beta.17}/playground.mdx (100%) rename website/versioned_docs/{version-2.0.0-beta.15 => version-2.0.0-beta.17}/search.md (95%) rename website/versioned_docs/{version-2.0.0-beta.15 => version-2.0.0-beta.17}/seo.md (100%) rename website/versioned_docs/{version-2.0.0-beta.15 => version-2.0.0-beta.17}/static-assets.md (97%) rename website/versioned_docs/{version-2.0.0-beta.15 => version-2.0.0-beta.17}/styling-layout.md (86%) create mode 100644 website/versioned_docs/version-2.0.0-beta.17/swizzling.md rename website/versioned_docs/{version-2.0.0-beta.15 => version-2.0.0-beta.17}/typescript-support.md (89%) rename website/versioned_docs/{version-2.0.0-beta.15 => version-2.0.0-beta.17}/using-plugins.md (98%) rename website/versioned_sidebars/{version-2.0.0-beta.15-sidebars.json => version-2.0.0-beta.17-sidebars.json} (98%) diff --git a/CHANGELOG.md b/CHANGELOG.md index 7eee4e1962b7..9992b28ec895 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,80 @@ # Docusaurus 2 Changelog +## 2.0.0-beta.17 (2022-03-03) + +#### :rocket: New Feature + +- `docusaurus-plugin-content-blog`, `docusaurus-theme-classic` + - [#6783](https://github.com/facebook/docusaurus/pull/6783) feat: allow blog authors email ([@Josh-Cena](https://github.com/Josh-Cena)) + +#### :boom: Breaking Change + +- `docusaurus-theme-classic`, `docusaurus-theme-common` + - [#6771](https://github.com/facebook/docusaurus/pull/6771) refactor(theme-classic): replace color mode toggle with button; remove switchConfig ([@Josh-Cena](https://github.com/Josh-Cena)) + +#### :bug: Bug Fix + +- `docusaurus-theme-classic` + - [#6827](https://github.com/facebook/docusaurus/pull/6827) fix(theme-classic): restore docusaurus search meta ([@slorber](https://github.com/slorber)) + - [#6767](https://github.com/facebook/docusaurus/pull/6767) fix(theme-classic): allow code tags containing inline elements to stay inline ([@Josh-Cena](https://github.com/Josh-Cena)) +- `docusaurus-theme-common` + - [#6824](https://github.com/facebook/docusaurus/pull/6824) fix(theme-common): breadcrumbs home bug in docs-only ([@slorber](https://github.com/slorber)) + - [#6816](https://github.com/facebook/docusaurus/pull/6816) fix(theme-common): docs breadcrumbs not working with baseUrl ([@slorber](https://github.com/slorber)) +- `docusaurus-plugin-content-docs` + - [#6700](https://github.com/facebook/docusaurus/pull/6700) fix(content-docs): always sort autogenerated sidebar items by file/folder name by default ([@Josh-Cena](https://github.com/Josh-Cena)) +- `docusaurus` + - [#6812](https://github.com/facebook/docusaurus/pull/6812) fix(core): remove hash/query when filtering existing files for broken link check ([@Josh-Cena](https://github.com/Josh-Cena)) +- `docusaurus-mdx-loader` + - [#6779](https://github.com/facebook/docusaurus/pull/6779) fix(mdx-loader): suppress image reading warning in Yarn PnP; log warning instead of error ([@Josh-Cena](https://github.com/Josh-Cena)) +- `create-docusaurus` + - [#6762](https://github.com/facebook/docusaurus/pull/6762) fix(create): update broken SVG paths in templates ([@anicholls](https://github.com/anicholls)) + +#### :nail_care: Polish + +- `docusaurus-theme-common` + - [#6826](https://github.com/facebook/docusaurus/pull/6826) refactor(theme-common): unify missing context errors ([@Josh-Cena](https://github.com/Josh-Cena)) +- `docusaurus-theme-classic`, `docusaurus-theme-common` + - [#6771](https://github.com/facebook/docusaurus/pull/6771) refactor(theme-classic): replace color mode toggle with button; remove switchConfig ([@Josh-Cena](https://github.com/Josh-Cena)) +- `docusaurus-theme-classic` + - [#6769](https://github.com/facebook/docusaurus/pull/6769) refactor(theme-classic): use Material icon for language dropdown ([@Josh-Cena](https://github.com/Josh-Cena)) +- `docusaurus-mdx-loader` + - [#6792](https://github.com/facebook/docusaurus/pull/6792) fix(mdx-loader): allow image paths to be URL encoded ([@Josh-Cena](https://github.com/Josh-Cena)) + +#### :memo: Documentation + +- Other + - [#6825](https://github.com/facebook/docusaurus/pull/6825) docs: Adds Netlify one click deploy to README ([@PatelN123](https://github.com/PatelN123)) + - [#6818](https://github.com/facebook/docusaurus/pull/6818) docs: add deploy with vercel button to README ([@PatelN123](https://github.com/PatelN123)) + - [#6817](https://github.com/facebook/docusaurus/pull/6817) docs: fix broken links ([@PatelN123](https://github.com/PatelN123)) + - [#6811](https://github.com/facebook/docusaurus/pull/6811) docs: add homepage banner in support of Ukraine ([@dmitryvinn](https://github.com/dmitryvinn)) + - [#6813](https://github.com/facebook/docusaurus/pull/6813) docs: mark dyte as opensource in showcase ([@vaibhavshn](https://github.com/vaibhavshn)) + - [#6776](https://github.com/facebook/docusaurus/pull/6776) docs: make GitHub actions explanation aligned with the code ([@arifszn](https://github.com/arifszn)) + - [#6772](https://github.com/facebook/docusaurus/pull/6772) docs: add basic documentation about client modules ([@Josh-Cena](https://github.com/Josh-Cena)) +- `create-docusaurus` + - [#6815](https://github.com/facebook/docusaurus/pull/6815) fix: consistently use `max-width: 996px` in media queries ([@dstotijn](https://github.com/dstotijn)) + +#### :house: Internal + +- `docusaurus-plugin-content-docs` + - [#6821](https://github.com/facebook/docusaurus/pull/6821) test(content-docs): refactor navigation test snapshot ([@Josh-Cena](https://github.com/Josh-Cena)) +- Other + - [#6768](https://github.com/facebook/docusaurus/pull/6768) test: add TypeScript template to E2E test matrix ([@Josh-Cena](https://github.com/Josh-Cena)) +- `docusaurus-utils` + - [#6773](https://github.com/facebook/docusaurus/pull/6773) refactor(utils): categorize functions into separate files ([@Josh-Cena](https://github.com/Josh-Cena)) +- `docusaurus-migrate` + - [#6761](https://github.com/facebook/docusaurus/pull/6761) chore: various internal fixes ([@Josh-Cena](https://github.com/Josh-Cena)) + +#### Committers: 8 + +- Alex Nicholls ([@anicholls](https://github.com/anicholls)) +- Ariful Alam ([@arifszn](https://github.com/arifszn)) +- David Stotijn ([@dstotijn](https://github.com/dstotijn)) +- Dmitry Vinnik ([@dmitryvinn](https://github.com/dmitryvinn)) +- Joshua Chen ([@Josh-Cena](https://github.com/Josh-Cena)) +- Nayan Patel ([@PatelN123](https://github.com/PatelN123)) +- Sébastien Lorber ([@slorber](https://github.com/slorber)) +- Vaibhav Shinde ([@vaibhavshn](https://github.com/vaibhavshn)) + ## 2.0.0-beta.16 (2022-02-25) #### :rocket: New Feature diff --git a/website/versioned_docs/version-2.0.0-beta.15/_partials/swizzleWarning.mdx b/website/versioned_docs/version-2.0.0-beta.15/_partials/swizzleWarning.mdx deleted file mode 100644 index e2aec479dd28..000000000000 --- a/website/versioned_docs/version-2.0.0-beta.15/_partials/swizzleWarning.mdx +++ /dev/null @@ -1,5 +0,0 @@ -:::caution - -We discourage swizzling of components during the Docusaurus 2 beta phase. The theme components APIs are likely to evolve and have breaking changes. If possible, stick with the default appearance for now. - -::: diff --git a/website/versioned_docs/version-2.0.0-beta.15/advanced/swizzling.md b/website/versioned_docs/version-2.0.0-beta.15/advanced/swizzling.md deleted file mode 100644 index 4163bb6e632b..000000000000 --- a/website/versioned_docs/version-2.0.0-beta.15/advanced/swizzling.md +++ /dev/null @@ -1,195 +0,0 @@ ---- -description: Customize your site's appearance through creating your own theme components ---- - -# Swizzling - -In this section, we will introduce how customization of layout is done in Docusaurus. - -> Déja vu...? - -This section is similar to [Styling and Layout](../styling-layout.md), but this time, we are going to write more code and go deeper into the internals instead of playing with stylesheets. We will talk about a central concept in Docusaurus customization: **swizzling**, from how to swizzle, to how it works under the hood. - -We know you are busy, so we will start with the "how" before going into the "why". - -## Swizzling - -```mdx-code-block -import SwizzleWarning from "../_partials/swizzleWarning.mdx" - - -``` - -Docusaurus Themes' components are designed to be replaceable. The replacing is called "swizzle". In Objective C, method swizzling is the process of changing the implementation of an existing selector (method). **In the context of a website, component swizzling means providing an alternative component that takes precedence over the component provided by the theme.** (To gain a deeper understanding of this, you have to understand [how theme components are resolved](#theme-aliases)). To help you get started, we created a command called `docusaurus swizzle`. - -### Ejecting theme components - -To eject a component provided by the theme, run the following command in your doc site: - -```bash npm2yarn -npm run swizzle [theme name] [component name] -``` - -As an example, to swizzle the `