From 6d3c51b32c8d3a5ad6a56fd2af1ac5219e7cee1b Mon Sep 17 00:00:00 2001 From: Robert Vitonsky Date: Tue, 25 Jun 2024 17:20:58 +0200 Subject: [PATCH 1/2] feat(site): add docs section --- docs/Introduction.md | 7 +++++++ site/docusaurus.config.ts | 21 ++++++++++++++++----- site/src/components/Landing/Landing.tsx | 3 +++ site/src/components/Landing/locales/en.json | 3 +++ 4 files changed, 29 insertions(+), 5 deletions(-) create mode 100644 docs/Introduction.md diff --git a/docs/Introduction.md b/docs/Introduction.md new file mode 100644 index 00000000..d3176661 --- /dev/null +++ b/docs/Introduction.md @@ -0,0 +1,7 @@ +--- +slug: '/' +--- + +It is a community knowledge base for Linguist Translate. + +If you need help, sent email to [support@linguister.io](mailto:support@linguister.io) or [create issue on GitHub](https://github.com/translate-tools/linguist/issues/new/choose). \ No newline at end of file diff --git a/site/docusaurus.config.ts b/site/docusaurus.config.ts index ea76ae61..598aa95e 100644 --- a/site/docusaurus.config.ts +++ b/site/docusaurus.config.ts @@ -15,11 +15,10 @@ const config: Config = { [ '@docusaurus/preset-classic', { - docs: false, - // docs: { - // path: '../docs', - // include: ['*.md', '*.mdx'], - // }, + docs: { + path: '../docs', + include: ['{*,**/*}.md', '{*,**/*}.mdx'], + }, blog: { blogTitle: 'Linguist Translate blog', blogDescription: @@ -48,6 +47,18 @@ const config: Config = { width: 100, }, items: [ + { + to: '/blog', + label: 'Blog', + position: 'right', + target: '_self', + }, + { + to: '/docs', + label: 'Docs', + position: 'right', + target: '_self', + }, { href: 'https://github.com/translate-tools/linguist', label: 'GitHub', diff --git a/site/src/components/Landing/Landing.tsx b/site/src/components/Landing/Landing.tsx index 22b42685..381b740e 100644 --- a/site/src/components/Landing/Landing.tsx +++ b/site/src/components/Landing/Landing.tsx @@ -78,6 +78,9 @@ export const Landing = ({ baseUrl }: { baseUrl: string }) => { {t('navigation.blog.content')} + + {t('navigation.docs.content')} + Date: Tue, 25 Jun 2024 17:23:32 +0200 Subject: [PATCH 2/2] chore(site): update locales --- site/src/components/Landing/locales/ar.json | 3 +++ site/src/components/Landing/locales/bn.json | 3 +++ site/src/components/Landing/locales/de.json | 3 +++ site/src/components/Landing/locales/es.json | 3 +++ site/src/components/Landing/locales/fr.json | 3 +++ site/src/components/Landing/locales/gu.json | 3 +++ site/src/components/Landing/locales/hi.json | 3 +++ site/src/components/Landing/locales/it.json | 3 +++ site/src/components/Landing/locales/ja.json | 3 +++ site/src/components/Landing/locales/jv.json | 3 +++ site/src/components/Landing/locales/ko.json | 3 +++ site/src/components/Landing/locales/mr.json | 3 +++ site/src/components/Landing/locales/pa.json | 3 +++ site/src/components/Landing/locales/pt.json | 3 +++ site/src/components/Landing/locales/ru.json | 3 +++ site/src/components/Landing/locales/ta.json | 3 +++ site/src/components/Landing/locales/te.json | 3 +++ site/src/components/Landing/locales/tr.json | 3 +++ site/src/components/Landing/locales/ur.json | 3 +++ site/src/components/Landing/locales/vi.json | 3 +++ site/src/components/Landing/locales/zh.json | 3 +++ 21 files changed, 63 insertions(+) diff --git a/site/src/components/Landing/locales/ar.json b/site/src/components/Landing/locales/ar.json index 9fa4f38f..16a99797 100644 --- a/site/src/components/Landing/locales/ar.json +++ b/site/src/components/Landing/locales/ar.json @@ -6,6 +6,9 @@ "blog": { "content": "بلوق" }, + "docs": { + "content": "مستندات" + }, "github": { "content": "جيثب" } diff --git a/site/src/components/Landing/locales/bn.json b/site/src/components/Landing/locales/bn.json index 19176126..f77588f4 100644 --- a/site/src/components/Landing/locales/bn.json +++ b/site/src/components/Landing/locales/bn.json @@ -6,6 +6,9 @@ "blog": { "content": "ব্লগ" }, + "docs": { + "content": "ডক্স" + }, "github": { "content": "GitHub" } diff --git a/site/src/components/Landing/locales/de.json b/site/src/components/Landing/locales/de.json index da0e5e7d..53f78e02 100644 --- a/site/src/components/Landing/locales/de.json +++ b/site/src/components/Landing/locales/de.json @@ -6,6 +6,9 @@ "blog": { "content": "Blog" }, + "docs": { + "content": "Docs" + }, "github": { "content": "GitHub" } diff --git a/site/src/components/Landing/locales/es.json b/site/src/components/Landing/locales/es.json index ace6b256..a00a04ae 100644 --- a/site/src/components/Landing/locales/es.json +++ b/site/src/components/Landing/locales/es.json @@ -6,6 +6,9 @@ "blog": { "content": "Blog" }, + "docs": { + "content": "Docs" + }, "github": { "content": "GitHub" } diff --git a/site/src/components/Landing/locales/fr.json b/site/src/components/Landing/locales/fr.json index 0becf130..c772ebe3 100644 --- a/site/src/components/Landing/locales/fr.json +++ b/site/src/components/Landing/locales/fr.json @@ -6,6 +6,9 @@ "blog": { "content": "Blog" }, + "docs": { + "content": "Docs" + }, "github": { "content": "GitHub" } diff --git a/site/src/components/Landing/locales/gu.json b/site/src/components/Landing/locales/gu.json index 861bd5b5..02aca0fb 100644 --- a/site/src/components/Landing/locales/gu.json +++ b/site/src/components/Landing/locales/gu.json @@ -6,6 +6,9 @@ "blog": { "content": "બ્લોગ" }, + "docs": { + "content": "ડૉક્સ" + }, "github": { "content": "GitHub" } diff --git a/site/src/components/Landing/locales/hi.json b/site/src/components/Landing/locales/hi.json index 40102ac1..3ad89cf9 100644 --- a/site/src/components/Landing/locales/hi.json +++ b/site/src/components/Landing/locales/hi.json @@ -6,6 +6,9 @@ "blog": { "content": "ब्लॉग" }, + "docs": { + "content": "डॉक्स" + }, "github": { "content": "GitHub" } diff --git a/site/src/components/Landing/locales/it.json b/site/src/components/Landing/locales/it.json index 41d2075d..263832d4 100644 --- a/site/src/components/Landing/locales/it.json +++ b/site/src/components/Landing/locales/it.json @@ -6,6 +6,9 @@ "blog": { "content": "Blog" }, + "docs": { + "content": "Docs" + }, "github": { "content": "GitHub" } diff --git a/site/src/components/Landing/locales/ja.json b/site/src/components/Landing/locales/ja.json index bd88209a..7eccafb1 100644 --- a/site/src/components/Landing/locales/ja.json +++ b/site/src/components/Landing/locales/ja.json @@ -6,6 +6,9 @@ "blog": { "content": "ブログ" }, + "docs": { + "content": "Docs" + }, "github": { "content": "GitHub" } diff --git a/site/src/components/Landing/locales/jv.json b/site/src/components/Landing/locales/jv.json index d4f8f7e0..eba0a22e 100644 --- a/site/src/components/Landing/locales/jv.json +++ b/site/src/components/Landing/locales/jv.json @@ -6,6 +6,9 @@ "blog": { "content": "Blog" }, + "docs": { + "content": "Docs" + }, "github": { "content": "GitHub" } diff --git a/site/src/components/Landing/locales/ko.json b/site/src/components/Landing/locales/ko.json index 35a89d24..d30efeb9 100644 --- a/site/src/components/Landing/locales/ko.json +++ b/site/src/components/Landing/locales/ko.json @@ -6,6 +6,9 @@ "blog": { "content": "블로그" }, + "docs": { + "content": "문서" + }, "github": { "content": "GitHub" } diff --git a/site/src/components/Landing/locales/mr.json b/site/src/components/Landing/locales/mr.json index a859719b..543e7147 100644 --- a/site/src/components/Landing/locales/mr.json +++ b/site/src/components/Landing/locales/mr.json @@ -6,6 +6,9 @@ "blog": { "content": "ब्लॉग" }, + "docs": { + "content": "दस्तऐवज" + }, "github": { "content": "GitHub" } diff --git a/site/src/components/Landing/locales/pa.json b/site/src/components/Landing/locales/pa.json index 7b1811bc..c94aa747 100644 --- a/site/src/components/Landing/locales/pa.json +++ b/site/src/components/Landing/locales/pa.json @@ -6,6 +6,9 @@ "blog": { "content": "Blog" }, + "docs": { + "content": "ਦਸਤਾਵੇਜ਼" + }, "github": { "content": "GitHub" } diff --git a/site/src/components/Landing/locales/pt.json b/site/src/components/Landing/locales/pt.json index 1ae59e70..35c66138 100644 --- a/site/src/components/Landing/locales/pt.json +++ b/site/src/components/Landing/locales/pt.json @@ -6,6 +6,9 @@ "blog": { "content": "Blog" }, + "docs": { + "content": "Docs" + }, "github": { "content": "GitHub" } diff --git a/site/src/components/Landing/locales/ru.json b/site/src/components/Landing/locales/ru.json index 815bdffc..677c221b 100644 --- a/site/src/components/Landing/locales/ru.json +++ b/site/src/components/Landing/locales/ru.json @@ -6,6 +6,9 @@ "blog": { "content": "Блог" }, + "docs": { + "content": "Документы" + }, "github": { "content": "GitHub" } diff --git a/site/src/components/Landing/locales/ta.json b/site/src/components/Landing/locales/ta.json index e899e570..b8e33e3e 100644 --- a/site/src/components/Landing/locales/ta.json +++ b/site/src/components/Landing/locales/ta.json @@ -6,6 +6,9 @@ "blog": { "content": "வலைப்பதிவு" }, + "docs": { + "content": "டாக்ஸ்" + }, "github": { "content": "மகிழ்ச்சியா" } diff --git a/site/src/components/Landing/locales/te.json b/site/src/components/Landing/locales/te.json index e15156ce..e0cc3d80 100644 --- a/site/src/components/Landing/locales/te.json +++ b/site/src/components/Landing/locales/te.json @@ -6,6 +6,9 @@ "blog": { "content": "బ్లాగ్" }, + "docs": { + "content": "డాక్స్" + }, "github": { "content": "GitHub" } diff --git a/site/src/components/Landing/locales/tr.json b/site/src/components/Landing/locales/tr.json index 1913540f..fec5eaa8 100644 --- a/site/src/components/Landing/locales/tr.json +++ b/site/src/components/Landing/locales/tr.json @@ -6,6 +6,9 @@ "blog": { "content": "Blog" }, + "docs": { + "content": "Dokümanlar" + }, "github": { "content": "GitHub" } diff --git a/site/src/components/Landing/locales/ur.json b/site/src/components/Landing/locales/ur.json index bfdb1a92..a7f9de36 100644 --- a/site/src/components/Landing/locales/ur.json +++ b/site/src/components/Landing/locales/ur.json @@ -6,6 +6,9 @@ "blog": { "content": "بلاگ" }, + "docs": { + "content": "دستاویزات" + }, "github": { "content": "GitHub" } diff --git a/site/src/components/Landing/locales/vi.json b/site/src/components/Landing/locales/vi.json index b0dababe..50f6ec1b 100644 --- a/site/src/components/Landing/locales/vi.json +++ b/site/src/components/Landing/locales/vi.json @@ -6,6 +6,9 @@ "blog": { "content": "Blog" }, + "docs": { + "content": "Tài liệu" + }, "github": { "content": "GitHub" } diff --git a/site/src/components/Landing/locales/zh.json b/site/src/components/Landing/locales/zh.json index ba453036..d0ba23f3 100644 --- a/site/src/components/Landing/locales/zh.json +++ b/site/src/components/Landing/locales/zh.json @@ -6,6 +6,9 @@ "blog": { "content": "博客" }, + "docs": { + "content": "文档" + }, "github": { "content": "想" }