From 5d35098bfc0d8e4c21a8f844fcc7a82866f0ab9e Mon Sep 17 00:00:00 2001 From: skullY Date: Tue, 25 Feb 2020 13:43:05 -0800 Subject: [PATCH] improve our docsify setup --- docs/_summary.md | 4 ++-- docs/index.html | 38 +++++++++++++++++++++++++++++++++++--- 2 files changed, 37 insertions(+), 5 deletions(-) diff --git a/docs/_summary.md b/docs/_summary.md index d5582e143..1d877c211 100644 --- a/docs/_summary.md +++ b/docs/_summary.md @@ -14,7 +14,8 @@ * [General FAQ](faq_general.md) * [Build/Compile QMK](faq_build.md) * [Debugging/Troubleshooting QMK](faq_debug.md) - * [Keymap](faq_keymap.md) + * [Keymap FAQ](faq_keymap.md) + * [Glossary](reference_glossary.md) * Configurator * [Overview](newbs_building_firmware_configurator.md) @@ -138,7 +139,6 @@ * [Make Documentation](getting_started_make_guide.md) * [Documentation Best Practices](documentation_best_practices.md) * [Documentation Templates](documentation_templates.md) - * [Glossary](reference_glossary.md) * [Community Layouts](feature_layouts.md) * [Unit Testing](unit_testing.md) * [Useful Functions](ref_functions.md) diff --git a/docs/index.html b/docs/index.html index 701f25ae2..a94cf8269 100644 --- a/docs/index.html +++ b/docs/index.html @@ -13,8 +13,9 @@ - - + + + @@ -46,7 +47,6 @@ mergeNavbar: true, auto2top: true, autoHeader: true, - subMaxLevel: 2, fallbackLanguages: [ 'de', 'es', @@ -76,6 +76,36 @@ }, 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: [ function (hook, vm) { hook.beforeEach(function (html) { @@ -98,6 +128,8 @@ + +