summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
Diffstat (limited to 'docs')
-rw-r--r--docs/index.html13
-rw-r--r--docs/translating.md6
2 files changed, 17 insertions, 2 deletions
diff --git a/docs/index.html b/docs/index.html
index d20fbd64a0..5ca0fa6fab 100644
--- a/docs/index.html
+++ b/docs/index.html
@@ -21,7 +21,7 @@
<div id="app"></div>
<script>
window.$docsify = {
- alias : {
+ alias: {
'/en/(.*)': '/$1',
'/en-us/(.*)': '/$1',
'/en-gb/(.*)': '/$1',
@@ -29,7 +29,16 @@
},
basePath: '/',
name: 'QMK Firmware',
- nameLink: '/',
+ nameLink: {
+ '/de/': '/#/de/',
+ '/es/': '/#/es/',
+ '/fr-fr/': '/#/fr-fr/',
+ '/he-il/': '/#/he-il/',
+ '/ja/': '/#/ja/',
+ '/ru-ru/': '/#/ru-ru/',
+ '/zh-cn/': '/#/zh-cn/',
+ '/': '/#/'
+ },
repo: 'qmk/qmk_firmware',
loadSidebar: '_summary.md',
loadNavbar: '_langs.md',
diff --git a/docs/translating.md b/docs/translating.md
index af37c08dc1..4365817590 100644
--- a/docs/translating.md
+++ b/docs/translating.md
@@ -32,6 +32,12 @@ Once you've finished translating a new language, you'll also need to modify the
'/zh-cn/': '没有结果!',
```
+ The `nameLink` object, for setting the "QMK Firmware" heading link in the sidebar, must also be added to:
+
+ ```js
+ '/zh-cn/': '/#/zh-cn/',
+ ```
+
And make sure to add the language folder in the `fallbackLanguages` list, so it will properly fall back to English instead of 404ing:
```js