Files
hyperf-admin/docs/index.html

66 lines
2.9 KiB
HTML
Raw Normal View History

2020-06-16 22:33:55 +08:00
<!DOCTYPE html>
<html lang="en">
<head>
2020-06-17 07:49:45 +08:00
<meta charset="UTF-8">
<title>hyperf-admin</title>
<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">
<link rel="stylesheet" href="//unpkg.com/docsify/lib/themes/vue.css">
<link rel="shortcut icon" type="image/icon" href="/hyperf-admin/favicon.ico">
2020-06-16 22:33:55 +08:00
</head>
<body>
2020-06-17 07:49:45 +08:00
<div id="app"></div>
<script src="//unpkg.com/docsify/lib/docsify.min.js"></script>
<script>
2020-06-16 22:33:55 +08:00
window.$docsify = {
2020-06-17 07:49:45 +08:00
name: 'hyperf-admin',
//logo: '/logo.png',
repo: 'https://github.com/hyperf-admin',
//coverpage: true, // 开启封面
loadNavbar: true,
loadSidebar: true,
maxLevel: 4,
subMaxLevel: 3,
autoHeader: true,
search: {
maxAge: 86400000, // 过期时间,单位毫秒,默认一天
paths: 'auto', // or 'auto'
placeholder: 'Type to search'
},
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 {
2020-06-18 23:21:05 +08:00
url = 'https://github.com/hyperf-admin/hyperf-admin/edit/master/docs/' + vm.route.file
2020-06-17 07:49:45 +08:00
}
var editHtml = '[:memo: 编辑文档!](' + url + ')&nbsp;&nbsp;'
2020-06-16 22:33:55 +08:00
2020-06-17 07:49:45 +08:00
return html
+ '\n\n----\n\n'
+ editHtml
+ '<a href="https://docsify.js.org" target="_blank" style="color: inherit; font-weight: normal; text-decoration: none;">Powered by docsify</a>'
})
}
]
2020-06-16 22:33:55 +08:00
}
if (typeof navigator.serviceWorker !== 'undefined') {
navigator.serviceWorker.register('https://raw.githubusercontent.com/hyperf-admin/hyperf-admin.github.io/master/ws.js')
}
2020-06-17 07:49:45 +08:00
</script>
<script src="//unpkg.com/prismjs/components/prism-bash.js"></script>
<script src="//unpkg.com/prismjs/components/prism-php.js"></script>
<script src="//unpkg.com/prismjs/components/prism-json.js"></script>
<script src="//unpkg.com/prismjs/components/prism-sql.js"></script>
2020-06-17 08:54:59 +08:00
<script src="//unpkg.com/prismjs/components/prism-nginx.js"></script>
2020-06-17 07:49:45 +08:00
<script src="//cdn.jsdelivr.net/npm/docsify/lib/plugins/search.min.js"></script>
<script src="//unpkg.com/docsify-copy-code"></script>
<script src="//unpkg.com/docsify/lib/plugins/zoom-image.js"></script>
<!--<script src="//unpkg.com/docsify-pagination/dist/docsify-pagination.min.js"></script>-->
2020-06-16 22:33:55 +08:00
</body>
</html>