Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add yet another dictionary for the QMK Firmware docs sidebar heading #7504

Merged
merged 1 commit into from
Nov 28, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 11 additions & 2 deletions docs/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -21,15 +21,24 @@
<div id="app"></div>
<script>
window.$docsify = {
alias : {
alias: {
'/en/(.*)': '/$1',
'/en-us/(.*)': '/$1',
'/en-gb/(.*)': '/$1',
'/.*/_langs.md': '/_langs.md',
},
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',
Expand Down
6 changes: 6 additions & 0 deletions docs/translating.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down