improve our docsify setup
parent
8249a288d7
commit
5d35098bfc
|
@ -14,7 +14,8 @@
|
||||||
* [General FAQ](faq_general.md)
|
* [General FAQ](faq_general.md)
|
||||||
* [Build/Compile QMK](faq_build.md)
|
* [Build/Compile QMK](faq_build.md)
|
||||||
* [Debugging/Troubleshooting QMK](faq_debug.md)
|
* [Debugging/Troubleshooting QMK](faq_debug.md)
|
||||||
* [Keymap](faq_keymap.md)
|
* [Keymap FAQ](faq_keymap.md)
|
||||||
|
* [Glossary](reference_glossary.md)
|
||||||
|
|
||||||
* Configurator
|
* Configurator
|
||||||
* [Overview](newbs_building_firmware_configurator.md)
|
* [Overview](newbs_building_firmware_configurator.md)
|
||||||
|
@ -138,7 +139,6 @@
|
||||||
* [Make Documentation](getting_started_make_guide.md)
|
* [Make Documentation](getting_started_make_guide.md)
|
||||||
* [Documentation Best Practices](documentation_best_practices.md)
|
* [Documentation Best Practices](documentation_best_practices.md)
|
||||||
* [Documentation Templates](documentation_templates.md)
|
* [Documentation Templates](documentation_templates.md)
|
||||||
* [Glossary](reference_glossary.md)
|
|
||||||
* [Community Layouts](feature_layouts.md)
|
* [Community Layouts](feature_layouts.md)
|
||||||
* [Unit Testing](unit_testing.md)
|
* [Unit Testing](unit_testing.md)
|
||||||
* [Useful Functions](ref_functions.md)
|
* [Useful Functions](ref_functions.md)
|
||||||
|
|
|
@ -13,8 +13,9 @@
|
||||||
<meta property="og:image" content="https://i.imgur.com/svjvIrw.jpg">
|
<meta property="og:image" content="https://i.imgur.com/svjvIrw.jpg">
|
||||||
<meta property="og:url" content="https://docs.qmk.fm">
|
<meta property="og:url" content="https://docs.qmk.fm">
|
||||||
<meta name="twitter:card" content="summary_large_image">
|
<meta name="twitter:card" content="summary_large_image">
|
||||||
<link rel="stylesheet" href="//unpkg.com/docsify/lib/themes/vue.css" title="light">
|
<link rel="stylesheet" href="//unpkg.com/docsify/lib/themes/buble.css" title="light">
|
||||||
<link rel="stylesheet" href="qmk.css" title="dark" media="(prefers-color-scheme: dark)">
|
<link rel="stylesheet" href="//unpkg.com/docsify/lib/themes/dark.css" media="(prefers-color-scheme: dark)">
|
||||||
|
<link rel="stylesheet" href="//unpkg.com/docsify-toc@1.0.0/dist/toc.css">
|
||||||
<link rel="stylesheet" href="sidebar.css" />
|
<link rel="stylesheet" href="sidebar.css" />
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
|
@ -46,7 +47,6 @@
|
||||||
mergeNavbar: true,
|
mergeNavbar: true,
|
||||||
auto2top: true,
|
auto2top: true,
|
||||||
autoHeader: true,
|
autoHeader: true,
|
||||||
subMaxLevel: 2,
|
|
||||||
fallbackLanguages: [
|
fallbackLanguages: [
|
||||||
'de',
|
'de',
|
||||||
'es',
|
'es',
|
||||||
|
@ -76,6 +76,36 @@
|
||||||
},
|
},
|
||||||
depth: 6
|
depth: 6
|
||||||
},
|
},
|
||||||
|
markdown: {
|
||||||
|
smartypants: true,
|
||||||
|
smartLists: true,
|
||||||
|
},
|
||||||
|
copyCode: {
|
||||||
|
buttonText: {
|
||||||
|
'/zh-cn/': '点击复制',
|
||||||
|
'/ru/' : 'Скопировать в буфер обмена',
|
||||||
|
'/de-de/': 'Klicken Sie zum Kopieren',
|
||||||
|
'/es/' : 'Haga clic para copiar',
|
||||||
|
'/' : 'Copy to clipboard'
|
||||||
|
},
|
||||||
|
errorText: {
|
||||||
|
'/zh-cn/': '错误',
|
||||||
|
'/ru/' : 'ошибка',
|
||||||
|
'/' : 'Error'
|
||||||
|
},
|
||||||
|
successText: {
|
||||||
|
'/zh-cn/': '复制',
|
||||||
|
'/ru/' : 'Скопировано',
|
||||||
|
'/de-de/': 'Kopiert',
|
||||||
|
'/es/' : 'Copiado',
|
||||||
|
'/' : 'Copied'
|
||||||
|
}
|
||||||
|
},
|
||||||
|
toc: {
|
||||||
|
scope: '.markdown-section',
|
||||||
|
headings: 'h1, h2, h3, h4, h5, h6',
|
||||||
|
title: 'Table of Contents',
|
||||||
|
},
|
||||||
plugins: [
|
plugins: [
|
||||||
function (hook, vm) {
|
function (hook, vm) {
|
||||||
hook.beforeEach(function (html) {
|
hook.beforeEach(function (html) {
|
||||||
|
@ -98,6 +128,8 @@
|
||||||
<script src="//unpkg.com/docsify/lib/docsify.min.js"></script>
|
<script src="//unpkg.com/docsify/lib/docsify.min.js"></script>
|
||||||
<script src="//unpkg.com/docsify/lib/plugins/search.min.js"></script>
|
<script src="//unpkg.com/docsify/lib/plugins/search.min.js"></script>
|
||||||
<script src="//unpkg.com/docsify/lib/plugins/emoji.min.js"></script>
|
<script src="//unpkg.com/docsify/lib/plugins/emoji.min.js"></script>
|
||||||
|
<script src="//unpkg.com/docsify-copy-code@2"></script>
|
||||||
|
<script src="//unpkg.com/docsify-toc@1.0.0/dist/toc.js"></script>
|
||||||
<script src="//unpkg.com/prismjs/components/prism-bash.min.js"></script>
|
<script src="//unpkg.com/prismjs/components/prism-bash.min.js"></script>
|
||||||
<script src="//unpkg.com/prismjs/components/prism-c.min.js"></script>
|
<script src="//unpkg.com/prismjs/components/prism-c.min.js"></script>
|
||||||
<script src="//unpkg.com/prismjs/components/prism-cpp.min.js"></script>
|
<script src="//unpkg.com/prismjs/components/prism-cpp.min.js"></script>
|
||||||
|
|
Loading…
Reference in New Issue