]> git.donarmstrong.com Git - qmk_firmware.git/commitdiff
Add yet another dictionary for the QMK Firmware docs sidebar heading (#7504)
authorfauxpark <fauxpark@gmail.com>
Thu, 28 Nov 2019 22:14:04 +0000 (09:14 +1100)
committerJoel Challis <git@zvecr.com>
Thu, 28 Nov 2019 22:14:04 +0000 (22:14 +0000)
docs/index.html
docs/translating.md

index d20fbd64a00a7396a07f41e803c07c391f1327ec..5ca0fa6fab53c8c978c35159c7b1937559c903b1 100644 (file)
@@ -21,7 +21,7 @@
   <div id="app"></div>
   <script>
     window.$docsify = {
-      alias : {
+      alias: {
         '/en/(.*)': '/$1',
         '/en-us/(.*)': '/$1',
         '/en-gb/(.*)': '/$1',
       },
       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',
index af37c08dc18d982d8f1606757febcdaa8aeee4fd..4365817590d0b8ea7124b8fb703a2505c384ee6c 100644 (file)
@@ -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