Bias template/tutorial to use .mdx

This commit is contained in:
sebastienlorber 2023-01-04 20:12:10 +01:00
parent 3adc4ea809
commit 002ea367e7
13 changed files with 18 additions and 18 deletions

View file

@ -51,5 +51,5 @@ The docs version dropdown appears in your navbar:
It is possible to edit versioned docs in their respective folder:
- `versioned_docs/version-1.0/hello.md` updates `http://localhost:3000/docs/hello`
- `docs/hello.md` updates `http://localhost:3000/docs/next/hello`
- `versioned_docs/version-1.0/hello.mdx` updates `http://localhost:3000/docs/hello`
- `docs/hello.mdx` updates `http://localhost:3000/docs/next/hello`

View file

@ -4,7 +4,7 @@ sidebar_position: 2
# Translate your site
Let's translate `docs/intro.md` to French.
Let's translate `docs/intro.mdx` to French.
## Configure i18n
@ -21,15 +21,15 @@ module.exports = {
## Translate a doc
Copy the `docs/intro.md` file to the `i18n/fr` folder:
Copy the `docs/intro.mdx` file to the `i18n/fr` folder:
```bash
mkdir -p i18n/fr/docusaurus-plugin-content-docs/current/
cp docs/intro.md i18n/fr/docusaurus-plugin-content-docs/current/intro.md
cp docs/intro.mdx i18n/fr/docusaurus-plugin-content-docs/current/intro.mdx
```
Translate `i18n/fr/docusaurus-plugin-content-docs/current/intro.md` in French.
Translate `i18n/fr/docusaurus-plugin-content-docs/current/intro.mdx` in French.
## Start your localized site