From b025e77653e5510091fdeea75652d8c9e8d9cea3 Mon Sep 17 00:00:00 2001 From: Kgothatso Ngako Date: Sat, 15 Feb 2020 15:26:37 +0200 Subject: [PATCH] Extending theme to group langauges --- docs/.vuepress/config.js | 5 +- docs/.vuepress/theme/components/NavLinks.vue | 177 +++++++++++++++++++ docs/.vuepress/theme/index.js | 6 + docs/.vuepress/theme/noopModule.js | 1 + 4 files changed, 187 insertions(+), 2 deletions(-) create mode 100644 docs/.vuepress/theme/components/NavLinks.vue create mode 100644 docs/.vuepress/theme/index.js create mode 100644 docs/.vuepress/theme/noopModule.js diff --git a/docs/.vuepress/config.js b/docs/.vuepress/config.js index 61a8170..b50bda0 100644 --- a/docs/.vuepress/config.js +++ b/docs/.vuepress/config.js @@ -7,6 +7,7 @@ module.exports = { }, '/ng/': { lang: 'ng', + group: '🇳🇦 Namibia', title: 'Exonumia', description: 'Ke yona landing page for native African language speaker looking to learn about Bitcoin.' } @@ -20,7 +21,7 @@ module.exports = { locales: { '/': { selectText: '🇬🇧 Languages', - label: '🇬🇧 English', + label: 'English', ariaLabel: 'Languages', editLinkText: 'Improve Content', nav: [ @@ -55,7 +56,7 @@ module.exports = { }, '/ng/': { selectText: '🇳🇦 Languages', - label: '🇳🇦 Oshiwambo', + label: 'Oshiwambo', ariaLabel: 'Languages', editLinks: true, editLinkText: "Improve Translation!", diff --git a/docs/.vuepress/theme/components/NavLinks.vue b/docs/.vuepress/theme/components/NavLinks.vue new file mode 100644 index 0000000..b27fe79 --- /dev/null +++ b/docs/.vuepress/theme/components/NavLinks.vue @@ -0,0 +1,177 @@ + + + + + diff --git a/docs/.vuepress/theme/index.js b/docs/.vuepress/theme/index.js new file mode 100644 index 0000000..44747de --- /dev/null +++ b/docs/.vuepress/theme/index.js @@ -0,0 +1,6 @@ +const path = require('path') + +// Theme API. +module.exports = { + extend: '@vuepress/theme-default' +} diff --git a/docs/.vuepress/theme/noopModule.js b/docs/.vuepress/theme/noopModule.js new file mode 100644 index 0000000..b1c6ea4 --- /dev/null +++ b/docs/.vuepress/theme/noopModule.js @@ -0,0 +1 @@ +export default {}