diff --git a/website/versioned_docs/version-2.0.0-beta.6/guides/docs/docs-create-doc.mdx b/website/versioned_docs/version-2.0.0-beta.8/guides/docs/docs-create-doc.mdx
similarity index 75%
rename from website/versioned_docs/version-2.0.0-beta.6/guides/docs/docs-create-doc.mdx
rename to website/versioned_docs/version-2.0.0-beta.8/guides/docs/docs-create-doc.mdx
index ab4d584d1555..f068973ff762 100644
--- a/website/versioned_docs/version-2.0.0-beta.6/guides/docs/docs-create-doc.mdx
+++ b/website/versioned_docs/version-2.0.0-beta.8/guides/docs/docs-create-doc.mdx
@@ -35,7 +35,9 @@ will show up on the table of contents on the upper right
So that your users will know what this page is all about without scrolling down or even without reading too much.
-### Only h2 and h3 will be in the toc
+### Only h2 and h3 will be in the toc by default.
+
+You can configure the TOC heading levels either per-document or in the theme configuration.
The headers are well-spaced so that the hierarchy is clear.
@@ -67,7 +69,9 @@ will show up on the table of contents on the upper right
So that your users will know what this page is all about without scrolling down or even without reading too much.
-
Only h2 and h3 will be in the toc
+
Only h2 and h3 will be in the toc by default.
+
+You can configure the TOC heading levels either per-document or in the theme configuration.
The headers are well-spaced so that the hierarchy is clear.
@@ -84,11 +88,18 @@ With {#custom-id} syntax you can set your own header id.
```
+:::note
+
+All files prefixed with an underscore (`_`) under the `docs` directory are treated as "partial" pages and will be ignored by default.
+
+Read more about [importing partial pages](../markdown-features/markdown-features-react.mdx#importing-markdown).
+
+:::
+
## Doc tags {#doc-tags}
Optionally, you can add tags to your doc pages, which introduces another dimension of categorization in addition to the [docs sidebar](./sidebar.md). Tags are passed in the front matter as a list of labels:
-
```yml "your-doc-page.md"
---
id: doc-with-tags
@@ -98,4 +109,11 @@ tags:
- Getting started
---
```
-
+
+:::tip
+
+Tags can also be declared with `tags [Demo, Getting started]`
+
+Read more about all the possible [Yaml array syntaxes](https://www.w3schools.io/file/yaml-arrays/).
+
+:::
diff --git a/website/versioned_docs/version-2.0.0-beta.6/guides/docs/docs-introduction.md b/website/versioned_docs/version-2.0.0-beta.8/guides/docs/docs-introduction.md
similarity index 100%
rename from website/versioned_docs/version-2.0.0-beta.6/guides/docs/docs-introduction.md
rename to website/versioned_docs/version-2.0.0-beta.8/guides/docs/docs-introduction.md
diff --git a/website/versioned_docs/version-2.0.0-beta.6/guides/docs/docs-markdown-features.mdx b/website/versioned_docs/version-2.0.0-beta.8/guides/docs/docs-markdown-features.mdx
similarity index 100%
rename from website/versioned_docs/version-2.0.0-beta.6/guides/docs/docs-markdown-features.mdx
rename to website/versioned_docs/version-2.0.0-beta.8/guides/docs/docs-markdown-features.mdx
diff --git a/website/versioned_docs/version-2.0.0-beta.6/guides/docs/docs-multi-instance.mdx b/website/versioned_docs/version-2.0.0-beta.8/guides/docs/docs-multi-instance.mdx
similarity index 100%
rename from website/versioned_docs/version-2.0.0-beta.6/guides/docs/docs-multi-instance.mdx
rename to website/versioned_docs/version-2.0.0-beta.8/guides/docs/docs-multi-instance.mdx
diff --git a/website/versioned_docs/version-2.0.0-beta.6/guides/docs/sidebar.md b/website/versioned_docs/version-2.0.0-beta.8/guides/docs/sidebar.md
similarity index 98%
rename from website/versioned_docs/version-2.0.0-beta.6/guides/docs/sidebar.md
rename to website/versioned_docs/version-2.0.0-beta.8/guides/docs/sidebar.md
index 47aecb43f240..dfc8c4175bef 100644
--- a/website/versioned_docs/version-2.0.0-beta.6/guides/docs/sidebar.md
+++ b/website/versioned_docs/version-2.0.0-beta.8/guides/docs/sidebar.md
@@ -1,6 +1,7 @@
---
id: sidebar
title: Sidebar
+toc_max_heading_level: 4
slug: /sidebar
---
@@ -173,6 +174,7 @@ type SidebarItemDoc =
type: 'doc';
id: string;
label: string; // Sidebar label text
+ className?: string; // Class name for sidebar label
}
// Shorthand syntax
@@ -244,6 +246,7 @@ type SidebarItemLink = {
type: 'link';
label: string;
href: string;
+ className?: string;
};
```
@@ -282,6 +285,7 @@ type SidebarItemCategory = {
type: 'category';
label: string; // Sidebar label text.
items: SidebarItem[]; // Array of sidebar items.
+ className?: string;
// Category options:
collapsible: boolean; // Set the category to be collapsible
@@ -519,7 +523,8 @@ This is the easy tutorial!
```json title="docs/tutorials/_category_.json"
{
"label": "Tutorial",
- "position": 3
+ "position": 3,
+ "className": "red"
}
```
diff --git a/website/versioned_docs/version-2.0.0-beta.6/guides/docs/versioning.md b/website/versioned_docs/version-2.0.0-beta.8/guides/docs/versioning.md
similarity index 100%
rename from website/versioned_docs/version-2.0.0-beta.6/guides/docs/versioning.md
rename to website/versioned_docs/version-2.0.0-beta.8/guides/docs/versioning.md
diff --git a/website/versioned_docs/version-2.0.0-beta.6/guides/markdown-features/_markdown-partial-example.mdx b/website/versioned_docs/version-2.0.0-beta.8/guides/markdown-features/_markdown-partial-example.mdx
similarity index 100%
rename from website/versioned_docs/version-2.0.0-beta.6/guides/markdown-features/_markdown-partial-example.mdx
rename to website/versioned_docs/version-2.0.0-beta.8/guides/markdown-features/_markdown-partial-example.mdx
diff --git a/website/versioned_docs/version-2.0.0-beta.6/guides/markdown-features/markdown-features-admonitions.mdx b/website/versioned_docs/version-2.0.0-beta.8/guides/markdown-features/markdown-features-admonitions.mdx
similarity index 72%
rename from website/versioned_docs/version-2.0.0-beta.6/guides/markdown-features/markdown-features-admonitions.mdx
rename to website/versioned_docs/version-2.0.0-beta.8/guides/markdown-features/markdown-features-admonitions.mdx
index ccd7ae68ff56..69784e5dc131 100644
--- a/website/versioned_docs/version-2.0.0-beta.6/guides/markdown-features/markdown-features-admonitions.mdx
+++ b/website/versioned_docs/version-2.0.0-beta.8/guides/markdown-features/markdown-features-admonitions.mdx
@@ -89,23 +89,17 @@ Some **content** with _markdown_ `syntax`.
You can use MDX inside admonitions too!
-```mdx
+```jsx
import Tabs from '@theme/Tabs';
import TabItem from '@theme/TabItem';
:::tip Use tabs in admonitions
-
- This is an apple π
- This is an orange π
- This is a banana π
+
+ This is an apple π
+ This is an orange π
+ This is a banana π
:::
@@ -119,16 +113,10 @@ import TabItem from '@theme/TabItem';
:::tip Use tabs in admonitions
```mdx-code-block
-
- This is an apple π
- This is an orange π
- This is a banana π
+
+ This is an apple π
+ This is an orange π
+ This is a banana π
```
diff --git a/website/versioned_docs/version-2.0.0-beta.6/guides/markdown-features/markdown-features-assets.mdx b/website/versioned_docs/version-2.0.0-beta.8/guides/markdown-features/markdown-features-assets.mdx
similarity index 97%
rename from website/versioned_docs/version-2.0.0-beta.6/guides/markdown-features/markdown-features-assets.mdx
rename to website/versioned_docs/version-2.0.0-beta.8/guides/markdown-features/markdown-features-assets.mdx
index 8e0fa107f263..ae69e768ac90 100644
--- a/website/versioned_docs/version-2.0.0-beta.6/guides/markdown-features/markdown-features-assets.mdx
+++ b/website/versioned_docs/version-2.0.0-beta.8/guides/markdown-features/markdown-features-assets.mdx
@@ -119,7 +119,7 @@ html[data-theme='dark'] .themedDocusaurus [fill='#FFFF50'] {
## Themed Images {#themed-images}
-Docusaurus supports themed images: the `ThemedImage` component (included in the classic/bootstrap themes) allows you to switch the image source based on the current theme.
+Docusaurus supports themed images: the `ThemedImage` component (included in the themes) allows you to switch the image source based on the current theme.
```jsx {5-8}
import ThemedImage from '@theme/ThemedImage';
diff --git a/website/versioned_docs/version-2.0.0-beta.6/guides/markdown-features/markdown-features-code-blocks.mdx b/website/versioned_docs/version-2.0.0-beta.8/guides/markdown-features/markdown-features-code-blocks.mdx
similarity index 86%
rename from website/versioned_docs/version-2.0.0-beta.6/guides/markdown-features/markdown-features-code-blocks.mdx
rename to website/versioned_docs/version-2.0.0-beta.8/guides/markdown-features/markdown-features-code-blocks.mdx
index 7fedb93feca3..5c355f1e4612 100644
--- a/website/versioned_docs/version-2.0.0-beta.6/guides/markdown-features/markdown-features-code-blocks.mdx
+++ b/website/versioned_docs/version-2.0.0-beta.8/guides/markdown-features/markdown-features-code-blocks.mdx
@@ -374,15 +374,8 @@ The following example is how you can have multi-language code tabs in your docs.
import Tabs from '@theme/Tabs';
import TabItem from '@theme/TabItem';
-
-
+
+
```js
function helloWorld() {
@@ -391,7 +384,7 @@ function helloWorld() {
```
-
+
```py
def hello_world():
@@ -399,7 +392,7 @@ def hello_world():
```
-
+
```java
class HelloWorld {
@@ -416,15 +409,8 @@ class HelloWorld {
And you will get the following:
````mdx-code-block
-
-
+
+
```js
function helloWorld() {
@@ -433,7 +419,7 @@ function helloWorld() {
```
-
+
```py
def hello_world():
@@ -441,7 +427,7 @@ def hello_world():
```
-
+
```java
class HelloWorld {
@@ -455,6 +441,51 @@ class HelloWorld {
````
-You may want to implement your own `` abstraction if you find the above approach too verbose. We might just implement one in future for convenience.
-
If you have multiple of these multi-language code tabs, and you want to sync the selection across the tab instances, refer to the [Syncing tab choices section](markdown-features-tabs.mdx#syncing-tab-choices).
+
+### Docusaurus npm2yarn remark plugin {#npm2yarn-remark-plugin}
+
+Displaying CLI commands in both NPM and Yarn is a very common need, for example:
+
+```bash npm2yarn
+npm install @docusaurus/remark-plugin-npm2yarn
+```
+
+Docusaurus provides such a utility out of the box, freeing you from using the `Tabs` component every time. To enable this feature, first install the `@docusaurus/remark-plugin-npm2yarn` package as above, and then in `docusaurus.config.js`, for the plugins where you need this feature (doc, blog, pages, etc.), register it in the `remarkPlugins` option. (See [Docs configuration](../../api/plugins/plugin-content-docs.md#ex-config) for more details on configuration format)
+
+```js title="docusaurus.config.js"
+module.exports = {
+ // ...
+ presets: [
+ [
+ '@docusaurus/preset-classic',
+ {
+ docs: {
+ // highlight-start
+ remarkPlugins: [
+ [require('@docusaurus/remark-plugin-npm2yarn'), {sync: true}],
+ ],
+ // highlight-end
+ },
+ pages: {
+ // highlight-next-line
+ remarkPlugins: [require('@docusaurus/remark-plugin-npm2yarn')],
+ },
+ blog: {
+ // ...
+ },
+ },
+ ],
+ ],
+};
+```
+
+And then use it by adding the `npm2yarn` key to the code block:
+
+````md
+```bash npm2yarn
+npm install @docusaurus/remark-plugin-npm2yarn
+```
+````
+
+Using the `{sync: true}` option would make all tab choices synced. Because the choice is stored under the same namespace `npm2yarn`, different `npm2yarn` plugin instances would also sync their choices.
diff --git a/website/versioned_docs/version-2.0.0-beta.6/guides/markdown-features/markdown-features-head-metadatas.mdx b/website/versioned_docs/version-2.0.0-beta.8/guides/markdown-features/markdown-features-head-metadatas.mdx
similarity index 100%
rename from website/versioned_docs/version-2.0.0-beta.6/guides/markdown-features/markdown-features-head-metadatas.mdx
rename to website/versioned_docs/version-2.0.0-beta.8/guides/markdown-features/markdown-features-head-metadatas.mdx
diff --git a/website/versioned_docs/version-2.0.0-beta.6/guides/markdown-features/markdown-features-headings.mdx b/website/versioned_docs/version-2.0.0-beta.8/guides/markdown-features/markdown-features-headings.mdx
similarity index 100%
rename from website/versioned_docs/version-2.0.0-beta.6/guides/markdown-features/markdown-features-headings.mdx
rename to website/versioned_docs/version-2.0.0-beta.8/guides/markdown-features/markdown-features-headings.mdx
diff --git a/website/versioned_docs/version-2.0.0-beta.6/guides/markdown-features/markdown-features-inline-toc.mdx b/website/versioned_docs/version-2.0.0-beta.8/guides/markdown-features/markdown-features-inline-toc.mdx
similarity index 90%
rename from website/versioned_docs/version-2.0.0-beta.6/guides/markdown-features/markdown-features-inline-toc.mdx
rename to website/versioned_docs/version-2.0.0-beta.8/guides/markdown-features/markdown-features-inline-toc.mdx
index 5f839da3b835..3726f048421f 100644
--- a/website/versioned_docs/version-2.0.0-beta.6/guides/markdown-features/markdown-features-inline-toc.mdx
+++ b/website/versioned_docs/version-2.0.0-beta.8/guides/markdown-features/markdown-features-inline-toc.mdx
@@ -13,7 +13,9 @@ But it is also possible to display an inline table of contents directly inside a
## Full table of contents {#full-table-of-contents}
-The `toc` variable is available in any MDX document, and contain all the top level headings of a MDX document.
+The `toc` variable is available in any MDX document, and contains all the headings of a MDX document.
+
+By default, only `h2` and `h3` headings are displayed in the TOC. You can change which heading levels are visible by setting `minHeadingLevel` or `maxHeadingLevel`.
```jsx
import TOCInline from '@theme/TOCInline';
@@ -40,6 +42,7 @@ type TOCItem = {
value: string;
id: string;
children: TOCItem[];
+ level: number;
};
```
diff --git a/website/versioned_docs/version-2.0.0-beta.6/guides/markdown-features/markdown-features-intro.mdx b/website/versioned_docs/version-2.0.0-beta.8/guides/markdown-features/markdown-features-intro.mdx
similarity index 100%
rename from website/versioned_docs/version-2.0.0-beta.6/guides/markdown-features/markdown-features-intro.mdx
rename to website/versioned_docs/version-2.0.0-beta.8/guides/markdown-features/markdown-features-intro.mdx
diff --git a/website/versioned_docs/version-2.0.0-beta.6/guides/markdown-features/markdown-features-math-equations.mdx b/website/versioned_docs/version-2.0.0-beta.8/guides/markdown-features/markdown-features-math-equations.mdx
similarity index 100%
rename from website/versioned_docs/version-2.0.0-beta.6/guides/markdown-features/markdown-features-math-equations.mdx
rename to website/versioned_docs/version-2.0.0-beta.8/guides/markdown-features/markdown-features-math-equations.mdx
diff --git a/website/versioned_docs/version-2.0.0-beta.6/guides/markdown-features/markdown-features-plugins.mdx b/website/versioned_docs/version-2.0.0-beta.8/guides/markdown-features/markdown-features-plugins.mdx
similarity index 100%
rename from website/versioned_docs/version-2.0.0-beta.6/guides/markdown-features/markdown-features-plugins.mdx
rename to website/versioned_docs/version-2.0.0-beta.8/guides/markdown-features/markdown-features-plugins.mdx
diff --git a/website/versioned_docs/version-2.0.0-beta.6/guides/markdown-features/markdown-features-react.mdx b/website/versioned_docs/version-2.0.0-beta.8/guides/markdown-features/markdown-features-react.mdx
similarity index 94%
rename from website/versioned_docs/version-2.0.0-beta.6/guides/markdown-features/markdown-features-react.mdx
rename to website/versioned_docs/version-2.0.0-beta.8/guides/markdown-features/markdown-features-react.mdx
index 4f920c5d201a..08aed08e3a77 100644
--- a/website/versioned_docs/version-2.0.0-beta.6/guides/markdown-features/markdown-features-react.mdx
+++ b/website/versioned_docs/version-2.0.0-beta.8/guides/markdown-features/markdown-features-react.mdx
@@ -11,7 +11,7 @@ import BrowserWindow from '@site/src/components/BrowserWindow';
## Using JSX in Markdown {#using-jsx-in-markdown}
-Docusaurus has built-in support for [MDX](https://mdxjs.com/), which allows you to write JSX within your Markdown files and render them as React components.
+Docusaurus has built-in support for [MDX v1](https://mdxjs.com/), which allows you to write JSX within your Markdown files and render them as React components.
:::note
@@ -23,7 +23,7 @@ While both `.md` and `.mdx` files are parsed using MDX, some of the syntax are t
MDX is not [100% compatible with CommonMark](https://github.com/facebook/docusaurus/issues/3018).
-Use the **[MDX playground](https://mdxjs.com/playground)** to ensure that your syntax is valid MDX.
+Use the **[MDX playground](https://mdx-git-renovate-babel-monorepo-mdx.vercel.app/playground)** to ensure that your syntax is valid MDX.
:::
diff --git a/website/versioned_docs/version-2.0.0-beta.6/guides/markdown-features/markdown-features-tabs.mdx b/website/versioned_docs/version-2.0.0-beta.8/guides/markdown-features/markdown-features-tabs.mdx
similarity index 78%
rename from website/versioned_docs/version-2.0.0-beta.6/guides/markdown-features/markdown-features-tabs.mdx
rename to website/versioned_docs/version-2.0.0-beta.8/guides/markdown-features/markdown-features-tabs.mdx
index 4e4e2da6827b..5fc9d5acd194 100644
--- a/website/versioned_docs/version-2.0.0-beta.6/guides/markdown-features/markdown-features-tabs.mdx
+++ b/website/versioned_docs/version-2.0.0-beta.8/guides/markdown-features/markdown-features-tabs.mdx
@@ -13,6 +13,7 @@ import TabItem from '@theme/TabItem';
Docusaurus provides `` components that you can use thanks to [MDX](./markdown-features-react.mdx):
+
```jsx
import Tabs from '@theme/Tabs';
import TabItem from '@theme/TabItem';
@@ -27,13 +28,14 @@ import TabItem from '@theme/TabItem';
This is a banana π
-;
+
```
+
```mdx-code-block
- This is an apple π
+ This is an apple πThis is an orange πThis is a banana π
@@ -109,7 +111,7 @@ It is also possible to provide `values` and `defaultValue` props to `Tabs`:
]}>
This is an apple πThis is an orange π
- This is a banana π
+ This is a banana π
@@ -121,17 +123,15 @@ It is also possible to provide `values` and `defaultValue` props to `Tabs`:
By default, all tabs are rendered eagerly during the build process, and search engines can index hidden tabs.
-It is possible to only render the default tab with ``.
+It is possible to only render the default tab with ``.
:::
## Displaying a default tab
-Add `default` to one of the tab items to make it displayed by default. You can also set the `defaultValue` prop in the `Tabs` component to the label value of your choice.
-
-For example, in the example above, setting `default` for the `value="apple"` tab forces it to be open by default.
+The first tab is displayed by default, and to override this behavior, you can specify a default tab by adding `default` to one of the tab items. You can also set the `defaultValue` prop of the `Tabs` component to the label value of your choice. For example, in the example above, either setting `default` for the `value="apple"` tab or setting `defaultValue="apple"` for the tabs forces the "Apple" tab to be open by default.
-If none of the children contains the `default` prop, neither is the `defaultValue` provided for the `Tabs`, or it refers to an non-existing value, only the tab headings appear until the user clicks on a tab.
+Docusaurus will throw an error if a `defaultValue` is provided for the `Tabs` but it refers to an non-existing value. If you want none of the tabs to be shown by default, use `defaultValue={null}`.
## Syncing tab choices {#syncing-tab-choices}
@@ -140,13 +140,13 @@ You may want choices of the same kind of tabs to sync with each other. For examp
```jsx
// highlight-next-line
- Use Ctrl + C to copy.
+ Use Ctrl + C to copy.Use Command + C to copy.
// highlight-next-line
- Use Ctrl + V to paste.
+ Use Ctrl + V to paste.Use Command + V to paste.
```
@@ -154,12 +154,12 @@ You may want choices of the same kind of tabs to sync with each other. For examp
```mdx-code-block
- Use Ctrl + C to copy.
+ Use Ctrl + C to copy.Use Command + C to copy.
- Use Ctrl + V to paste.
+ Use Ctrl + V to paste.Use Command + V to paste.
@@ -170,7 +170,7 @@ For all tab groups that have the same `groupId`, the possible values do not need
```jsx
-
+
I am Windows.
@@ -185,7 +185,7 @@ For all tab groups that have the same `groupId`, the possible values do not need
```mdx-code-block
- I am Windows.
+ I am Windows.I am macOS.I am Linux.
@@ -199,13 +199,13 @@ Tab choices with different `groupId`s will not interfere with each other:
```jsx
// highlight-next-line
- Windows in windows.
+ Windows in windows.macOS is macOS.
// highlight-next-line
- Windows is windows.
+ Windows is windows.Unix is unix.
```
@@ -213,12 +213,12 @@ Tab choices with different `groupId`s will not interfere with each other:
```mdx-code-block
- Windows in windows.
+ Windows in windows.macOS is macOS.
- Windows is windows.
+ Windows is windows.Unix is unix.
@@ -234,9 +234,7 @@ import TabItem from '@theme/TabItem';
// highlight-next-line
-
- This is an apple π
-
+ This is an apple πThis is an orange πThis is a banana π;
@@ -245,7 +243,7 @@ import TabItem from '@theme/TabItem';
```mdx-code-block
- This is an apple π
+ This is an apple πThis is an orange πThis is a banana π
diff --git a/website/versioned_docs/version-2.0.0-beta.6/i18n/i18n-crowdin.mdx b/website/versioned_docs/version-2.0.0-beta.8/i18n/i18n-crowdin.mdx
similarity index 98%
rename from website/versioned_docs/version-2.0.0-beta.6/i18n/i18n-crowdin.mdx
rename to website/versioned_docs/version-2.0.0-beta.8/i18n/i18n-crowdin.mdx
index ef038d068cf3..953372107da5 100644
--- a/website/versioned_docs/version-2.0.0-beta.6/i18n/i18n-crowdin.mdx
+++ b/website/versioned_docs/version-2.0.0-beta.8/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**.
@@ -363,20 +364,15 @@ import Tabs from '@theme/Tabs';
import TabItem from '@theme/TabItem';
-
-
+
+
```bash
GIT_USER= yarn deploy
```
-
+
```batch
cmd /C "set "GIT_USER=" && yarn deploy"
diff --git a/website/versioned_docs/version-2.0.0-beta.6/i18n/i18n-git.md b/website/versioned_docs/version-2.0.0-beta.8/i18n/i18n-git.md
similarity index 100%
rename from website/versioned_docs/version-2.0.0-beta.6/i18n/i18n-git.md
rename to website/versioned_docs/version-2.0.0-beta.8/i18n/i18n-git.md
diff --git a/website/versioned_docs/version-2.0.0-beta.6/i18n/i18n-introduction.md b/website/versioned_docs/version-2.0.0-beta.8/i18n/i18n-introduction.md
similarity index 100%
rename from website/versioned_docs/version-2.0.0-beta.6/i18n/i18n-introduction.md
rename to website/versioned_docs/version-2.0.0-beta.8/i18n/i18n-introduction.md
diff --git a/website/versioned_docs/version-2.0.0-beta.6/i18n/i18n-tutorial.md b/website/versioned_docs/version-2.0.0-beta.8/i18n/i18n-tutorial.md
similarity index 100%
rename from website/versioned_docs/version-2.0.0-beta.6/i18n/i18n-tutorial.md
rename to website/versioned_docs/version-2.0.0-beta.8/i18n/i18n-tutorial.md
diff --git a/website/versioned_docs/version-2.0.0-beta.6/installation.md b/website/versioned_docs/version-2.0.0-beta.8/installation.md
similarity index 89%
rename from website/versioned_docs/version-2.0.0-beta.6/installation.md
rename to website/versioned_docs/version-2.0.0-beta.8/installation.md
index 9deaa6dabbfd..92e6368bb28d 100644
--- a/website/versioned_docs/version-2.0.0-beta.6/installation.md
+++ b/website/versioned_docs/version-2.0.0-beta.8/installation.md
@@ -29,10 +29,10 @@ npm init docusaurus@latest [name] [template]
Example:
```bash
-npm init docusaurus@latest my-website classic
+npm init docusaurus@latest website classic
```
-If you do not specify `name` or `template`, it will prompt you for them. We recommend the `classic` template so that you can get started quickly and it contains features found in Docusaurus 1. The `classic` template contains `@docusaurus/preset-classic` which includes standard documentation, a blog, custom pages, and a CSS framework (with dark mode support). You can get up and running extremely quickly with the classic template and customize things later on when you have gained more familiarity with Docusaurus.
+If you do not specify `name` or `template`, it will prompt you for them. We recommend the `classic` template so that you can get started quickly, and it contains features found in Docusaurus 1. The `classic` template contains `@docusaurus/preset-classic` which includes standard documentation, a blog, custom pages, and a CSS framework (with dark mode support). You can get up and running extremely quickly with the classic template and customize things later on when you have gained more familiarity with Docusaurus.
**[FB-Only]:** If you are setting up a new Docusaurus website for a Facebook open source project, use the `facebook` template instead, which comes with some useful Facebook-specific defaults:
@@ -40,22 +40,16 @@ If you do not specify `name` or `template`, it will prompt you for them. We reco
npm init docusaurus@latest my-website facebook
```
-**[Experimental]:** If you want setting up a new website using [bootstrap](https://getbootstrap.com/), use the `bootstrap` template, like the following:
-
-```bash
-npm init docusaurus@latest my-website bootstrap
-```
-
If you want to skip installing dependencies, use the `--skip-install` option, like the following:
```bash
-npm init docusaurus@latest my-website classic --skip-install
+npm init docusaurus@latest my-website classic -- --skip-install
```
You can also use the template's TypeScript variant by passing the `--typescript` flag.
```bash
-npm init docusaurus@latest my-website classic --typescript
+npm init docusaurus@latest my-website classic -- --typescript
```
## Project structure {#project-structure}
diff --git a/website/versioned_docs/version-2.0.0-beta.6/introduction.md b/website/versioned_docs/version-2.0.0-beta.8/introduction.md
similarity index 99%
rename from website/versioned_docs/version-2.0.0-beta.6/introduction.md
rename to website/versioned_docs/version-2.0.0-beta.8/introduction.md
index 97601dff31be..cf2783fee44a 100644
--- a/website/versioned_docs/version-2.0.0-beta.6/introduction.md
+++ b/website/versioned_docs/version-2.0.0-beta.8/introduction.md
@@ -177,7 +177,7 @@ In comparison with statically generated HTML and interactivity added using ``
+#### `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.
@@ -396,7 +397,7 @@ module.exports = function (context, options) {
Called when a (production) build finishes.
```ts
-type Props = {
+interface Props {
siteDir: string;
generatedFilesDir: string;
siteConfig: DocusaurusConfig;
@@ -407,7 +408,7 @@ type Props = {
postBodyTags: string;
routesPaths: string[];
plugins: Plugin[];
-};
+}
```
Example:
diff --git a/website/versioned_docs/version-2.0.0-beta.6/migration/migration-automated.md b/website/versioned_docs/version-2.0.0-beta.8/migration/migration-automated.md
similarity index 100%
rename from website/versioned_docs/version-2.0.0-beta.6/migration/migration-automated.md
rename to website/versioned_docs/version-2.0.0-beta.8/migration/migration-automated.md
diff --git a/website/versioned_docs/version-2.0.0-beta.6/migration/migration-manual.md b/website/versioned_docs/version-2.0.0-beta.8/migration/migration-manual.md
similarity index 99%
rename from website/versioned_docs/version-2.0.0-beta.6/migration/migration-manual.md
rename to website/versioned_docs/version-2.0.0-beta.8/migration/migration-manual.md
index a20d3622fbb3..460e07d5a708 100644
--- a/website/versioned_docs/version-2.0.0-beta.6/migration/migration-manual.md
+++ b/website/versioned_docs/version-2.0.0-beta.8/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.6/migration/migration-overview.md b/website/versioned_docs/version-2.0.0-beta.8/migration/migration-overview.md
similarity index 96%
rename from website/versioned_docs/version-2.0.0-beta.6/migration/migration-overview.md
rename to website/versioned_docs/version-2.0.0-beta.8/migration/migration-overview.md
index 9b2310e41a6a..8ddda200b03c 100644
--- a/website/versioned_docs/version-2.0.0-beta.6/migration/migration-overview.md
+++ b/website/versioned_docs/version-2.0.0-beta.8/migration/migration-overview.md
@@ -94,7 +94,7 @@ The [manual migration guide](./migration-manual.md) will give you all the manual
## Support {#support}
-For any questions, you can ask in the [`#docusaurus-1-to-2-migration` Discord channel](https://discordapp.com/invite/kYaNd6V).
+For any questions, you can ask in the [`#migration-v1-to-v2` Discord channel](https://discord.gg/C3P6CxMMxY).
Feel free to tag [@slorber](https://github.com/slorber) in any migration PRs if you would like us to have a look.
diff --git a/website/versioned_docs/version-2.0.0-beta.6/migration/migration-translated-sites.md b/website/versioned_docs/version-2.0.0-beta.8/migration/migration-translated-sites.md
similarity index 100%
rename from website/versioned_docs/version-2.0.0-beta.6/migration/migration-translated-sites.md
rename to website/versioned_docs/version-2.0.0-beta.8/migration/migration-translated-sites.md
diff --git a/website/versioned_docs/version-2.0.0-beta.6/migration/migration-versioned-sites.md b/website/versioned_docs/version-2.0.0-beta.8/migration/migration-versioned-sites.md
similarity index 100%
rename from website/versioned_docs/version-2.0.0-beta.6/migration/migration-versioned-sites.md
rename to website/versioned_docs/version-2.0.0-beta.8/migration/migration-versioned-sites.md
diff --git a/website/versioned_docs/version-2.0.0-beta.6/playground.mdx b/website/versioned_docs/version-2.0.0-beta.8/playground.mdx
similarity index 100%
rename from website/versioned_docs/version-2.0.0-beta.6/playground.mdx
rename to website/versioned_docs/version-2.0.0-beta.8/playground.mdx
diff --git a/website/versioned_docs/version-2.0.0-beta.6/presets.md b/website/versioned_docs/version-2.0.0-beta.8/presets.md
similarity index 66%
rename from website/versioned_docs/version-2.0.0-beta.6/presets.md
rename to website/versioned_docs/version-2.0.0-beta.8/presets.md
index b24a6e938094..7d3eddb070e0 100644
--- a/website/versioned_docs/version-2.0.0-beta.6/presets.md
+++ b/website/versioned_docs/version-2.0.0-beta.8/presets.md
@@ -35,16 +35,13 @@ module.exports = {
## Presets -> themes and plugins {#presets---themes-and-plugins}
-Presets in some way are a shorthand function to add plugins and themes to your Docusaurus config. For example, you can specify a preset that includes the following themes and plugins,
+Presets are a shorthand function to add plugins and themes to your Docusaurus config. For example, you can specify a preset that includes the following themes and plugins,
```js
module.exports = function preset(context, opts = {}) {
return {
- themes: [
- require.resolve('@docusaurus/themes-cool'),
- require.resolve('@docusaurus/themes-bootstrap'),
- ],
- plugins: [require.resolve('@docusaurus/plugin-blog')],
+ themes: ['@docusaurus/theme-cool', opts.cool],
+ plugins: ['@docusaurus/plugin-blog', opts.blog],
};
};
```
@@ -53,8 +50,10 @@ then in your Docusaurus config, you may configure the preset instead:
```jsx {3} title="docusaurus.config.js"
module.exports = {
- // ...
- presets: ['@docusaurus/preset-my-own'],
+ presets: [
+ '@docusaurus/preset-my-own',
+ {cool: {hello: 'world'}, blog: {path: '/blog'}},
+ ],
};
```
@@ -62,8 +61,8 @@ This is equivalent of doing:
```jsx title="docusaurus.config.js"
module.exports = {
- themes: ['@docusaurus/themes-cool', '@docusaurus/themes-bootstrap'],
- plugins: ['@docusaurus/plugin-blog'],
+ themes: ['@docusaurus/themes-cool', {hello: 'world'}],
+ plugins: ['@docusaurus/plugin-blog', {path: '/blog'}],
};
```
@@ -132,51 +131,3 @@ module.exports = {
],
};
```
-
-### `@docusaurus/preset-bootstrap` {#docusauruspreset-bootstrap}
-
-An alternative preset that uses Bootstrap styling.
-
-| Themes | Plugins |
-| ----------------------------- | ---------------------------------- |
-| `@docusaurus/theme-bootstrap` | `@docusaurus/plugin-content-docs` |
-| | `@docusaurus/plugin-content-blog` |
-| | `@docusaurus/plugin-content-pages` |
-| | `@docusaurus/plugin-debug` |
-
-To specify plugin options individually, you can provide the necessary fields to certain plugins, i.e. `docs` for `@docusaurus/theme-bootstrap`, pass them in the preset field, like this:
-
-```js title="docusaurus.config.js"
-module.exports = {
- presets: [
- [
- '@docusaurus/preset-bootstrap',
- {
- // Debug defaults to true in dev, false in prod
- debug: undefined,
- // Will be passed to @docusaurus/plugin-content-docs (false to disable)
- docs: {},
- // Will be passed to @docusaurus/plugin-content-blog (false to disable)
- blog: {},
- },
- ],
- ],
-};
-```
-
-:::caution
-
-This preset is work in progress
-
-:::
-
-
diff --git a/website/versioned_docs/version-2.0.0-beta.6/search.md b/website/versioned_docs/version-2.0.0-beta.8/search.md
similarity index 55%
rename from website/versioned_docs/version-2.0.0-beta.6/search.md
rename to website/versioned_docs/version-2.0.0-beta.8/search.md
index b22ef0ed470d..ceb6541a5982 100644
--- a/website/versioned_docs/version-2.0.0-beta.6/search.md
+++ b/website/versioned_docs/version-2.0.0-beta.8/search.md
@@ -6,18 +6,60 @@ keywords:
- search
---
-Docusaurus' own `@docusaurus/preset-classic` supports a search integration.
+There are a few options you can use to add search to your website:
-There are two main options, you can use [Algolia DocSearch](https://docsearch.algolia.com) or bring in your own `SearchBar` component.
+- π₯ [Algolia DocSearch](#using-algolia-docsearch) (**official**)
+- π₯ [Typesense DocSearch](#using-typesense-docsearch)
+- π₯ [Local Search](#using-local-search)
+- π₯ [Your own `SearchBar` component](#using-your-own-search)
-## Using Algolia DocSearch {#using-algolia-docsearch}
+:::info
+
+π₯ Docusaurus provides **first-class support** for [Algolia DocSearch](#using-algolia-docsearch).
+
+π₯ Other options are **maintained by the community**: please report bugs to their respective repositories.
+
+:::
+
+## π₯ Using Algolia DocSearch {#using-algolia-docsearch}
+
+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).
+
+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.
-Algolia DocSearch 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. Note that your website needs to be publicly available for this to work (i.e., not behind a firewall). The service is free.
+If your website is [not eligible](https://docsearch.algolia.com/docs/who-can-apply) for the free, hosted version of DocSearch, or if your website sits behind a firewall and is not public, then you can [run your own](https://docsearch.algolia.com/docs/run-your-own/) DocSearch crawler.
-If your website is [not eligible](https://docsearch.algolia.com/docs/who-can-apply) for the free, hosted version of DocSearch, or if your website sits behind a firewall, then you can [run your own](https://docsearch.algolia.com/docs/run-your-own/) DocSearch crawler. For best results, you may want to use a config file based on the [Docusaurus 2 config](https://github.com/algolia/docsearch-configs/blob/master/configs/docusaurus-2.json).
+:::note
+
+By default, the Docusaurus preset generates a [sitemap.xml](https://docusaurus.io/sitemap.xml) that the Algolia crawler can use.
+
+:::
+
+### Index Configuration {#algolia-index-configuration}
+
+After applying, your site's DocSearch config should be created at:
+
+```
+https://github.com/algolia/docsearch-configs/blob/master/configs/.json
+```
+
+This configuration file can be updated by:
+
+- [**asking for help**](#algolia-support): the DocSearch team can help you maintain it
+- opening a pull-requests in [algolia/docsearch-configs](https://github.com/algolia/docsearch-configs)
+
+:::caution
+
+It is highly recommended using a config similar to the [**Docusaurus 2 website config**](https://github.com/algolia/docsearch-configs/blob/master/configs/docusaurus-2.json).
+
+:::
### Connecting Algolia {#connecting-algolia}
+Docusaurus' own `@docusaurus/preset-classic` supports an Algolia DocSearch integration.
+
To connect your docs with Algolia, first add the package to your website:
```bash npm2yarn
@@ -33,7 +75,12 @@ module.exports = {
// ...
// highlight-start
algolia: {
- apiKey: 'YOUR_API_KEY',
+ // If Algolia did not provide you any appId, use 'BH4D9OD16A'
+ appId: 'YOUR_APP_ID',
+
+ // Public API key: it is safe to commit it
+ apiKey: 'YOUR_SEARCH_API_KEY',
+
indexName: 'YOUR_INDEX_NAME',
// Optional: see doc section below
@@ -58,6 +105,14 @@ The `searchParameters` option used to be named `algoliaOptions` in Docusaurus v1
:::
+:::caution
+
+The search feature will not work reliably until Algolia crawls your site with the **search plugin enabled**.
+
+If you are installing the Algolia plugin for the first time and want to ensure the search feature works before deploying it to production, you can ask the DocSearch team to trigger a crawl on a staging environment url or deploy preview.
+
+:::
+
### Contextual search {#contextual-search}
Contextual search is mostly useful for versioned Docusaurus sites.
@@ -89,24 +144,6 @@ When using `contextualSearch: true`, the contextual facet filters will be merged
:::
-### Custom Application ID {#custom-application-id}
-
-When [running your own](https://docsearch.algolia.com/docs/run-your-own/) DocSearch crawler, it is [required to set the `appId` configuration key](https://docsearch.algolia.com/docs/behavior/#appid) to your own Application ID. If left unset, the `appId` will fallback to the one used with the free, hosted version of Algolia DocSearch.
-
-```jsx title="docusaurus.config.js"
-module.exports = {
- // ...
- themeConfig: {
- // ...
- // highlight-start
- algolia: {
- appId: 'YOUR_APP_ID',
- },
- // highlight-end
- },
-};
-```
-
### Styling your Algolia search {#styling-your-algolia-search}
By default, DocSearch comes with a fine-tuned theme that was designed for accessibility, making sure that colors and contrasts respect standards.
@@ -182,7 +219,37 @@ If you prefer to edit the Algolia search React component, swizzle the `SearchBar
npm run swizzle @docusaurus/theme-search-algolia SearchBar
```
-## Using your own search {#using-your-own-search}
+### Support {#algolia-support}
+
+The Algolia DocSearch team can help you figure out search problems on your site.
+
+You can contact them by [email](mailto:documentationsearch@algolia.com) or on [Discord](https://discord.gg/tXdr5mP).
+
+Docusaurus also has an `#algolia` channel on [Discord](https://discordapp.com/invite/docusaurus).
+
+## π₯ Using Typesense DocSearch {#using-typesense-docsearch}
+
+[Typesense](https://typesense.org) DocSearch works similar to Algolia DocSearch, except that your website is indexed into a Typesense search cluster.
+
+Typesense is an [open source](https://github.com/typesense/typesense) instant-search engine that you can either:
+
+- [Self-Host](https://typesense.org/docs/latest/guide/install-typesense.html#option-2-local-machine-self-hosting) on your own servers or
+- Use the Managed [Typesense Cloud](https://cloud.typesense.org) service.
+
+Similar to Algolia DocSearch, there are two components:
+
+- [typesense-docsearch-scraper](https://github.com/typesense/typesense-docsearch-scraper) - which scrapes your website and indexes the data in your Typesense cluster.
+- [docusaurus-theme-search-typesense](https://github.com/typesense/docusaurus-theme-search-typesense) - a search bar UI component to add to your website.
+
+Read a step-by-step walk-through of how to [run typesense-docsearch-scraper here](https://typesense.org/docs/latest/guide/docsearch.html#step-1-set-up-docsearch-scraper) and how to [install the Search Bar in your Docusaurus Site here](https://typesense.org/docs/latest/guide/docsearch.html#option-a-docusaurus-powered-sites).
+
+## π₯ Using Local Search {#using-local-search}
+
+You can use a local search plugin for websites where the search index is small and can be downloaded to your users' browsers when they visit your website.
+
+You'll find a list of community-supported [local search plugins listed here](https://docusaurus.io/community/resources#search).
+
+## π₯ Using your own search {#using-your-own-search}
To use your own search, swizzle the `SearchBar` component in `@docusaurus/theme-classic`
diff --git a/website/versioned_docs/version-2.0.0-beta.6/static-assets.md b/website/versioned_docs/version-2.0.0-beta.8/static-assets.md
similarity index 100%
rename from website/versioned_docs/version-2.0.0-beta.6/static-assets.md
rename to website/versioned_docs/version-2.0.0-beta.8/static-assets.md
diff --git a/website/versioned_docs/version-2.0.0-beta.6/styling-layout.md b/website/versioned_docs/version-2.0.0-beta.8/styling-layout.md
similarity index 100%
rename from website/versioned_docs/version-2.0.0-beta.6/styling-layout.md
rename to website/versioned_docs/version-2.0.0-beta.8/styling-layout.md
diff --git a/website/versioned_docs/version-2.0.0-beta.6/typescript-support.md b/website/versioned_docs/version-2.0.0-beta.8/typescript-support.md
similarity index 85%
rename from website/versioned_docs/version-2.0.0-beta.6/typescript-support.md
rename to website/versioned_docs/version-2.0.0-beta.8/typescript-support.md
index 8b1cff8fefcc..dd235ddd5beb 100644
--- a/website/versioned_docs/version-2.0.0-beta.6/typescript-support.md
+++ b/website/versioned_docs/version-2.0.0-beta.8/typescript-support.md
@@ -3,24 +3,24 @@ id: typescript-support
title: TypeScript Support
---
-Docusaurus is written in TypeScript, and provide first-class TypeScript support.
+Docusaurus is written in TypeScript, and provides first-class TypeScript support.
## Initialization {#initialization}
Docusaurus supports writing and using TypeScript theme components. If the init template provides a Typescript variant, you can directly initialize a site with full TypeScript support by using the `--typescript` flag.
```bash
-npm init docusaurus@latest my-website classic --typescript
+npm init docusaurus@latest my-website classic -- --typescript
```
Below are some guides on how to migrate an existing project to TypeScript.
## Setup {#setup}
-To start using TypeScript, add `@docusaurus/module-type-aliases` and some `@types` dependencies to your project:
+To start using TypeScript, add `@docusaurus/module-type-aliases` and the base TS config to your project:
```bash npm2yarn
-npm install --save-dev typescript @docusaurus/module-type-aliases @types/react @types/react-router-dom @types/react-helmet @tsconfig/docusaurus
+npm install --save-dev typescript @docusaurus/module-type-aliases @tsconfig/docusaurus
```
Then add `tsconfig.json` to your project root with the following content:
@@ -42,8 +42,11 @@ It is **not possible** to use a TypeScript config file in Docusaurus, unless you
We recommend using [JSDoc type annotations](https://www.typescriptlang.org/docs/handbook/jsdoc-supported-types.html):
-
```js title="docusaurus.config.js"
+// highlight-start
+// @ts-check
+// highlight-end
+
// highlight-start
/** @type {import('@docusaurus/types').Plugin} */
// highlight-end
@@ -54,9 +57,9 @@ function MyPlugin(context, options) {
}
// highlight-start
-/** @type {import('@docusaurus/types').DocusaurusConfig} */
+/** @type {import('@docusaurus/types').Config} */
// highlight-end
-(module.exports = {
+const config = {
title: 'Docusaurus',
tagline: 'Build optimized websites quickly, focus on your content',
organizationName: 'facebook',
@@ -98,9 +101,10 @@ function MyPlugin(context, options) {
},
},
}),
-});
+};
+
+module.exports = config;
```
-
:::tip
@@ -110,6 +114,18 @@ The best IDEs (VSCode, WebStorm, Intellij...) will provide a nice auto-completio
:::
+:::info
+
+By default, the Docusaurus TypeScript config does not type-check JavaScript files.
+
+The `// @ts-check` comment ensures the config file is properly type-checked when running:
+
+```bash npm2yarn
+npm run tsc
+```
+
+:::
+
## Swizzling TypeScript theme components {#swizzling-typescript-theme-components}
For themes that supports TypeScript theme components, you can add the `--typescript` flag to the end of swizzling command to get TypeScript source code. For example, the following command will generate `index.tsx` and `styles.module.css` into `src/theme/Footer`.
diff --git a/website/versioned_docs/version-2.0.0-beta.6/using-plugins.md b/website/versioned_docs/version-2.0.0-beta.8/using-plugins.md
similarity index 99%
rename from website/versioned_docs/version-2.0.0-beta.6/using-plugins.md
rename to website/versioned_docs/version-2.0.0-beta.8/using-plugins.md
index 2ebef9f49099..308a8c826654 100644
--- a/website/versioned_docs/version-2.0.0-beta.6/using-plugins.md
+++ b/website/versioned_docs/version-2.0.0-beta.8/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.6/using-themes.md b/website/versioned_docs/version-2.0.0-beta.8/using-themes.md
similarity index 99%
rename from website/versioned_docs/version-2.0.0-beta.6/using-themes.md
rename to website/versioned_docs/version-2.0.0-beta.8/using-themes.md
index f0f94a959f8d..2ff65c35ee30 100644
--- a/website/versioned_docs/version-2.0.0-beta.6/using-themes.md
+++ b/website/versioned_docs/version-2.0.0-beta.8/using-themes.md
@@ -51,7 +51,7 @@ website
`website/src/theme/Navbar.js` takes precedence whenever `@theme/Navbar` is imported. This behavior is called component swizzling. In iOS, 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.
-**Themes are for providing UI components to present the content.** Most content plugins need to be paired with a theme in order to be actually useful. The UI is a separate layer from the data schema, so it makes it easy to swap out the themes for other designs (i.e., Bootstrap).
+**Themes are for providing UI components to present the content.** Most content plugins need to be paired with a theme in order to be actually useful. The UI is a separate layer from the data schema, so it makes it easy to swap out the themes for other designs.
For example, a Docusaurus blog consists of a blog plugin and a blog theme.
diff --git a/website/versioned_sidebars/version-2.0.0-beta.6-sidebars.json b/website/versioned_sidebars/version-2.0.0-beta.8-sidebars.json
similarity index 55%
rename from website/versioned_sidebars/version-2.0.0-beta.6-sidebars.json
rename to website/versioned_sidebars/version-2.0.0-beta.8-sidebars.json
index edb9fee7eae7..da77d4031b41 100644
--- a/website/versioned_sidebars/version-2.0.0-beta.6-sidebars.json
+++ b/website/versioned_sidebars/version-2.0.0-beta.8-sidebars.json
@@ -1,8 +1,8 @@
{
- "version-2.0.0-beta.6/docs": [
+ "version-2.0.0-beta.8/docs": [
{
"type": "doc",
- "id": "version-2.0.0-beta.6/introduction"
+ "id": "version-2.0.0-beta.8/introduction"
},
{
"type": "category",
@@ -11,19 +11,19 @@
"items": [
{
"type": "doc",
- "id": "version-2.0.0-beta.6/installation"
+ "id": "version-2.0.0-beta.8/installation"
},
{
"type": "doc",
- "id": "version-2.0.0-beta.6/configuration"
+ "id": "version-2.0.0-beta.8/configuration"
},
{
"type": "doc",
- "id": "version-2.0.0-beta.6/playground"
+ "id": "version-2.0.0-beta.8/playground"
},
{
"type": "doc",
- "id": "version-2.0.0-beta.6/typescript-support"
+ "id": "version-2.0.0-beta.8/typescript-support"
}
],
"collapsible": true
@@ -34,7 +34,7 @@
"items": [
{
"type": "doc",
- "id": "version-2.0.0-beta.6/guides/creating-pages"
+ "id": "version-2.0.0-beta.8/guides/creating-pages"
},
{
"type": "category",
@@ -44,33 +44,33 @@
"items": [
{
"type": "doc",
- "id": "version-2.0.0-beta.6/guides/docs/introduction"
+ "id": "version-2.0.0-beta.8/guides/docs/introduction"
},
{
"type": "doc",
- "id": "version-2.0.0-beta.6/guides/docs/create-doc"
+ "id": "version-2.0.0-beta.8/guides/docs/create-doc"
},
{
"type": "doc",
- "id": "version-2.0.0-beta.6/guides/docs/sidebar"
+ "id": "version-2.0.0-beta.8/guides/docs/sidebar"
},
{
"type": "doc",
- "id": "version-2.0.0-beta.6/guides/docs/versioning"
+ "id": "version-2.0.0-beta.8/guides/docs/versioning"
},
{
"type": "doc",
- "id": "version-2.0.0-beta.6/guides/docs/markdown-features"
+ "id": "version-2.0.0-beta.8/guides/docs/markdown-features"
},
{
"type": "doc",
- "id": "version-2.0.0-beta.6/guides/docs/multi-instance"
+ "id": "version-2.0.0-beta.8/guides/docs/multi-instance"
}
]
},
{
"type": "doc",
- "id": "version-2.0.0-beta.6/blog"
+ "id": "version-2.0.0-beta.8/blog"
},
{
"type": "category",
@@ -78,47 +78,47 @@
"items": [
{
"type": "doc",
- "id": "version-2.0.0-beta.6/guides/markdown-features/introduction"
+ "id": "version-2.0.0-beta.8/guides/markdown-features/introduction"
},
{
"type": "doc",
- "id": "version-2.0.0-beta.6/guides/markdown-features/react"
+ "id": "version-2.0.0-beta.8/guides/markdown-features/react"
},
{
"type": "doc",
- "id": "version-2.0.0-beta.6/guides/markdown-features/tabs"
+ "id": "version-2.0.0-beta.8/guides/markdown-features/tabs"
},
{
"type": "doc",
- "id": "version-2.0.0-beta.6/guides/markdown-features/code-blocks"
+ "id": "version-2.0.0-beta.8/guides/markdown-features/code-blocks"
},
{
"type": "doc",
- "id": "version-2.0.0-beta.6/guides/markdown-features/admonitions"
+ "id": "version-2.0.0-beta.8/guides/markdown-features/admonitions"
},
{
"type": "doc",
- "id": "version-2.0.0-beta.6/guides/markdown-features/headings"
+ "id": "version-2.0.0-beta.8/guides/markdown-features/headings"
},
{
"type": "doc",
- "id": "version-2.0.0-beta.6/guides/markdown-features/inline-toc"
+ "id": "version-2.0.0-beta.8/guides/markdown-features/inline-toc"
},
{
"type": "doc",
- "id": "version-2.0.0-beta.6/guides/markdown-features/assets"
+ "id": "version-2.0.0-beta.8/guides/markdown-features/assets"
},
{
"type": "doc",
- "id": "version-2.0.0-beta.6/guides/markdown-features/plugins"
+ "id": "version-2.0.0-beta.8/guides/markdown-features/plugins"
},
{
"type": "doc",
- "id": "version-2.0.0-beta.6/guides/markdown-features/math-equations"
+ "id": "version-2.0.0-beta.8/guides/markdown-features/math-equations"
},
{
"type": "doc",
- "id": "version-2.0.0-beta.6/guides/markdown-features/head-metadatas"
+ "id": "version-2.0.0-beta.8/guides/markdown-features/head-metadatas"
}
],
"collapsible": true,
@@ -126,23 +126,23 @@
},
{
"type": "doc",
- "id": "version-2.0.0-beta.6/styling-layout"
+ "id": "version-2.0.0-beta.8/styling-layout"
},
{
"type": "doc",
- "id": "version-2.0.0-beta.6/static-assets"
+ "id": "version-2.0.0-beta.8/static-assets"
},
{
"type": "doc",
- "id": "version-2.0.0-beta.6/search"
+ "id": "version-2.0.0-beta.8/search"
},
{
"type": "doc",
- "id": "version-2.0.0-beta.6/browser-support"
+ "id": "version-2.0.0-beta.8/browser-support"
},
{
"type": "doc",
- "id": "version-2.0.0-beta.6/deployment"
+ "id": "version-2.0.0-beta.8/deployment"
},
{
"type": "category",
@@ -150,19 +150,19 @@
"items": [
{
"type": "doc",
- "id": "version-2.0.0-beta.6/i18n/introduction"
+ "id": "version-2.0.0-beta.8/i18n/introduction"
},
{
"type": "doc",
- "id": "version-2.0.0-beta.6/i18n/tutorial"
+ "id": "version-2.0.0-beta.8/i18n/tutorial"
},
{
"type": "doc",
- "id": "version-2.0.0-beta.6/i18n/git"
+ "id": "version-2.0.0-beta.8/i18n/git"
},
{
"type": "doc",
- "id": "version-2.0.0-beta.6/i18n/crowdin"
+ "id": "version-2.0.0-beta.8/i18n/crowdin"
}
],
"collapsible": true,
@@ -178,15 +178,15 @@
"items": [
{
"type": "doc",
- "id": "version-2.0.0-beta.6/using-plugins"
+ "id": "version-2.0.0-beta.8/using-plugins"
},
{
"type": "doc",
- "id": "version-2.0.0-beta.6/using-themes"
+ "id": "version-2.0.0-beta.8/using-themes"
},
{
"type": "doc",
- "id": "version-2.0.0-beta.6/presets"
+ "id": "version-2.0.0-beta.8/presets"
}
],
"collapsible": true,
@@ -198,45 +198,45 @@
"items": [
{
"type": "doc",
- "id": "version-2.0.0-beta.6/migration/migration-overview"
+ "id": "version-2.0.0-beta.8/migration/migration-overview"
},
{
"type": "doc",
- "id": "version-2.0.0-beta.6/migration/migration-automated"
+ "id": "version-2.0.0-beta.8/migration/migration-automated"
},
{
"type": "doc",
- "id": "version-2.0.0-beta.6/migration/migration-manual"
+ "id": "version-2.0.0-beta.8/migration/migration-manual"
},
{
"type": "doc",
- "id": "version-2.0.0-beta.6/migration/migration-versioned-sites"
+ "id": "version-2.0.0-beta.8/migration/migration-versioned-sites"
},
{
"type": "doc",
- "id": "version-2.0.0-beta.6/migration/migration-translated-sites"
+ "id": "version-2.0.0-beta.8/migration/migration-translated-sites"
}
],
"collapsible": true,
"collapsed": true
}
],
- "version-2.0.0-beta.6/api": [
+ "version-2.0.0-beta.8/api": [
{
"type": "doc",
- "id": "version-2.0.0-beta.6/cli"
+ "id": "version-2.0.0-beta.8/cli"
},
{
"type": "doc",
- "id": "version-2.0.0-beta.6/docusaurus-core"
+ "id": "version-2.0.0-beta.8/docusaurus-core"
},
{
"type": "doc",
- "id": "version-2.0.0-beta.6/api/docusaurus.config.js"
+ "id": "version-2.0.0-beta.8/api/docusaurus.config.js"
},
{
"type": "doc",
- "id": "version-2.0.0-beta.6/lifecycle-apis"
+ "id": "version-2.0.0-beta.8/lifecycle-apis"
},
{
"type": "category",
@@ -244,47 +244,47 @@
"items": [
{
"type": "doc",
- "id": "version-2.0.0-beta.6/api/plugins/plugins-overview"
+ "id": "version-2.0.0-beta.8/api/plugins/plugins-overview"
},
{
"type": "doc",
- "id": "version-2.0.0-beta.6/api/plugins/plugin-content-docs"
+ "id": "version-2.0.0-beta.8/api/plugins/plugin-content-docs"
},
{
"type": "doc",
- "id": "version-2.0.0-beta.6/api/plugins/plugin-content-blog"
+ "id": "version-2.0.0-beta.8/api/plugins/plugin-content-blog"
},
{
"type": "doc",
- "id": "version-2.0.0-beta.6/api/plugins/plugin-content-pages"
+ "id": "version-2.0.0-beta.8/api/plugins/plugin-content-pages"
},
{
"type": "doc",
- "id": "version-2.0.0-beta.6/api/plugins/plugin-client-redirects"
+ "id": "version-2.0.0-beta.8/api/plugins/plugin-client-redirects"
},
{
"type": "doc",
- "id": "version-2.0.0-beta.6/api/plugins/plugin-debug"
+ "id": "version-2.0.0-beta.8/api/plugins/plugin-debug"
},
{
"type": "doc",
- "id": "version-2.0.0-beta.6/api/plugins/plugin-google-analytics"
+ "id": "version-2.0.0-beta.8/api/plugins/plugin-google-analytics"
},
{
"type": "doc",
- "id": "version-2.0.0-beta.6/api/plugins/plugin-google-gtag"
+ "id": "version-2.0.0-beta.8/api/plugins/plugin-google-gtag"
},
{
"type": "doc",
- "id": "version-2.0.0-beta.6/api/plugins/plugin-ideal-image"
+ "id": "version-2.0.0-beta.8/api/plugins/plugin-ideal-image"
},
{
"type": "doc",
- "id": "version-2.0.0-beta.6/api/plugins/plugin-pwa"
+ "id": "version-2.0.0-beta.8/api/plugins/plugin-pwa"
},
{
"type": "doc",
- "id": "version-2.0.0-beta.6/api/plugins/plugin-sitemap"
+ "id": "version-2.0.0-beta.8/api/plugins/plugin-sitemap"
}
],
"collapsible": true,
@@ -296,27 +296,23 @@
"items": [
{
"type": "doc",
- "id": "version-2.0.0-beta.6/api/themes/themes-overview"
+ "id": "version-2.0.0-beta.8/api/themes/themes-overview"
},
{
"type": "doc",
- "id": "version-2.0.0-beta.6/api/themes/theme-configuration"
+ "id": "version-2.0.0-beta.8/api/themes/theme-configuration"
},
{
"type": "doc",
- "id": "version-2.0.0-beta.6/api/themes/theme-classic"
+ "id": "version-2.0.0-beta.8/api/themes/theme-classic"
},
{
"type": "doc",
- "id": "version-2.0.0-beta.6/api/themes/theme-bootstrap"
+ "id": "version-2.0.0-beta.8/api/themes/theme-live-codeblock"
},
{
"type": "doc",
- "id": "version-2.0.0-beta.6/api/themes/theme-live-codeblock"
- },
- {
- "type": "doc",
- "id": "version-2.0.0-beta.6/api/themes/theme-search-algolia"
+ "id": "version-2.0.0-beta.8/api/themes/theme-search-algolia"
}
],
"collapsible": true,
diff --git a/website/versions.json b/website/versions.json
index c9e89b3f44ee..228156222533 100644
--- a/website/versions.json
+++ b/website/versions.json
@@ -1,4 +1,4 @@
[
- "2.0.0-beta.7",
- "2.0.0-beta.6"
+ "2.0.0-beta.8",
+ "2.0.0-beta.7"
]
diff --git a/website/versionsArchived.json b/website/versionsArchived.json
index 1e0ad914722f..1850d48c6b98 100644
--- a/website/versionsArchived.json
+++ b/website/versionsArchived.json
@@ -1,5 +1,6 @@
{
- "2.0.0-beta.5": "https://6130eb5cde15830007fdf57b--docusaurus-2.netlify.app/docs",
+ "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",
"2.0.0-beta.3": "https://6127899cbdc82400074cdc97--docusaurus-2.netlify.app/docs/2.0.0-beta.3",
"2.0.0-beta.2": "https://6107be93ef38a00008efa7eb--docusaurus-2.netlify.app/docs/2.0.0-beta.2",
diff --git a/yarn.lock b/yarn.lock
index c73b6d0f17b1..3ceb217f44c9 100644
--- a/yarn.lock
+++ b/yarn.lock
@@ -4136,10 +4136,10 @@
resolved "https://registry.yarnpkg.com/@types/history/-/history-4.7.9.tgz#1cfb6d60ef3822c589f18e70f8b12f9a28ce8724"
integrity sha512-MUc6zSmU3tEVnkQ78q0peeEjKWPUADMlC/t++2bI8WnAG2tvYRPIgHG8lWkXwqc8MsUF6Z2MOf+Mh5sazOmhiQ==
-"@types/html-minifier-terser@^5.0.0":
- version "5.1.2"
- resolved "https://registry.yarnpkg.com/@types/html-minifier-terser/-/html-minifier-terser-5.1.2.tgz#693b316ad323ea97eed6b38ed1a3cc02b1672b57"
- integrity sha512-h4lTMgMJctJybDp8CQrxTUiiYmedihHWkjnF/8Pxseu2S6Nlfcy8kwboQ8yejh456rP2yWoEVm1sS/FVsfM48w==
+"@types/html-minifier-terser@^6.0.0":
+ version "6.0.0"
+ resolved "https://registry.yarnpkg.com/@types/html-minifier-terser/-/html-minifier-terser-6.0.0.tgz#563c1c6c132cd204e71512f9c0b394ff90d3fae7"
+ integrity sha512-NZwaaynfs1oIoLAV1vg18e7QMVDvw+6SQrdJc8w3BwUaoroVSf6EBj/Sk4PBWGxsq0dzhA2drbsuMC1/6C6KgQ==
"@types/html-minifier@*":
version "4.0.1"
@@ -6283,7 +6283,7 @@ callsites@^3.0.0:
resolved "https://registry.yarnpkg.com/callsites/-/callsites-3.1.0.tgz#b3630abd8943432f54b3f0519238e33cd7df2f73"
integrity sha512-P8BjAsXvZS+VIDUI11hHCQEv74YT67YUi5JJFNWIqL235sBmjX4+qx9Muvls5ivyNENctx46xQLQ3aTuE7ssaQ==
-camel-case@^4.1.1, camel-case@^4.1.2:
+camel-case@^4.1.2:
version "4.1.2"
resolved "https://registry.yarnpkg.com/camel-case/-/camel-case-4.1.2.tgz#9728072a954f805228225a6deea6b38461e1bd5a"
integrity sha512-gxGWBrTT1JuMx6R+o5PTXMmUnhnVzLQ9SNutD4YqKtI6ap897t3tKECYla6gCWEkplXnlNybEkZg9GEGxKFCgw==
@@ -6576,13 +6576,6 @@ class-utils@^0.3.5:
isobject "^3.0.0"
static-extend "^0.1.1"
-clean-css@^4.2.3:
- version "4.2.3"
- resolved "https://registry.yarnpkg.com/clean-css/-/clean-css-4.2.3.tgz#507b5de7d97b48ee53d84adb0160ff6216380f78"
- integrity sha512-VcMWDN54ZN/DS+g58HYL5/n4Zrqe8vHJpGA8KdgUXFU4fuP/aHNw8eld9SyEIyabIMJX/0RaY/fplOo5hYLSFA==
- dependencies:
- source-map "~0.6.0"
-
clean-css@^5.1.5:
version "5.1.5"
resolved "https://registry.yarnpkg.com/clean-css/-/clean-css-5.1.5.tgz#3b0af240dcfc9a3779a08c2332df3ebd4474f232"
@@ -6952,7 +6945,7 @@ commander@^3.0.2:
resolved "https://registry.yarnpkg.com/commander/-/commander-3.0.2.tgz#6837c3fb677ad9933d1cfba42dd14d5117d6b39e"
integrity sha512-Gar0ASD4BDyKC4hl4DwHqDrmvjoxWKZigVnAbn5H1owvm4CxCPdb0HQDehwNYMJpla5+M2tPmPARzhtYuwpHow==
-commander@^4.0.1, commander@^4.1.1:
+commander@^4.0.1:
version "4.1.1"
resolved "https://registry.yarnpkg.com/commander/-/commander-4.1.1.tgz#9fd602bd936294e9e9ef46a3f4d6964044b18068"
integrity sha512-NOKm8xhkzAjzFx8B2v5OAHT+u5pRQc2UCa2Vq9jYL/31o2wi9mxBA7LIFs3sV5VSC49z6pEhfbMULvShKj26WA==
@@ -10817,19 +10810,6 @@ html-escaper@^2.0.0:
resolved "https://registry.yarnpkg.com/html-escaper/-/html-escaper-2.0.2.tgz#dfd60027da36a36dfcbe236262c00a5822681453"
integrity sha512-H2iMtd0I4Mt5eYiapRdIDjp+XzelXQ0tFE4JS7YFwFevXXMmOp9myNrUvCg0D6ws8iqkRPBfKHgbwig1SmlLfg==
-html-minifier-terser@^5.0.1:
- version "5.1.1"
- resolved "https://registry.yarnpkg.com/html-minifier-terser/-/html-minifier-terser-5.1.1.tgz#922e96f1f3bb60832c2634b79884096389b1f054"
- integrity sha512-ZPr5MNObqnV/T9akshPKbVgyOqLmy+Bxo7juKCfTfnjNniTAMdy4hz21YQqoofMBJD2kdREaqPPdThoR78Tgxg==
- dependencies:
- camel-case "^4.1.1"
- clean-css "^4.2.3"
- commander "^4.1.1"
- he "^1.2.0"
- param-case "^3.0.3"
- relateurl "^0.2.7"
- terser "^4.6.3"
-
html-minifier-terser@^6.0.2:
version "6.0.2"
resolved "https://registry.yarnpkg.com/html-minifier-terser/-/html-minifier-terser-6.0.2.tgz#14059ad64b69bf9f8b8a33f25b53411d8321e75d"
@@ -10853,13 +10833,13 @@ html-void-elements@^1.0.0:
resolved "https://registry.yarnpkg.com/html-void-elements/-/html-void-elements-1.0.5.tgz#ce9159494e86d95e45795b166c2021c2cfca4483"
integrity sha512-uE/TxKuyNIcx44cIWnjr/rfIATDH7ZaOMmstu0CwhFG1Dunhlp4OC6/NMbhiwoq5BpW0ubi303qnEk/PZj614w==
-html-webpack-plugin@^5.3.2:
- version "5.3.2"
- resolved "https://registry.yarnpkg.com/html-webpack-plugin/-/html-webpack-plugin-5.3.2.tgz#7b04bf80b1f6fe84a6d3f66c8b79d64739321b08"
- integrity sha512-HvB33boVNCz2lTyBsSiMffsJ+m0YLIQ+pskblXgN9fnjS1BgEcuAfdInfXfGrkdXV406k9FiDi86eVCDBgJOyQ==
+html-webpack-plugin@^5.4.0:
+ version "5.4.0"
+ resolved "https://registry.yarnpkg.com/html-webpack-plugin/-/html-webpack-plugin-5.4.0.tgz#d016cd9594be5c243bb5c12287af43babbe1c094"
+ integrity sha512-cSUdckNOIqKc0nOrCJG7zkvzEIUcXjzEiVbKdEdIzW3BD5T4xPK6boV1mrTrPDZiL+aAr/j45eqbNL1akU2ZRA==
dependencies:
- "@types/html-minifier-terser" "^5.0.0"
- html-minifier-terser "^5.0.1"
+ "@types/html-minifier-terser" "^6.0.0"
+ html-minifier-terser "^6.0.2"
lodash "^4.17.21"
pretty-error "^3.0.4"
tapable "^2.0.0"
@@ -15420,7 +15400,7 @@ parallel-transform@^1.1.0, parallel-transform@^1.2.0:
inherits "^2.0.3"
readable-stream "^2.1.5"
-param-case@^3.0.3, param-case@^3.0.4:
+param-case@^3.0.4:
version "3.0.4"
resolved "https://registry.yarnpkg.com/param-case/-/param-case-3.0.4.tgz#7d17fe4aa12bde34d4a77d91acfb6219caad01c5"
integrity sha512-RXlj7zCYokReqWpOPH9oYivUzLYZ5vAPIfEmCTNViosC78F8F0H9y7T7gG2M39ymgutxF5gcFEsyZQSph9Bp3A==
@@ -18250,7 +18230,7 @@ source-map-resolve@^0.5.0:
source-map-url "^0.4.0"
urix "^0.1.0"
-source-map-support@^0.5.16, source-map-support@^0.5.19, source-map-support@^0.5.6, source-map-support@~0.5.12, source-map-support@~0.5.20:
+source-map-support@^0.5.16, source-map-support@^0.5.19, source-map-support@^0.5.6, source-map-support@~0.5.20:
version "0.5.20"
resolved "https://registry.yarnpkg.com/source-map-support/-/source-map-support-0.5.20.tgz#12166089f8f5e5e8c56926b377633392dd2cb6c9"
integrity sha512-n1lZZ8Ve4ksRqizaBQgxXDgKwttHDhyfQjA6YZZn8+AroHbsIz+JjwxQDxbp+7y5OYCI8t1Yk7etjD9CRd2hIw==
@@ -19141,15 +19121,6 @@ terser-webpack-plugin@^5.1.3, terser-webpack-plugin@^5.2.4:
source-map "^0.6.1"
terser "^5.7.2"
-terser@^4.6.3:
- version "4.8.0"
- resolved "https://registry.yarnpkg.com/terser/-/terser-4.8.0.tgz#63056343d7c70bb29f3af665865a46fe03a0df17"
- integrity sha512-EAPipTNeWsb/3wLPeup1tVPaXfIaU68xMnVdPafIL1TV05OhASArYyIfFvnvJCNrR2NIOvDVNNTFRa+Re2MWyw==
- dependencies:
- commander "^2.20.0"
- source-map "~0.6.1"
- source-map-support "~0.5.12"
-
terser@^5.0.0, terser@^5.7.2:
version "5.9.0"
resolved "https://registry.yarnpkg.com/terser/-/terser-5.9.0.tgz#47d6e629a522963240f2b55fcaa3c99083d2c351"