diff options
author | skullY <skullydazed@gmail.com> | 2020-02-25 13:43:05 -0800 |
---|---|---|
committer | skullydazed <skullydazed@users.noreply.github.com> | 2020-03-05 16:00:10 -0800 |
commit | 5d35098bfc0d8e4c21a8f844fcc7a82866f0ab9e (patch) | |
tree | cb04aed9560251fe70c97cefe5ed4199c6e206d9 /docs/index.html | |
parent | 8249a288d70fa078e0174846618d0f3b6fd911f1 (diff) | |
download | qmk_firmware-5d35098bfc0d8e4c21a8f844fcc7a82866f0ab9e.tar.gz qmk_firmware-5d35098bfc0d8e4c21a8f844fcc7a82866f0ab9e.zip |
improve our docsify setup
Diffstat (limited to 'docs/index.html')
-rw-r--r-- | docs/index.html | 38 |
1 files changed, 35 insertions, 3 deletions
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 @@ | |||
13 | <meta property="og:image" content="https://i.imgur.com/svjvIrw.jpg"> | 13 | <meta property="og:image" content="https://i.imgur.com/svjvIrw.jpg"> |
14 | <meta property="og:url" content="https://docs.qmk.fm"> | 14 | <meta property="og:url" content="https://docs.qmk.fm"> |
15 | <meta name="twitter:card" content="summary_large_image"> | 15 | <meta name="twitter:card" content="summary_large_image"> |
16 | <link rel="stylesheet" href="//unpkg.com/docsify/lib/themes/vue.css" title="light"> | 16 | <link rel="stylesheet" href="//unpkg.com/docsify/lib/themes/buble.css" title="light"> |
17 | <link rel="stylesheet" href="qmk.css" title="dark" media="(prefers-color-scheme: dark)"> | 17 | <link rel="stylesheet" href="//unpkg.com/docsify/lib/themes/dark.css" media="(prefers-color-scheme: dark)"> |
18 | <link rel="stylesheet" href="//unpkg.com/docsify-toc@1.0.0/dist/toc.css"> | ||
18 | <link rel="stylesheet" href="sidebar.css" /> | 19 | <link rel="stylesheet" href="sidebar.css" /> |
19 | </head> | 20 | </head> |
20 | <body> | 21 | <body> |
@@ -46,7 +47,6 @@ | |||
46 | mergeNavbar: true, | 47 | mergeNavbar: true, |
47 | auto2top: true, | 48 | auto2top: true, |
48 | autoHeader: true, | 49 | autoHeader: true, |
49 | subMaxLevel: 2, | ||
50 | fallbackLanguages: [ | 50 | fallbackLanguages: [ |
51 | 'de', | 51 | 'de', |
52 | 'es', | 52 | 'es', |
@@ -76,6 +76,36 @@ | |||
76 | }, | 76 | }, |
77 | depth: 6 | 77 | depth: 6 |
78 | }, | 78 | }, |
79 | markdown: { | ||
80 | smartypants: true, | ||
81 | smartLists: true, | ||
82 | }, | ||
83 | copyCode: { | ||
84 | buttonText: { | ||
85 | '/zh-cn/': '点击复制', | ||
86 | '/ru/' : 'Скопировать в буфер обмена', | ||
87 | '/de-de/': 'Klicken Sie zum Kopieren', | ||
88 | '/es/' : 'Haga clic para copiar', | ||
89 | '/' : 'Copy to clipboard' | ||
90 | }, | ||
91 | errorText: { | ||
92 | '/zh-cn/': '错误', | ||
93 | '/ru/' : 'ошибка', | ||
94 | '/' : 'Error' | ||
95 | }, | ||
96 | successText: { | ||
97 | '/zh-cn/': '复制', | ||
98 | '/ru/' : 'Скопировано', | ||
99 | '/de-de/': 'Kopiert', | ||
100 | '/es/' : 'Copiado', | ||
101 | '/' : 'Copied' | ||
102 | } | ||
103 | }, | ||
104 | toc: { | ||
105 | scope: '.markdown-section', | ||
106 | headings: 'h1, h2, h3, h4, h5, h6', | ||
107 | title: 'Table of Contents', | ||
108 | }, | ||
79 | plugins: [ | 109 | plugins: [ |
80 | function (hook, vm) { | 110 | function (hook, vm) { |
81 | hook.beforeEach(function (html) { | 111 | hook.beforeEach(function (html) { |
@@ -98,6 +128,8 @@ | |||
98 | <script src="//unpkg.com/docsify/lib/docsify.min.js"></script> | 128 | <script src="//unpkg.com/docsify/lib/docsify.min.js"></script> |
99 | <script src="//unpkg.com/docsify/lib/plugins/search.min.js"></script> | 129 | <script src="//unpkg.com/docsify/lib/plugins/search.min.js"></script> |
100 | <script src="//unpkg.com/docsify/lib/plugins/emoji.min.js"></script> | 130 | <script src="//unpkg.com/docsify/lib/plugins/emoji.min.js"></script> |
131 | <script src="//unpkg.com/docsify-copy-code@2"></script> | ||
132 | <script src="//unpkg.com/docsify-toc@1.0.0/dist/toc.js"></script> | ||
101 | <script src="//unpkg.com/prismjs/components/prism-bash.min.js"></script> | 133 | <script src="//unpkg.com/prismjs/components/prism-bash.min.js"></script> |
102 | <script src="//unpkg.com/prismjs/components/prism-c.min.js"></script> | 134 | <script src="//unpkg.com/prismjs/components/prism-c.min.js"></script> |
103 | <script src="//unpkg.com/prismjs/components/prism-cpp.min.js"></script> | 135 | <script src="//unpkg.com/prismjs/components/prism-cpp.min.js"></script> |