Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Some SChinese Docs #8

Open
wants to merge 11 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
73 changes: 14 additions & 59 deletions CopyDocsForI18N.bat
Original file line number Diff line number Diff line change
@@ -1,59 +1,14 @@
xcopy src\pages\**.md i18n\de\docusaurus-plugin-content-pages /s /e /y
xcopy src\pages\**.mdx i18n\de\docusaurus-plugin-content-pages /s /e /y
xcopy src\pages\**.jpg i18n\de\docusaurus-plugin-content-docs\current /s /e /y
xcopy src\pages\**.png i18n\de\docusaurus-plugin-content-docs\current /s /e /y
xcopy docs\**.md i18n\de\docusaurus-plugin-content-docs\current /s /e /y
xcopy docs\**.mdx i18n\de\docusaurus-plugin-content-docs\current /s /e /y
xcopy docs\**.jpg i18n\de\docusaurus-plugin-content-docs\current /s /e /y
xcopy docs\**.gif i18n\de\docusaurus-plugin-content-docs\current /s /e /y
xcopy docs\**.png i18n\de\docusaurus-plugin-content-docs\current /s /e /y
xcopy docs\**.css i18n\de\docusaurus-plugin-content-docs\current /s /e /y
xcopy blog\** i18n\de\docusaurus-plugin-content-blog /s /e /y

xcopy src\pages\**.md i18n\fr\docusaurus-plugin-content-pages /s /e /y
xcopy src\pages\**.mdx i18n\fr\docusaurus-plugin-content-pages /s /e /y
xcopy src\pages\**.jpg i18n\fr\docusaurus-plugin-content-docs\current /s /e /y
xcopy src\pages\**.png i18n\fr\docusaurus-plugin-content-docs\current /s /e /y
xcopy docs\**.md i18n\fr\docusaurus-plugin-content-docs\current /s /e /y
xcopy docs\**.mdx i18n\fr\docusaurus-plugin-content-docs\current /s /e /y
xcopy docs\**.jpg i18n\fr\docusaurus-plugin-content-docs\current /s /e /y
xcopy docs\**.gif i18n\fr\docusaurus-plugin-content-docs\current /s /e /y
xcopy docs\**.png i18n\fr\docusaurus-plugin-content-docs\current /s /e /y
xcopy docs\**.css i18n\fr\docusaurus-plugin-content-docs\current /s /e /y
xcopy blog\** i18n\fr\docusaurus-plugin-content-blog /s /e /y

xcopy src\pages\**.md i18n\ja\docusaurus-plugin-content-pages /s /e /y
xcopy src\pages\**.mdx i18n\ja\docusaurus-plugin-content-pages /s /e /y
xcopy src\pages\**.jpg i18n\ja\docusaurus-plugin-content-docs\current /s /e /y
xcopy src\pages\**.png i18n\ja\docusaurus-plugin-content-docs\current /s /e /y
xcopy docs\**.md i18n\ja\docusaurus-plugin-content-docs\current /s /e /y
xcopy docs\**.mdx i18n\ja\docusaurus-plugin-content-docs\current /s /e /y
xcopy docs\**.jpg i18n\ja\docusaurus-plugin-content-docs\current /s /e /y
xcopy docs\**.gif i18n\ja\docusaurus-plugin-content-docs\current /s /e /y
xcopy docs\**.png i18n\ja\docusaurus-plugin-content-docs\current /s /e /y
xcopy docs\**.css i18n\ja\docusaurus-plugin-content-docs\current /s /e /y
xcopy blog\** i18n\ja\docusaurus-plugin-content-blog /s /e /y

xcopy src\pages\**.md i18n\ru\docusaurus-plugin-content-pages /s /e /y
xcopy src\pages\**.mdx i18n\ru\docusaurus-plugin-content-pages /s /e /y
xcopy src\pages\**.jpg i18n\ru\docusaurus-plugin-content-docs\current /s /e /y
xcopy src\pages\**.png i18n\ru\docusaurus-plugin-content-docs\current /s /e /y
xcopy docs\**.md i18n\ru\docusaurus-plugin-content-docs\current /s /e /y
xcopy docs\**.mdx i18n\ru\docusaurus-plugin-content-docs\current /s /e /y
xcopy docs\**.jpg i18n\ru\docusaurus-plugin-content-docs\current /s /e /y
xcopy docs\**.gif i18n\ru\docusaurus-plugin-content-docs\current /s /e /y
xcopy docs\**.png i18n\ru\docusaurus-plugin-content-docs\current /s /e /y
xcopy docs\**.css i18n\ru\docusaurus-plugin-content-docs\current /s /e /y
xcopy blog\** i18n\ru\docusaurus-plugin-content-blog /s /e /y

xcopy src\pages\**.md i18n\uk\docusaurus-plugin-content-pages /s /e /y
xcopy src\pages\**.mdx i18n\uk\docusaurus-plugin-content-pages /s /e /y
xcopy src\pages\**.jpg i18n\uk\docusaurus-plugin-content-docs\current /s /e /y
xcopy src\pages\**.png i18n\uk\docusaurus-plugin-content-docs\current /s /e /y
xcopy docs\**.md i18n\uk\docusaurus-plugin-content-docs\current /s /e /y
xcopy docs\**.mdx i18n\uk\docusaurus-plugin-content-docs\current /s /e /y
xcopy docs\**.jpg i18n\uk\docusaurus-plugin-content-docs\current /s /e /y
xcopy docs\**.gif i18n\uk\docusaurus-plugin-content-docs\current /s /e /y
xcopy docs\**.png i18n\uk\docusaurus-plugin-content-docs\current /s /e /y
xcopy docs\**.css i18n\uk\docusaurus-plugin-content-docs\current /s /e /y
xcopy blog\** i18n\uk\docusaurus-plugin-content-blog /s /e /y
set params=/s /e /y

for %%l in (de,fr,ja,ru,uk,zh-hans) do (
for %%f in (md,mdx,json) do (
xcopy src\pages\**.%%f i18n\%%l\docusaurus-plugin-content-pages %params%
)
for %%f in (jpg,png,gif,json) do (
xcopy src\pages\**.%%f i18n\%%l\docusaurus-plugin-content-docs\current %params%
)
for %%f in (md,mdx,jpg,png,gif,css,json) do (
xcopy docs\**.%%f i18n\%%l\docusaurus-plugin-content-docs\current %params%
)
xcopy blog\** i18n\%%l\docusaurus-plugin-content-blog %params%
)
5 changes: 4 additions & 1 deletion docusaurus.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ const config: Config = {
// may want to replace "en" with "zh-Hans".
i18n: {
defaultLocale: 'en',
locales: ['en', 'fr', 'ja', 'ru', 'uk', 'de'],
locales: ['en', 'fr', 'ja', 'ru', 'uk', 'de', 'zh-hans'],
localeConfigs: {
de: {
label: 'German',
Expand All @@ -47,6 +47,9 @@ const config: Config = {
uk: {
label: 'Українська',
},
"zh-hans": {
label: '简体中文'
}
}
},

Expand Down
7 changes: 7 additions & 0 deletions i18n/de/docusaurus-plugin-content-page
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
title: Markdown page example
---

# Markdown page example

You don't need React to write simple standalone pages.
7 changes: 7 additions & 0 deletions i18n/fr/docusaurus-plugin-content-page
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
title: Markdown page example
---

# Markdown page example

You don't need React to write simple standalone pages.
7 changes: 7 additions & 0 deletions i18n/ja/docusaurus-plugin-content-page
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
title: Markdown page example
---

# Markdown page example

You don't need React to write simple standalone pages.
7 changes: 7 additions & 0 deletions i18n/ru/docusaurus-plugin-content-page
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
title: Markdown page example
---

# Markdown page example

You don't need React to write simple standalone pages.
7 changes: 7 additions & 0 deletions i18n/uk/docusaurus-plugin-content-page
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
title: Markdown page example
---

# Markdown page example

You don't need React to write simple standalone pages.
Loading