forked from Boris-code/feapder
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
183 lines (170 loc) · 7.34 KB
/
index.html
File metadata and controls
183 lines (170 loc) · 7.34 KB
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
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
<!DOCTYPE html>
<html lang="zh">
<head>
<meta charset="UTF-8">
<title>feapder-document</title>
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
<meta name="description" content="feapder是一款支持分布式、批次采集、任务防丢、报警丰富的python爬虫框架">
<meta name="keywords"
content="feapder,scrapy,feapder文档,scrapy文档,feapder document,scrapy document,feapder 教程,scrapy 教程,爬虫,爬虫框架,Boris,批次爬虫,分布式爬虫">
<meta name="viewport"
content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
<meta name="baidu-site-verification" content="code-5vXrzaZgX6" />
<link rel="stylesheet" href="./lib/docsify/lib/themes/vue.css">
<!-- 谷歌统计 -->
<!-- Global site tag (gtag.js) - Google Analytics -->
<script async src="https://www.googletagmanager.com/gtag/js?id=G-KS7S55K3YN"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag() { dataLayer.push(arguments); }
gtag('js', new Date());
gtag('config', 'G-KS7S55K3YN');
</script>
<!-- 百度统计 -->
<script>
var _hmt = _hmt || [];
(function () {
var hm = document.createElement("script");
hm.src = "https://hm.baidu.com/hm.js?f45b875b62fd14ec127215dd2057b3cd";
var s = document.getElementsByTagName("script")[0];
s.parentNode.insertBefore(hm, s);
})();
</script>
</head>
<body>
<div id="app"></div>
<script>
window.$docsify = {
name: 'feapder-document',
repo: 'https://github.com/Boris-code/feapder',
loadNavbar: true,
loadSidebar: true,
coverpage: true,
auto2top: true,
maxLevel: 2,
subMaxLevel: 3,
search: {
placeholder: '搜索',
noData: '找不到结果!',
depth: 3
},
alias: {
'/.*/_sidebar.md': '/_sidebar.md',//防止意外回退
'/.*/_navbar.md': '/_navbar.md'
},
ga: 'UA-144208445-1',
plugins: [
function (hook) {
var header = [
'<p>',
'<a href="https://www.aliyun.com/sale-season/2020/procurement-new-members?userCode=44mjc0yx">',
'<img src="/images/aliyun_sale.jpg" alt="阿里云" width="640px" height="60px">',
'</a>',
'</p>'
].join('');
var footer = [
'<hr/>',
'<footer style="text-align: center">',
'<span><a href="http://www.beian.miit.gov.cn/" target="_blank">苏ICP备19059396号-1</a></span>',
'</footer>'
].join('');
hook.afterEach(function (html) {
// var isReadme = window.location.href.indexOf("README");
var isReadme = 1; // 可以投放广告
if (isReadme === -1) {
return header + html + footer;
} else {
return html;
}
});
}
]
}
</script>
<!-- 百度分享 -->
<script>
window._bd_share_config = {
"common": {
"bdSnsKey": {},
"bdText": "",
"bdMini": "2",
"bdMiniList": false,
"bdPic": "",
"bdStyle": "1",
"bdSize": "24"
},
"slide": {
"type": "slide",
"bdImg": "1",
"bdPos": "right",
"bdTop": "151.5"
},
"image": {
"viewList": ["weixin", "qzone", "tsina"],
"viewText": "分享到:",
"viewSize": "16"
},
"selectShare": {
"bdContainerClass": null,
"bdSelectMiniList": ["weixin", "qzone", "tsina"]
}
};
with (document) 0[(getElementsByTagName('head')[0] || body).appendChild(createElement('script')).src = 'http://bdimg.share.baidu.com/static/api/js/share.js?v=89860593.js?cdnversion=' + ~(-new Date() / 36e5)];
</script>
<!--gitter 聊天室 -->
<script>
((window.gitter = {}).chat = {}).options = {
//需要在gitter上创建rootm
room: 'feapder/community',
preload: true,
activation: true
};
</script>
<script src="https://sidecar.gitter.im/dist/sidecar.v1.js" async defer></script>
<!-- 评论 -->
<link rel="stylesheet" href="//cdn.jsdelivr.net/npm/gitalk/dist/gitalk.css">
<script src="//cdn.jsdelivr.net/npm/docsify/lib/plugins/gitalk.min.js"></script>
<script src="//cdn.jsdelivr.net/npm/gitalk/dist/gitalk.min.js"></script>
<script>
var path = location.href.match(/(?<=#)[^?]*/g)
path = path ? path[0] : "/"
const gitalk = new Gitalk({
clientID: '9bbc1bce85637dc3fd74',
clientSecret: 'fff857ba856732b11b0e38e18103ff3444c667d6',
repo: 'feapder',
owner: 'Boris-code',
admin: 'Boris-code',
proxy: 'https://shielded-brushlands-08810.herokuapp.com/https://github.com/login/oauth/access_token',
id: decodeURI(path), // 取地址#xxx? 中的xxx, 防止默认的评论id超过50字
// facebook-like distraction free mode
distractionFreeMode: false
})
// 监听URL中hash的变化,如果发现换了一个MD文件,那么刷新页面,解决整个网站使用一个gitalk评论issues的问题。
window.onhashchange = function (event) {
if (event.newURL.indexOf("#") !== -1 && event.oldURL.indexOf("#") !== -1) {
if (event.newURL.match(/(?<=#)[^?]*/g)[0] !== event.oldURL.match(/(?<=#)[^?]*/g)[0]) {
if (event.newURL.indexOf("?") === -1) {
location.replace(event.newURL)
location.reload()
}
}
}
}
// 由于docsify/lib/plugins/gitalk.min.js文件中已经有下面代码了,所以不需要在写一次了
// gitalk.render('gitalk-container'); // 渲染Gitalk评论组件
</script>
<!-- 其他插件 -->
<script src="./lib/docsify/lib/docsify.min.js"></script>
<script src="./lib/docsify/lib/plugins/ga.js"></script>
<script src="./lib/docsify/lib/plugins/search.js"></script>
<script src="./lib/docsify-copy-code/dist/docsify-copy-code.min.js"></script>
<script src="./lib/prismjs/components/prism-bash.js"></script>
<script src="./lib/prismjs/components/prism-java.js"></script>
<script src="./lib/prismjs/components/prism-sql.js"></script>
<script src="./lib/prismjs/components/prism-yaml.js"></script>
<script src="./lib/prismjs/components/prism-python.js"></script>
<script src="//cdn.jsdelivr.net/npm/docsify/lib/plugins/zoom-image.min.js"></script>
<!-- 分页导航 -->
<script src="//cdn.jsdelivr.net/npm/docsify-pagination/dist/docsify-pagination.min.js"></script>
</body>
</html>