hyperf/docs/index.html

129 lines
4.5 KiB
HTML
Raw Normal View History

2019-03-08 12:04:46 +08:00
<!DOCTYPE html>
2020-11-20 21:30:38 +08:00
<html lang="zh">
2019-03-08 12:04:46 +08:00
<head>
<meta charset="UTF-8">
2019-03-21 13:55:39 +08:00
<title>Hyperf</title>
2019-03-08 12:04:46 +08:00
<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">
2021-09-08 08:46:10 +08:00
<link rel="shortcut icon" href="//hyperf.wiki/2.2/favicon.ico" />
2022-05-05 09:51:04 +08:00
<link rel="stylesheet" href="//unpkg.com/docsify@4/themes/vue.css">
2019-07-17 20:09:51 +08:00
<style>
.app-name-link img {
width: 16%;
}
</style>
2019-03-08 12:04:46 +08:00
</head>
<body>
<div id="app"></div>
2022-05-05 09:51:04 +08:00
<script src="//unpkg.com/docsify@4/lib/docsify.min.js"></script>
<script src="//unpkg.com/prismjs/components/prism-php.min.js"></script>
<script src="//unpkg.com/docsify-edit-on-github/index.js"></script>
<script src="//unpkg.com/mermaid/dist/mermaid.min.js"></script>
2019-03-08 12:04:46 +08:00
<script>
2020-02-27 13:52:09 +08:00
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]);
}
2019-03-08 12:04:46 +08:00
window.$docsify = {
name: 'Hyperf',
repo: 'hyperf/hyperf',
homepage: 'zh-cn/README.md',
2019-03-08 12:04:46 +08:00
loadSidebar: 'summary.md',
loadNavbar: true,
2019-12-12 16:24:04 +08:00
fallbackLanguages: ['zh-cn', 'en'],
2019-03-08 12:04:46 +08:00
mergeNavbar: true,
themeColor: '#3F51B5',
2019-07-17 20:09:51 +08:00
logo: '/logo.png',
2020-05-22 18:05:10 +08:00
auto2top: true,
2019-03-30 22:53:32 +08:00
subMaxLevel: 4,
2020-05-14 19:37:56 +08:00
topMargin: 20,
2019-07-01 13:49:51 +08:00
search: {
2019-12-09 00:34:44 +08:00
depth: 6,
2019-12-09 00:33:31 +08:00
noData: {
'/en/': 'No results!',
2019-12-12 19:05:47 +08:00
'/zh-cn/': '没有找到结果!',
'/zh-hk/': '沒有找到結果!',
'/zh-tw/': '沒有找到結果!',
2019-12-09 00:36:16 +08:00
'/': '没有找到结果!'
2019-12-09 00:33:31 +08:00
},
paths: 'auto',
placeholder: {
2019-12-09 00:34:07 +08:00
'/en/': 'Type to Search',
2019-12-12 19:05:47 +08:00
'/zh-cn/': '输入关键词搜索',
'/zh-hk/': '輸入關鍵詞搜索',
'/zh-tw/': '輸入關鍵詞搜索',
2019-12-09 00:36:16 +08:00
'/': '输入关键词搜索'
2020-08-14 08:23:35 +08:00
},
pathNamespaces: ['/zh-cn', '/zh-tw', '/zh-hk', '/en']
2019-06-25 11:20:05 +08:00
},
2019-07-17 20:09:51 +08:00
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/',
'/': '#/',
2019-07-17 20:09:51 +08:00
},
2019-06-25 11:20:05 +08:00
plugins: [
EditOnGithubPlugin.create('https://github.com/hyperf/hyperf/blob/master/docs/'),
2021-09-14 18:13:16 +08:00
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] + '/';
}
}
})
}
2020-02-27 13:52:09 +08:00
],
2020-03-11 23:07:53 +08:00
plantuml: {
skin: 'classic',
},
2020-02-27 13:52:09 +08:00
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);
}
}
}
2019-03-08 12:04:46 +08:00
}
</script>
2022-05-05 09:51:04 +08:00
<script src="//unpkg.com/docsify-copy-code@2/dist/docsify-copy-code.min.js"></script>
<script src="//unpkg.com/docsify@4/lib/plugins/search.min.js"></script>
<script src="//unpkg.com/docsify-plantuml/dist/docsify-plantuml.min.js"></script>
<script src="//unpkg.com/docsify@4/lib/plugins/zoom-image.min.js"></script>
2019-12-09 00:10:42 +08:00
<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>
2019-03-08 12:04:46 +08:00
</body>
2019-07-01 14:05:59 +08:00
</html>