Skip to content

Commit 1dfff68

Browse files
author
JavasHub
committed
update theme
1 parent f006e9d commit 1dfff68

File tree

4 files changed

+14
-15
lines changed

4 files changed

+14
-15
lines changed

config/config.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
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/"],
44
"selectors": {
55
"lvl0": ".theme-hope-content h1",
66
"lvl1": ".theme-hope-content h1",

config/config.json.bak

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
{
2-
"index_name": "imlyk",
2+
"index_name": "javashub",
33
"rateLimit": 8,
44
"start_urls": [
5-
"https://imlyk.cn/"
5+
"https://javashub.cn/"
66
],
7-
"discoveryPatterns": ["https://imlyk.cn/**"],
7+
"discoveryPatterns": ["https://javashub.cn/**"],
88
"recordProps": {
99
"lvl0": {
1010
"selectors": ".sidebar-heading.active",

config/爬虫.js

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,32 +5,31 @@ new Crawler({
55
startUrls: [
66
// 这是 Algolia 开始抓取网站的初始地址
77
// 如果你的网站被分为数个独立部分,你可能需要在此设置多个入口链接
8-
"https://imlyk.cn", "https://www.imlyk.cn"
8+
"https://javashub.cn", "https://www.javashub.cn"
99
],
1010
sitemaps: [
1111
// 如果你在使用 Sitemap 插件 (如: @vuepress/plugin-sitemap),你可以提供 Sitemap 链接
12-
"https://imlyk.cn/sitemap.xml",
12+
"https://javashub.cn/sitemap.xml",
1313
],
1414
ignoreCanonicalTo: false,
1515
exclusionPatterns: [
1616
// 你可以通过它阻止 Algolia 抓取某些 URL
1717
],
1818
discoveryPatterns: [
1919
// 这是 Algolia 抓取 URL 的范围
20-
"https://imlyk.cn/**",
20+
"https://javashub.cn/**",
2121
],
2222
// 爬虫执行的计划时间,可根据文档更新频率设置
2323
schedule: "at 02:00 every 1 day",
2424
actions: [
2525
// 你可以拥有多个 action,特别是你在一个域名下部署多个文档时
2626
{
2727
// 使用适当的名称为索引命名
28-
indexName: "imlyk",
28+
indexName: "javashub",
2929
// 索引生效的路径
3030
pathsToMatch: [
31-
"https://imlyk.cn/**",
32-
"https://www.imlyk.cn/**",
33-
"https://imlyk.cn/src/**"
31+
"https://javashub.cn/**",
32+
"https://www.javashub.cn/**"
3433
],
3534
// 控制 Algolia 如何抓取你的站点
3635
recordExtractor: ({ $, helpers }) => {

src/.vuepress/theme.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,11 @@ import navbar from "./navbar.js";
44
import sidebar from "./sidebar.js";
55

66
export default hopeTheme({
7-
hostname: "https://imlyk.cn/",
7+
hostname: "https://javashub.cn/",
88

99
author: {
1010
name: "JavasHub",
11-
url: "https://imlyk.cn/",
11+
url: "https://javashub.cn/",
1212
},
1313

1414
// 网站 logo
@@ -145,7 +145,7 @@ export default hopeTheme({
145145
docsearch: {
146146
appId: "KH7SY7AEUO",
147147
apiKey: "c8df03a5a5e8ac753a318c6595fb6658",
148-
indexName: "imlyk",
148+
indexName: "javashub", // javashub
149149
locales: {
150150
"/": {
151151
placeholder: "搜索文档",

0 commit comments

Comments
 (0)