From 9206fe49d55bee08a66bff2b981d06bde7a570f5 Mon Sep 17 00:00:00 2001 From: Simon Mattila Date: Mon, 23 Sep 2019 12:23:00 +0200 Subject: [PATCH] First branch commit for the splitting of #27 --- src/.vuepress/config.js | 51 +++++---------------------------- src/.vuepress/config/nav.js | 50 ++++++++++++++++++++++++++++++++ src/.vuepress/config/plugins.js | 19 ++++++++++++ src/.vuepress/config/sidebar.js | 35 ++++++++++++++++++++++ src/help/guides/translation.md | 20 ------------- 5 files changed, 111 insertions(+), 64 deletions(-) create mode 100644 src/.vuepress/config/nav.js create mode 100644 src/.vuepress/config/plugins.js create mode 100644 src/.vuepress/config/sidebar.js delete mode 100644 src/help/guides/translation.md diff --git a/src/.vuepress/config.js b/src/.vuepress/config.js index f0e48197..0cbb1a1a 100644 --- a/src/.vuepress/config.js +++ b/src/.vuepress/config.js @@ -7,51 +7,14 @@ module.exports = { docsRepo: 'tachiyomiorg/website', docsDir: 'src', editLinks: true, - nav: [ - { text: 'Guides', link: '/help/guides/getting-started' }, - { text: 'FAQ', link: '/help/faq/application' }, - { text: 'Extensions', link: '/extensions/' }, - { text: 'Wiki', link: 'https://github.com/inorichi/tachiyomi/wiki' }, - { text: 'Discord', link: 'https://discord.gg/tachiyomi' }, - { text: 'Reddit', link: 'https://reddit.com/r/Tachiyomi' } - ], - sidebar: [ - '/', - { - title: 'Guides', - children: [ - '/help/guides/getting-started', - '/help/guides/reading-local-manga', - '/help/guides/source-problems', - '/help/guides/translation' - ] - }, - { - title: 'FAQ', - children: [ - '/help/faq/application', - '/help/faq/extensions' - ] - }, - '/extensions/' - ], + nav: require('./config/nav'), + sidebar: require('./config/sidebar'), lastUpdated: 'Last Updated' }, - plugins: [ - [ - '@vuepress/back-to-top' - ], - [ - '@vuepress/google-analytics', - { 'ga': 'UA-148212082-1' } - ], - [ - 'container', - { - type: 'expander', - before: info => `
${info}\n`, - after: '
\n' - } - ] + plugins: require('./config/plugins'), + extraWatchFiles: [ + '.vuepress/config/nav.js', + '.vuepress/config/sidebar.js', + '.vuepress/config/plugins.js' ] } diff --git a/src/.vuepress/config/nav.js b/src/.vuepress/config/nav.js new file mode 100644 index 00000000..6011625d --- /dev/null +++ b/src/.vuepress/config/nav.js @@ -0,0 +1,50 @@ +module.exports = [ + { + text: 'Need help?', + items: [ + { + text: 'Regular', + items: [ + { + text: 'Application', + link: '/help/faq/application' + }, + { + text: 'Extensions', + link: '/help/faq/extensions' + } + ] + } + ] + }, + { + text: 'Guides', + items: [ + { + text: 'Regular', + items: [ + { + text: 'Getting started', + link: '/help/guides/getting-started' + }, + { + text: 'Reading local manga', + link: '/help/guides/reading-local-manga' + }, + { + text: 'Source problems', + link: '/help/guides/source-problems' + } + ] + } + ] + }, + { + text: 'Discord', + link: 'https://discord.gg/tachiyomi' + }, + { + text: 'Reddit', + link: 'https://reddit.com/r/Tachiyomi' + } +]; diff --git a/src/.vuepress/config/plugins.js b/src/.vuepress/config/plugins.js new file mode 100644 index 00000000..5b7d079f --- /dev/null +++ b/src/.vuepress/config/plugins.js @@ -0,0 +1,19 @@ +module.exports = [ + [ + '@vuepress/back-to-top' + ], + [ + '@vuepress/google-analytics', + { + 'ga': 'UA-148212082-1' + } + ], + [ + 'container', + { + type: 'expander', + before: info => `
${info}\n`, + after: '
\n' + } + ] +]; diff --git a/src/.vuepress/config/sidebar.js b/src/.vuepress/config/sidebar.js new file mode 100644 index 00000000..aed1faff --- /dev/null +++ b/src/.vuepress/config/sidebar.js @@ -0,0 +1,35 @@ +module.exports = [ + '/', + { + title: 'Guides', + sidebarDepth: 2, + children: [ + { + title: 'Regular', + collapsable: false, + sidebarDepth: 2, + children: [ + '/help/guides/getting-started', + '/help/guides/reading-local-manga', + '/help/guides/source-problems' + ] + } + ] + }, + { + title: 'Frequently Asked Questions', + sidebarDepth: 2, + children: [ + { + title: 'Regular', + collapsable: false, + sidebarDepth: 2, + children: [ + '/help/faq/application', + '/help/faq/extensions' + ] + } + ] + }, + '/extensions/' +]; diff --git a/src/help/guides/translation.md b/src/help/guides/translation.md deleted file mode 100644 index 4f0e75d7..00000000 --- a/src/help/guides/translation.md +++ /dev/null @@ -1,20 +0,0 @@ ---- -title: Translation -lang: en-US ---- - -# Translation - -## Weblate - -**The project is available at [https://hosted.weblate.org/engage/tachiyomi/](https://hosted.weblate.org/engage/tachiyomi/)** -(direct [https://hosted.weblate.org/projects/tachiyomi/strings/](https://hosted.weblate.org/projects/tachiyomi/strings/)) - -The translators guide can be found at [https://docs.weblate.org/en/latest/user/index.html](https://docs.weblate.org/en/latest/user/index.html). Notice also: -* [https://docs.weblate.org/en/latest/user/profile.html#secondary-languages](https://docs.weblate.org/en/latest/user/profile.html#secondary-languages) -* [https://docs.weblate.org/en/latest/user/profile.html#subscriptions](https://docs.weblate.org/en/latest/user/profile.html#subscriptions) -* [https://docs.weblate.org/en/latest/user/translating.html#glossary](https://docs.weblate.org/en/latest/user/translating.html#glossary) - -*** - -[![Translation status](https://hosted.weblate.org/widgets/tachiyomi/-/multi-auto.svg)](https://hosted.weblate.org/engage/tachiyomi/?utm_source=widget)