mirror of
https://gitee.com/hyperf/hyperf.git
synced 2024-11-30 02:37:58 +08:00
137 lines
4.9 KiB
HTML
137 lines
4.9 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="zh">
|
|
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<title>Hyperf</title>
|
|
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
|
|
<meta name="description" content="Hyperf框架官方文档">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0">
|
|
<link rel="apple-touch-icon" href="/3.0/logo.png">
|
|
<link rel="manifest" href="/3.0/manifest.json">
|
|
<meta name="apple-mobile-web-app-capable" content="yes" />
|
|
<link rel="shortcut icon" href="/3.0/favicon.ico" />
|
|
<link rel="stylesheet" href="//unpkg.hyperf.wiki/docsify@4/themes/vue.css">
|
|
<style>
|
|
.app-name-link img {
|
|
width: 16%;
|
|
}
|
|
</style>
|
|
</head>
|
|
|
|
<body>
|
|
<div id="app"></div>
|
|
<script src="//unpkg.hyperf.wiki/docsify@4/lib/docsify.min.js"></script>
|
|
<script src="//unpkg.hyperf.wiki/prismjs/components/prism-php.min.js"></script>
|
|
<script src="//unpkg.hyperf.wiki/docsify-edit-on-github/index.js"></script>
|
|
<script src="//unpkg.hyperf.wiki/mermaid@9/dist/mermaid.min.js"></script>
|
|
<script>
|
|
mermaid.initialize({ startOnLoad: false });
|
|
|
|
// Set html "lang" attribute based on URL
|
|
var lang = location.hash.match(/#\/(zh-tw|zh-hk|en)\//);
|
|
if (lang) {
|
|
document.documentElement.setAttribute('lang', lang[1]);
|
|
}
|
|
|
|
window.$docsify = {
|
|
name: 'Hyperf',
|
|
repo: 'hyperf/hyperf',
|
|
homepage: 'zh-cn/README.md',
|
|
loadSidebar: 'summary.md',
|
|
loadNavbar: true,
|
|
fallbackLanguages: ['zh-cn', 'en'],
|
|
mergeNavbar: true,
|
|
themeColor: '#3F51B5',
|
|
logo: '/logo.png',
|
|
auto2top: true,
|
|
subMaxLevel: 4,
|
|
topMargin: 20,
|
|
search: {
|
|
depth: 6,
|
|
noData: {
|
|
'/en/': 'No results!',
|
|
'/zh-cn/': '没有找到结果!',
|
|
'/zh-hk/': '沒有找到結果!',
|
|
'/zh-tw/': '沒有找到結果!',
|
|
'/': '没有找到结果!'
|
|
},
|
|
paths: 'auto',
|
|
placeholder: {
|
|
'/en/': 'Type to Search',
|
|
'/zh-cn/': '输入关键词搜索',
|
|
'/zh-hk/': '輸入關鍵詞搜索',
|
|
'/zh-tw/': '輸入關鍵詞搜索',
|
|
'/': '输入关键词搜索'
|
|
},
|
|
pathNamespaces: ['/zh-cn', '/zh-tw', '/zh-hk', '/en']
|
|
},
|
|
alias: {
|
|
'/summary.md': '/zh-cn/summary.md',
|
|
'/.*/_navbar.md': '/_navbar.md',
|
|
'/zh-cn/.*/summary.md': '/zh-cn/summary.md',
|
|
'/zh-tw/.*/summary.md': '/zh-tw/summary.md',
|
|
'/zh-hk/.*/summary.md': '/zh-hk/summary.md',
|
|
'/en/.*/summary.md': '/en/summary.md',
|
|
},
|
|
nameLink: {
|
|
'/zh-cn/': '#/zh-cn/',
|
|
'/zh-tw/': '#/zh-tw/',
|
|
'/zh-hk/': '#/zh-hk/',
|
|
'/en/': '#/en/',
|
|
'/': '#/',
|
|
},
|
|
plugins: [
|
|
EditOnGithubPlugin.create('https://github.com/hyperf/hyperf/blob/master/docs/'),
|
|
function(hook, vm) {
|
|
hook.beforeEach(function(content) {
|
|
var shortMatches = ['en'],
|
|
// zh-cn is the default so is not present
|
|
fullMatches = ['zh-tw', 'zh-hk'],
|
|
locale = (navigator.languages
|
|
? navigator.languages[0]
|
|
: (navigator.language || navigator.userLanguage)).toLowerCase();
|
|
|
|
for (var i = 0; i < shortMatches.length; i++) {
|
|
if (locale.substr(0, 2) === shortMatches[i] && vm.route.path === '/') {
|
|
window.location.hash = '/' + shortMatches[i] + '/';
|
|
}
|
|
}
|
|
|
|
for (i = 0; i < fullMatches.length; i++) {
|
|
if (locale === fullMatches[i] && vm.route.path === '/') {
|
|
window.location.hash = '/' + fullMatches[i] + '/';
|
|
}
|
|
}
|
|
})
|
|
}
|
|
],
|
|
plantuml: {
|
|
skin: 'classic',
|
|
},
|
|
markdown:{
|
|
renderer: {
|
|
code: function(code, lang) {
|
|
if (lang === "mermaid") {
|
|
return ('<div class="mermaid">' + mermaid.render(lang, code) + '</div>');
|
|
}
|
|
return this.origin.code.apply(this, arguments);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
</script>
|
|
<script src="//unpkg.hyperf.wiki/docsify-copy-code@2/dist/docsify-copy-code.min.js"></script>
|
|
<script src="//unpkg.hyperf.wiki/docsify@4/lib/plugins/search.min.js"></script>
|
|
<script src="//unpkg.hyperf.wiki/docsify-plantuml/dist/docsify-plantuml.min.js"></script>
|
|
<script src="//unpkg.hyperf.wiki/docsify@4/lib/plugins/zoom-image.min.js"></script>
|
|
<script type="text/javascript">var cnzz_protocol = (("https:" == document.location.protocol) ? "https://" : "http://");document.write(unescape("%3Cspan style='display:none;' id='cnzz_stat_icon_1278274447'%3E%3C/span%3E%3Cscript src='" + cnzz_protocol + "v1.cnzz.com/z_stat.php%3Fid%3D1278274447' type='text/javascript'%3E%3C/script%3E"));</script>
|
|
<script>
|
|
if (typeof navigator.serviceWorker !== 'undefined') {
|
|
navigator.serviceWorker.register('sw.js')
|
|
}
|
|
</script>
|
|
</body>
|
|
|
|
</html>
|