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')} +