diff options
author | skullY <skullydazed@gmail.com> | 2020-03-01 08:57:26 -0800 |
---|---|---|
committer | skullydazed <skullydazed@users.noreply.github.com> | 2020-03-05 16:00:10 -0800 |
commit | 961477c791195ebf2d4c1f533807cb46c194d939 (patch) | |
tree | fbea653155e884505beedddc10a6003622fb6228 /docs/index.html | |
parent | 6956784ac1ae1a48e42ca0a695b7c666abd52846 (diff) | |
download | qmk_firmware-961477c791195ebf2d4c1f533807cb46c194d939.tar.gz qmk_firmware-961477c791195ebf2d4c1f533807cb46c194d939.zip |
make sure all our redirects are in order
Diffstat (limited to 'docs/index.html')
-rw-r--r-- | docs/index.html | 19 |
1 files changed, 18 insertions, 1 deletions
diff --git a/docs/index.html b/docs/index.html index 3ab8f7846..4351ce1dd 100644 --- a/docs/index.html +++ b/docs/index.html | |||
@@ -23,10 +23,26 @@ | |||
23 | <script> | 23 | <script> |
24 | window.$docsify = { | 24 | window.$docsify = { |
25 | alias: { | 25 | alias: { |
26 | // Translation aliases | ||
26 | '/en/(.*)': '/$1', | 27 | '/en/(.*)': '/$1', |
27 | '/en-us/(.*)': '/$1', | 28 | '/en-us/(.*)': '/$1', |
28 | '/en-gb/(.*)': '/$1', | 29 | '/en-gb/(.*)': '/$1', |
29 | '/.*/_langs.md': '/_langs.md', | 30 | '/.*/_langs.md': '/_langs.md', |
31 | |||
32 | // Moved pages | ||
33 | '/adding_a_keyboard_to_qmk': '/hardware_keyboard_guidelines', | ||
34 | '/build_environment_setup': '/getting_started_build_tools', | ||
35 | '/dynamic_macros': '/feature_dynamic_macros', | ||
36 | '/feature_common_shortcuts': '/feature_advanced_keycodes', | ||
37 | '/glossary': '/reference_glossary', | ||
38 | '/key_lock': '/feature_key_lock', | ||
39 | '/make_instructions': '/getting_started_make_guide', | ||
40 | '/porting_your_keyboard_to_qmk': '/hardware_avr', | ||
41 | '/space_cadet_shift': '/feature_space_cadet_shift', | ||
42 | '/getting_started_getting_help': '/support', | ||
43 | '/tap_dance': '/feature_tap_dance', | ||
44 | '/unicode': '/feature_unicode', | ||
45 | '/python_development': '/cli_development', | ||
30 | }, | 46 | }, |
31 | basePath: '/', | 47 | basePath: '/', |
32 | name: 'QMK Firmware', | 48 | name: 'QMK Firmware', |
@@ -136,7 +152,8 @@ | |||
136 | <script src="//unpkg.com/prismjs/components/prism-json.min.js"></script> | 152 | <script src="//unpkg.com/prismjs/components/prism-json.min.js"></script> |
137 | <script src="//unpkg.com/prismjs/components/prism-makefile.min.js"></script> | 153 | <script src="//unpkg.com/prismjs/components/prism-makefile.min.js"></script> |
138 | <script> | 154 | <script> |
139 | // Register the offline cache worker | 155 | // Register the cache worker for offline viewing mode |
156 | // https://docsify.now.sh/pwa | ||
140 | if (typeof navigator.serviceWorker !== 'undefined') { | 157 | if (typeof navigator.serviceWorker !== 'undefined') { |
141 | navigator.serviceWorker.register('sw.js') | 158 | navigator.serviceWorker.register('sw.js') |
142 | } | 159 | } |