mirror of
https://github.com/facebook/docusaurus.git
synced 2025-06-05 20:32:42 +02:00
Bias template/tutorial to use .mdx
This commit is contained in:
parent
3adc4ea809
commit
002ea367e7
13 changed files with 18 additions and 18 deletions
|
@ -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`
|
|
@ -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
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue