From 68996cea70864d9d35b3a17fab729ba84eaa3aaa Mon Sep 17 00:00:00 2001 From: elweyn Date: Wed, 29 Nov 2023 21:37:47 +0100 Subject: [PATCH] feat(content): set navbar in the locales. --- docs/.vuepress/config/theme.js | 66 +++++++++++++++++++++++++--------- docs/en/impressum/README.md | 4 +-- docs/impressum/README.md | 4 +-- 3 files changed, 51 insertions(+), 23 deletions(-) diff --git a/docs/.vuepress/config/theme.js b/docs/.vuepress/config/theme.js index 50763b7..3c20d1d 100644 --- a/docs/.vuepress/config/theme.js +++ b/docs/.vuepress/config/theme.js @@ -11,24 +11,56 @@ export default hopeTheme({ contributors: false, displayFooter: true, print: false, - copyright: '© by busFaktor() e.V. & Authors | Impressum', - footer: 'Released under the MIT License.', - navbar: [ - { - text: 'Documentation', link: 'https://docs.ocelot.social/' + locales:{ + // The key is the path for the locale to be nested under. + // As a special case, the default locale can use '/' as its path. + '/en/': { + lang: 'en-US', // this will be set as the lang attribute on + title: 'Ocelot.Social', + // description: '' + copyright: '© by busFaktor() e.V. & Authors | Impressum', + footer: 'Released under the MIT License.', + navbar: [ + { + text: 'Documentation', link: 'https://docs.ocelot.social/' + }, + { + text: 'Demo', link: 'https://stage.ocelot.social/' + }, + { + text: 'Github', + link: 'https://github.com/Ocelot-Social-Community' + }, + { + text: 'Imprint', + link: '/impressum/' + }, + ], }, - { - text: 'Demo', link: 'https://stage.ocelot.social/' - }, - { - text: 'Github', - link: 'https://github.com/Ocelot-Social-Community' - }, - { - text: 'Impressum', - link: '/impressum/' - }, - ], + '/': { + lang: 'de-DE', + title: 'Ocelot.Social', + // description: '' + copyright: '© von busFaktor() e.V. & Authoren | Impressum', + footer: 'Unter der MIT License ausgeliefert.', + navbar: [ + { + text: 'Documentation', link: 'https://docs.ocelot.social/' + }, + { + text: 'Demo', link: 'https://stage.ocelot.social/' + }, + { + text: 'Github', + link: 'https://github.com/Ocelot-Social-Community' + }, + { + text: 'Impressum', + link: '/impressum/' + }, + ], + } + }, plugins: { mdEnhance: { align: true, diff --git a/docs/en/impressum/README.md b/docs/en/impressum/README.md index 8d07deb..6edcf5a 100644 --- a/docs/en/impressum/README.md +++ b/docs/en/impressum/README.md @@ -3,9 +3,7 @@ home: false # layout: BlogHome icon: home title: Imprint | Ocelot.Social -heroFullScreen: false -heroImage: /logo.svg -heroText: Free and open-source social network for active citizenship. +sidebar: false tagLine: # actions: # - text: Demo diff --git a/docs/impressum/README.md b/docs/impressum/README.md index 3e6671e..63b7334 100644 --- a/docs/impressum/README.md +++ b/docs/impressum/README.md @@ -3,9 +3,7 @@ home: false # layout: BlogHome icon: home title: Impressum | Ocelot.Social -heroFullScreen: false -heroImage: /logo.svg -heroText: Free and open-source social network for active citizenship. +sidebar: false tagLine: # actions: # - text: Demo