@@ -49,9 +49,9 @@ export default defineConfig({
49
49
50
50
themeConfig : {
51
51
nav : [
52
- { text : 'Guide' , link : '/guide/index ' } ,
53
- { text : 'API' , link : '/api/index ' } ,
54
- { text : 'Type' , link : '/type/index ' } ,
52
+ { text : 'Guide' , link : '/guide/' } ,
53
+ { text : 'API' , link : '/api/' } ,
54
+ { text : 'Type' , link : '/type/' } ,
55
55
{
56
56
text : 'About' ,
57
57
items : [
@@ -74,7 +74,7 @@ export default defineConfig({
74
74
{
75
75
text : 'Getting Started' ,
76
76
items : [
77
- { text : 'Introduction' , link : '/guide/index ' } ,
77
+ { text : 'Introduction' , link : '/guide/' } ,
78
78
{ text : 'Quick Start' , link : '/guide/quick-start' }
79
79
]
80
80
} ,
@@ -140,7 +140,7 @@ export default defineConfig({
140
140
{
141
141
text : 'crawler' ,
142
142
items : [
143
- { text : 'createCrawl' , link : '/api/index ' } ,
143
+ { text : 'createCrawl' , link : '/api/' } ,
144
144
{ text : 'crawlPage' , link : '/api/crawl-page' } ,
145
145
{ text : 'crawlHTML' , link : '/api/crawl-html' } ,
146
146
{ text : 'crawlData' , link : '/api/crawl-data' } ,
@@ -169,7 +169,7 @@ export default defineConfig({
169
169
{
170
170
text : 'crawler' ,
171
171
items : [
172
- { text : 'createCrawl' , link : '/type/index ' } ,
172
+ { text : 'createCrawl' , link : '/type/' } ,
173
173
{ text : 'crawlPage' , link : '/type/crawl-page' } ,
174
174
{ text : 'crawlHTML' , link : '/type/crawl-html' } ,
175
175
{ text : 'crawlData' , link : '/type/crawl-data' } ,
@@ -209,6 +209,10 @@ export default defineConfig({
209
209
editLink : {
210
210
pattern : 'https://github.com/coder-hxl/x-crawl/edit/main/docs/:path' ,
211
211
text : 'Suggest changes to this page'
212
+ } ,
213
+
214
+ outline : {
215
+ level : [ 2 , 3 ]
212
216
}
213
217
}
214
218
} ,
@@ -222,9 +226,9 @@ export default defineConfig({
222
226
themeConfig : {
223
227
// https://vitepress.dev/reference/default-theme-config
224
228
nav : [
225
- { text : '指南' , link : '/cn/guide/index ' } ,
226
- { text : 'API' , link : '/cn/api/index ' } ,
227
- { text : 'Type' , link : '/cn/type/index ' } ,
229
+ { text : '指南' , link : '/cn/guide/' } ,
230
+ { text : 'API' , link : '/cn/api/' } ,
231
+ { text : 'Type' , link : '/cn/type/' } ,
228
232
{
229
233
text : '关于' ,
230
234
items : [
@@ -263,7 +267,7 @@ export default defineConfig({
263
267
{
264
268
text : '开始' ,
265
269
items : [
266
- { text : '简介' , link : '/cn/guide/index ' } ,
270
+ { text : '简介' , link : '/cn/guide/' } ,
267
271
{ text : '快速上手' , link : '/cn/guide/quick-start' }
268
272
]
269
273
} ,
@@ -323,7 +327,7 @@ export default defineConfig({
323
327
{
324
328
text : '爬虫' ,
325
329
items : [
326
- { text : 'createCrawl' , link : '/cn/api/index ' } ,
330
+ { text : 'createCrawl' , link : '/cn/api/' } ,
327
331
{ text : 'crawlPage' , link : '/cn/api/crawl-page' } ,
328
332
{ text : 'crawlHTML' , link : '/cn/api/crawl-html' } ,
329
333
{ text : 'crawlData' , link : '/cn/api/crawl-data' } ,
@@ -352,7 +356,7 @@ export default defineConfig({
352
356
{
353
357
text : '爬虫' ,
354
358
items : [
355
- { text : 'createCrawl' , link : '/cn/type/index ' } ,
359
+ { text : 'createCrawl' , link : '/cn/type/' } ,
356
360
{ text : 'crawlPage' , link : '/cn/type/crawl-page' } ,
357
361
{ text : 'crawlHTML' , link : '/cn/type/crawl-html' } ,
358
362
{ text : 'crawlData' , link : '/cn/type/crawl-data' } ,
@@ -394,6 +398,11 @@ export default defineConfig({
394
398
text : '为此页提供修改建议'
395
399
} ,
396
400
401
+ outline : {
402
+ label : '本页目录' ,
403
+ level : [ 2 , 3 ]
404
+ } ,
405
+
397
406
lastUpdated : { text : '最后更新于' }
398
407
}
399
408
}
0 commit comments