1 Star 0 Fork 155

shaffee/docs-online

forked from RT-Thread/docs-online 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
index.html 4.47 KB
一键复制 编辑 原始数据 按行查看 历史
yangjie11 提交于 2021-03-23 10:20 . [add]alias of navbar
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport" content="width=device-width,initial-scale=1">
<meta charset="UTF-8">
<title>RT-Thread 文档中心</title>
<link rel="icon" href="_media/icon.png">
<!-- Theme -->
<link rel="stylesheet" href="_styles/vue.css">
<link rel="stylesheet" href="_styles/sidebar.min.css">
<!-- <link rel="stylesheet" href="_styles/sweetalert.min.css" type='text/css' media='all' /> -->
</head>
<body>
<div id="app">Loading ...</div>
<script>
window.$docsify = {
coverpage: true,
auto2top: true,
executeScript: true,
relativePath: true,
loadNavbar: true,
loadSidebar: true,
mergeNavbar: true,
maxLevel: 6,
subMaxLevel: 2,
repo: 'https://github.com/RT-Thread/rt-thread',
name: '<span>RT-Thread 文档中心</span>',
logo: '_media/logo.png height = "30px"',
coverpage: ['/'],
requestHeaders: {
'cache-control': 'max-age=5',
},
scrollToTop: {
auto: true,
text: 'Top',
right: 15,
bottom: 15,
offset: 500
},
'flexible-alerts': {
style: 'flat'
},
alias: {
'/rt-thread-version/rt-thread-nano/.*/_sidebar.md': '/rt-thread-version/rt-thread-nano/_sidebar.md',
'/rt-thread-version/rt-thread-smart/.*/_sidebar.md': '/rt-thread-version/rt-thread-smart/_sidebar.md',
'/rt-thread-version/rt-thread-standard/.*/_sidebar.md': '/rt-thread-version/rt-thread-standard/_sidebar.md',
'/development-tools/.*/_sidebar.md': '/development-tools/_sidebar.md',
'/rt-thread-version/rt-thread-nano/.*/_navbar.md': '/rt-thread-version/rt-thread-nano/_navbar.md',
'/rt-thread-version/rt-thread-smart/.*/_navbar.md': '/rt-thread-version/rt-thread-smart/_navbar.md',
'/rt-thread-version/rt-thread-standard/.*/_navbar.md': '/rt-thread-version/rt-thread-standard/_navbar.md',
'/development-tools/.*/_navbar.md': '/development-tools/_navbar.md',
'/other/.*/_navbar.md': '/other/novice-guide/_navbar.md',
},
tabs: {
persist: true, // default
sync: true, // default
theme: 'classic', // default
tabComments: true, // default
tabHeadings: true // default
},
search: {
placeholder: '搜索',
noData: '找不到结果!',
depth: 3
},
formatUpdated: '{YYYY}-{MM}-{DD} {HH}:{mm}',
search: {
noData: {
'/': '没有结果'
},
paths: 'auto',
placeholder: {
'/': '搜索'
}
},
plugins: [
function (hook, vm) {
hook.beforeEach(function (html) {
var url = 'https://gitee.com/rtthread/docs-online/blob/master/' + vm.route.file
var editHtml = '[:pencil: 修改此文档 ](' + url + ') &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;[:page_with_curl:《修改规范说明》](/README?id=在线文档开发介绍)\n'
return '_Last modified {docsify-updated}_ ' + '\n\n'+
editHtml +
html +
'\n\n----\n' +
'>我有疑问: [RT-Thread 官方论坛](https://club.rt-thread.org/)'
})
}
]
}
</script>
<script src="_scripts/docsify.min.js"></script>
<script src="_scripts/search.min.js"></script>
<script src="_scripts/emoji.min.js"></script>
<script src="_scripts/prism-c.min.js"></script>
<script src="_scripts/docsify-tabs.js"></script>
<script src="_scripts/docsify-sidebar-collapse.min.js"></script>
<script src="_scripts/docsify-scroll-to-top.min.js"></script>
<script src="_scripts/docsify-copy-code.js"></script>
<!-- <script src="_scripts/sweetalert.min.js"></script>
<script>
document.body.oncopy = function () {
swal("复制成功 🎉",
"如果你觉得本仓库不错,那就来 GitHub 给个 Star 吧 😊",
"success");
};
</script> -->
<script src="_scripts/zoom-image.min.js"></script>
<script src="_scripts/external-script.min.js"></script>
<!-- <script src="_scripts/sweetalert.min.js"></script> -->
<script src="_scripts/docsify-plugin-flexible-alerts.min.js"></script>
<script>
var _hmt = _hmt || [];
(function() {
var hm = document.createElement("script");
hm.src = "https://hm.baidu.com/hm.js?a6a32891739f0de6462245eb4fa7b59c";
var s = document.getElementsByTagName("script")[0];
s.parentNode.insertBefore(hm, s);
})();
</script>
</body>
</html>
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/wx_a28e819d60/docs-online.git
git@gitee.com:wx_a28e819d60/docs-online.git
wx_a28e819d60
docs-online
docs-online
master

搜索帮助