File tree Expand file tree Collapse file tree 4 files changed +14
-15
lines changed Expand file tree Collapse file tree 4 files changed +14
-15
lines changed Original file line number Diff line number Diff line change 1
1
{
2
- "index_name" : " imlyk " ,
3
- "start_urls" : [" https://imlyk .cn/" , " https://www.imlyk .cn/" ],
2
+ "index_name" : " javashub " ,
3
+ "start_urls" : [" https://javashub .cn/" , " https://www.javashub .cn/" ],
4
4
"selectors" : {
5
5
"lvl0" : " .theme-hope-content h1" ,
6
6
"lvl1" : " .theme-hope-content h1" ,
Original file line number Diff line number Diff line change 1
1
{
2
- "index_name": "imlyk ",
2
+ "index_name": "javashub ",
3
3
"rateLimit": 8,
4
4
"start_urls": [
5
- "https://imlyk .cn/"
5
+ "https://javashub .cn/"
6
6
],
7
- "discoveryPatterns": ["https://imlyk .cn/**"],
7
+ "discoveryPatterns": ["https://javashub .cn/**"],
8
8
"recordProps": {
9
9
"lvl0": {
10
10
"selectors": ".sidebar-heading.active",
Original file line number Diff line number Diff line change @@ -5,32 +5,31 @@ new Crawler({
5
5
startUrls : [
6
6
// 这是 Algolia 开始抓取网站的初始地址
7
7
// 如果你的网站被分为数个独立部分,你可能需要在此设置多个入口链接
8
- "https://imlyk .cn" , "https://www.imlyk .cn"
8
+ "https://javashub .cn" , "https://www.javashub .cn"
9
9
] ,
10
10
sitemaps : [
11
11
// 如果你在使用 Sitemap 插件 (如: @vuepress/plugin-sitemap),你可以提供 Sitemap 链接
12
- "https://imlyk .cn/sitemap.xml" ,
12
+ "https://javashub .cn/sitemap.xml" ,
13
13
] ,
14
14
ignoreCanonicalTo : false ,
15
15
exclusionPatterns : [
16
16
// 你可以通过它阻止 Algolia 抓取某些 URL
17
17
] ,
18
18
discoveryPatterns : [
19
19
// 这是 Algolia 抓取 URL 的范围
20
- "https://imlyk .cn/**" ,
20
+ "https://javashub .cn/**" ,
21
21
] ,
22
22
// 爬虫执行的计划时间,可根据文档更新频率设置
23
23
schedule : "at 02:00 every 1 day" ,
24
24
actions : [
25
25
// 你可以拥有多个 action,特别是你在一个域名下部署多个文档时
26
26
{
27
27
// 使用适当的名称为索引命名
28
- indexName : "imlyk " ,
28
+ indexName : "javashub " ,
29
29
// 索引生效的路径
30
30
pathsToMatch : [
31
- "https://imlyk.cn/**" ,
32
- "https://www.imlyk.cn/**" ,
33
- "https://imlyk.cn/src/**"
31
+ "https://javashub.cn/**" ,
32
+ "https://www.javashub.cn/**"
34
33
] ,
35
34
// 控制 Algolia 如何抓取你的站点
36
35
recordExtractor : ( { $, helpers } ) => {
Original file line number Diff line number Diff line change @@ -4,11 +4,11 @@ import navbar from "./navbar.js";
4
4
import sidebar from "./sidebar.js" ;
5
5
6
6
export default hopeTheme ( {
7
- hostname : "https://imlyk .cn/" ,
7
+ hostname : "https://javashub .cn/" ,
8
8
9
9
author : {
10
10
name : "JavasHub" ,
11
- url : "https://imlyk .cn/" ,
11
+ url : "https://javashub .cn/" ,
12
12
} ,
13
13
14
14
// 网站 logo
@@ -145,7 +145,7 @@ export default hopeTheme({
145
145
docsearch : {
146
146
appId : "KH7SY7AEUO" ,
147
147
apiKey : "c8df03a5a5e8ac753a318c6595fb6658" ,
148
- indexName : "imlyk" ,
148
+ indexName : "javashub" , // javashub
149
149
locales : {
150
150
"/" : {
151
151
placeholder : "搜索文档" ,
You can’t perform that action at this time.
0 commit comments