68072e931a
* expose zh-cn docs, delete bad zh docs, add docs for adding translations * Update docs/translating.md Co-Authored-By: noroadsleft <18669334+noroadsleft@users.noreply.github.com> * Update docs/translating.md Co-Authored-By: noroadsleft <18669334+noroadsleft@users.noreply.github.com> * update for python 3
85 lines
3.1 KiB
HTML
85 lines
3.1 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<title>QMK Firmware</title>
|
|
<link rel="icon" type="image/png" href="gitbook/images/favicon.png">
|
|
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
|
|
<meta name="description" content="Description">
|
|
<meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
|
|
<meta property="og:title" content="QMK Firmware Docs">
|
|
<meta property="og:type" content="website">
|
|
<meta property="og:description" content="The full documentation of the open-source firmware">
|
|
<meta property="og:image" content="https://i.imgur.com/svjvIrw.jpg">
|
|
<meta property="og:url" content="https://docs.qmk.fm">
|
|
<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="qmk.css" title="dark" disabled>
|
|
<link rel="stylesheet" href="sidebar.css" />
|
|
</head>
|
|
<body>
|
|
<div id="app"></div>
|
|
<script>
|
|
window.$docsify = {
|
|
alias : {
|
|
'/en/(.*)': '/$1',
|
|
'/en-us/(.*)': '/$1',
|
|
'/en-gb/(.*)': '/$1',
|
|
'/.*/_langs.md': '/_langs.md',
|
|
},
|
|
basePath: '/',
|
|
name: 'QMK Firmware',
|
|
nameLink: '/',
|
|
repo: 'qmk/qmk_firmware',
|
|
loadSidebar: '_summary.md',
|
|
loadNavbar: '_langs.md',
|
|
mergeNavbar: true,
|
|
auto2top: true,
|
|
formatUpdated: '{YYYY}/{MM}/{DD} {HH}:{mm}',
|
|
search: {
|
|
paths: 'auto',
|
|
placeholder: {
|
|
'/zh-cn/': '搜索',
|
|
'/': 'Search'
|
|
},
|
|
noData: {
|
|
'/zh-cn/': '没有结果!',
|
|
'/': 'No results!'
|
|
},
|
|
depth: 6
|
|
},
|
|
plugins: [
|
|
function (hook, vm) {
|
|
hook.beforeEach(function (html) {
|
|
if (/githubusercontent\.com/.test(vm.route.file)) {
|
|
url = vm.route.file
|
|
.replace('raw.githubusercontent.com', 'github.com')
|
|
.replace(/\/master/, '/blob/master')
|
|
} else {
|
|
url = 'https://github.com/qmk/qmk_firmware/blob/master/docs/' + vm.route.file
|
|
}
|
|
var editHtml = '[:memo: Edit Document](' + url + ')\n'
|
|
return html
|
|
+ '\n\n----\n\n'
|
|
+ editHtml
|
|
})
|
|
},
|
|
]
|
|
}
|
|
</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/emoji.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-cpp.min.js"></script>
|
|
<script src="//unpkg.com/prismjs/components/prism-json.min.js"></script>
|
|
<script src="//unpkg.com/prismjs/components/prism-makefile.min.js"></script>
|
|
<script>
|
|
// Register the offline cache worker
|
|
if (typeof navigator.serviceWorker !== 'undefined') {
|
|
navigator.serviceWorker.register('sw.js')
|
|
}
|
|
</script>
|
|
</body>
|
|
</html>
|