Merge pull request #30 from tachiyomiorg/outsource-config

Move navigation and plugins away from config.js (Split 1 of 3 - #27)
This commit is contained in:
arkon 2019-09-23 10:16:29 -04:00 committed by GitHub
commit 6e321ffb72
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 111 additions and 64 deletions

View File

@ -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 => `<details><summary>${info}</summary>\n`,
after: '</details>\n'
}
]
plugins: require('./config/plugins'),
extraWatchFiles: [
'.vuepress/config/nav.js',
'.vuepress/config/sidebar.js',
'.vuepress/config/plugins.js'
]
}

View File

@ -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'
}
];

View File

@ -0,0 +1,19 @@
module.exports = [
[
'@vuepress/back-to-top'
],
[
'@vuepress/google-analytics',
{
'ga': 'UA-148212082-1'
}
],
[
'container',
{
type: 'expander',
before: info => `<details><summary>${info}</summary>\n`,
after: '</details>\n'
}
]
];

View File

@ -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/'
];

View File

@ -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)