Skip to content

Commit

Permalink
Merge pull request #489 from translate-tools/480-add-docs-section-on-…
Browse files Browse the repository at this point in the history
…site

Add docs section on site
  • Loading branch information
vitonsky authored Jun 25, 2024
2 parents 57ac069 + f395728 commit 8980eaa
Show file tree
Hide file tree
Showing 25 changed files with 92 additions and 5 deletions.
7 changes: 7 additions & 0 deletions docs/Introduction.md
Original file line number Diff line number Diff line change
@@ -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).
21 changes: 16 additions & 5 deletions site/docusaurus.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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',
Expand Down
3 changes: 3 additions & 0 deletions site/src/components/Landing/Landing.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,9 @@ export const Landing = ({ baseUrl }: { baseUrl: string }) => {
<Link variant="base" href="/blog">
{t('navigation.blog.content')}
</Link>
<Link variant="base" href="/docs">
{t('navigation.docs.content')}
</Link>
<Link
variant="base"
href="https://github.com/translate-tools/linguist"
Expand Down
3 changes: 3 additions & 0 deletions site/src/components/Landing/locales/ar.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@
"blog": {
"content": "بلوق"
},
"docs": {
"content": "مستندات"
},
"github": {
"content": "جيثب"
}
Expand Down
3 changes: 3 additions & 0 deletions site/src/components/Landing/locales/bn.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@
"blog": {
"content": "ব্লগ"
},
"docs": {
"content": "ডক্স"
},
"github": {
"content": "GitHub"
}
Expand Down
3 changes: 3 additions & 0 deletions site/src/components/Landing/locales/de.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@
"blog": {
"content": "Blog"
},
"docs": {
"content": "Docs"
},
"github": {
"content": "GitHub"
}
Expand Down
3 changes: 3 additions & 0 deletions site/src/components/Landing/locales/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@
"blog": {
"content": "Blog"
},
"docs": {
"content": "Docs"
},
"github": {
"content": "GitHub"
}
Expand Down
3 changes: 3 additions & 0 deletions site/src/components/Landing/locales/es.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@
"blog": {
"content": "Blog"
},
"docs": {
"content": "Docs"
},
"github": {
"content": "GitHub"
}
Expand Down
3 changes: 3 additions & 0 deletions site/src/components/Landing/locales/fr.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@
"blog": {
"content": "Blog"
},
"docs": {
"content": "Docs"
},
"github": {
"content": "GitHub"
}
Expand Down
3 changes: 3 additions & 0 deletions site/src/components/Landing/locales/gu.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@
"blog": {
"content": "બ્લોગ"
},
"docs": {
"content": "ડૉક્સ"
},
"github": {
"content": "GitHub"
}
Expand Down
3 changes: 3 additions & 0 deletions site/src/components/Landing/locales/hi.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@
"blog": {
"content": "ब्लॉग"
},
"docs": {
"content": "डॉक्स"
},
"github": {
"content": "GitHub"
}
Expand Down
3 changes: 3 additions & 0 deletions site/src/components/Landing/locales/it.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@
"blog": {
"content": "Blog"
},
"docs": {
"content": "Docs"
},
"github": {
"content": "GitHub"
}
Expand Down
3 changes: 3 additions & 0 deletions site/src/components/Landing/locales/ja.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@
"blog": {
"content": "ブログ"
},
"docs": {
"content": "Docs"
},
"github": {
"content": "GitHub"
}
Expand Down
3 changes: 3 additions & 0 deletions site/src/components/Landing/locales/jv.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@
"blog": {
"content": "Blog"
},
"docs": {
"content": "Docs"
},
"github": {
"content": "GitHub"
}
Expand Down
3 changes: 3 additions & 0 deletions site/src/components/Landing/locales/ko.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@
"blog": {
"content": "블로그"
},
"docs": {
"content": "문서"
},
"github": {
"content": "GitHub"
}
Expand Down
3 changes: 3 additions & 0 deletions site/src/components/Landing/locales/mr.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@
"blog": {
"content": "ब्लॉग"
},
"docs": {
"content": "दस्तऐवज"
},
"github": {
"content": "GitHub"
}
Expand Down
3 changes: 3 additions & 0 deletions site/src/components/Landing/locales/pa.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@
"blog": {
"content": "Blog"
},
"docs": {
"content": "ਦਸਤਾਵੇਜ਼"
},
"github": {
"content": "GitHub"
}
Expand Down
3 changes: 3 additions & 0 deletions site/src/components/Landing/locales/pt.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@
"blog": {
"content": "Blog"
},
"docs": {
"content": "Docs"
},
"github": {
"content": "GitHub"
}
Expand Down
3 changes: 3 additions & 0 deletions site/src/components/Landing/locales/ru.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@
"blog": {
"content": "Блог"
},
"docs": {
"content": "Документы"
},
"github": {
"content": "GitHub"
}
Expand Down
3 changes: 3 additions & 0 deletions site/src/components/Landing/locales/ta.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@
"blog": {
"content": "வலைப்பதிவு"
},
"docs": {
"content": "டாக்ஸ்"
},
"github": {
"content": "மகிழ்ச்சியா"
}
Expand Down
3 changes: 3 additions & 0 deletions site/src/components/Landing/locales/te.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@
"blog": {
"content": "బ్లాగ్"
},
"docs": {
"content": "డాక్స్"
},
"github": {
"content": "GitHub"
}
Expand Down
3 changes: 3 additions & 0 deletions site/src/components/Landing/locales/tr.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@
"blog": {
"content": "Blog"
},
"docs": {
"content": "Dokümanlar"
},
"github": {
"content": "GitHub"
}
Expand Down
3 changes: 3 additions & 0 deletions site/src/components/Landing/locales/ur.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@
"blog": {
"content": "بلاگ"
},
"docs": {
"content": "دستاویزات"
},
"github": {
"content": "GitHub"
}
Expand Down
3 changes: 3 additions & 0 deletions site/src/components/Landing/locales/vi.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@
"blog": {
"content": "Blog"
},
"docs": {
"content": "Tài liệu"
},
"github": {
"content": "GitHub"
}
Expand Down
3 changes: 3 additions & 0 deletions site/src/components/Landing/locales/zh.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@
"blog": {
"content": "博客"
},
"docs": {
"content": "文档"
},
"github": {
"content": ""
}
Expand Down

0 comments on commit 8980eaa

Please sign in to comment.