-
Notifications
You must be signed in to change notification settings - Fork 60
/
Copy pathindex.html
114 lines (109 loc) · 4.51 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<title>Welcome to History by ywz978020607</title>
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
<meta name="description" content="ywz978020607's Home" />
<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="//fastly.jsdelivr.net/npm/docsify/lib/themes/vue.css" />
<link rel="stylesheet" href="//fastly.jsdelivr.net/npm/docsify-darklight-theme@latest/dist/style.min.css">
<link rel="stylesheet" href="//fastly.jsdelivr.net/npm/gitalk/dist/gitalk.css" />
<!-- <link rel="icon" type="image/png" sizes="32x32" href="images/favicon-32x32.png" />
<link rel="icon" type="image/png" sizes="16x16" href="images/favicon-16x16.png" /> -->
<style>
.markdown-section code {
font-weight: 400;
}
</style>
</head>
<body>
<nav>
<ul>
<li><a href="#">中文</a></li>
<li><a href="#READMI_EN">En</a></li>
</ul>
</nav>
<div id="app">欢迎来到Sharklet开源社区</div>
<script>
const isEn = () => location.hash.includes('README_EN');
window.$docsify = {
name: "Sharklet",
repo: 'ywz978020607/History',
logo: "/img/32x32.png",
auto2top: true,
search: ["/"],
contributors: {
repo: 'ywz978020607/History',
ignores: [],
// ignores: ['/README.md', '/README_EN.md', '/solution/README.md', '/solution/README_EN.md', '/summary.md'],
image: {
margin: '0.2em',
isRound: true
}
},
darklightTheme: {
defaultTheme: 'light',
siteFont: 'Source Sans Pro,Helvetica Neue,Arial,sans-serif',
codeFontFamily: 'Roboto Mono, Monaco, courier, monospace',
bodyFontSize: '15px',
dark: {
background: '#191919',
highlightColor: '#e96900',
codeBackgroundColor: '#202020',
codeTextColor: '#b4b4b4',
},
light: {
highlightColor: '#e96900',
}
},
plugins: [
function (hook, vm) {
hook.beforeEach(function (html) {
// const cn = vm.route.file.indexOf('README_CN') != -1
const userContent = /githubusercontent\.com/.test(vm.route.file)
const url = userContent ? vm.route.file
.replace('raw.githubusercontent.com', 'github.com')
.replace(/\/master/, '/blob/master') : 'https://github.com/ywz978020607/History/blob/master/' + vm.route.file
const github = `[GitHub](${url})`
// const gitee = `[Gitee](${url.replace("github", "gitee").replace("doocs.github.io", "doocs")})`
const editHtml = isEn() ? `:memo: Edit on ${github} \n` : `:memo: 在 ${github} 编辑\n`
return editHtml + html
})
hook.afterEach(function (html) {
// const cn = vm.route.file.indexOf('README_CN') != -1
const copyright = !isEn() ? ' 版权所有' : '. All Rights Reserved'
const currentYear = new Date().getFullYear()
const footer = `<footer><span>Copyright © 2018-${currentYear} <a href="https://github.com/ywz978020607" target="_blank">ywz978020607</a>${copyright}</footer>`
return html + footer
});
},
],
};
</script>
<script src="//fastly.jsdelivr.net/npm/docsify/lib/docsify.min.js"></script>
<script src="//fastly.jsdelivr.net/npm/docsify-copy-code@2.1.1/dist/docsify-copy-code.min.js"></script>
<script src="//fastly.jsdelivr.net/npm/docsify/lib/plugins/search.min.js"></script>
<script src="//fastly.jsdelivr.net/npm/docsify/lib/plugins/emoji.min.js"></script>
<script src="//fastly.jsdelivr.net/npm/docsify/lib/plugins/zoom-image.min.js"></script>
<script src="//fastly.jsdelivr.net/npm/docsify-contributors@latest/dist/index.min.js"></script>
<script src="//fastly.jsdelivr.net/npm/docsify/lib/plugins/gitalk.min.js"></script>
<script src="//fastly.jsdelivr.net/npm/gitalk/dist/gitalk.min.js"></script>
<script src="//fastly.jsdelivr.net/npm/docsify-darklight-theme@latest/dist/index.min.js"></script>
<script>
const gitalk = new Gitalk({
clientID: "1f40925302c5814873f7",
clientSecret: "71d342e709c3b2edf3291995171aa419eb45330b",
repo: "ywz978020607.github.io",
owner: "ywz978020607",
admin: ["ywz978020607"],
number: 3,
distractionFreeMode: true,
labels: ["talk"],
title: "Welcome to talk with developers.",
perPage: 15,
});
</script>
</body>
</html>