@@ -49,9 +49,9 @@ export default defineConfig({
4949
5050 themeConfig : {
5151 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/' } ,
5555 {
5656 text : 'About' ,
5757 items : [
@@ -74,7 +74,7 @@ export default defineConfig({
7474 {
7575 text : 'Getting Started' ,
7676 items : [
77- { text : 'Introduction' , link : '/guide/index ' } ,
77+ { text : 'Introduction' , link : '/guide/' } ,
7878 { text : 'Quick Start' , link : '/guide/quick-start' }
7979 ]
8080 } ,
@@ -140,7 +140,7 @@ export default defineConfig({
140140 {
141141 text : 'crawler' ,
142142 items : [
143- { text : 'createCrawl' , link : '/api/index ' } ,
143+ { text : 'createCrawl' , link : '/api/' } ,
144144 { text : 'crawlPage' , link : '/api/crawl-page' } ,
145145 { text : 'crawlHTML' , link : '/api/crawl-html' } ,
146146 { text : 'crawlData' , link : '/api/crawl-data' } ,
@@ -169,7 +169,7 @@ export default defineConfig({
169169 {
170170 text : 'crawler' ,
171171 items : [
172- { text : 'createCrawl' , link : '/type/index ' } ,
172+ { text : 'createCrawl' , link : '/type/' } ,
173173 { text : 'crawlPage' , link : '/type/crawl-page' } ,
174174 { text : 'crawlHTML' , link : '/type/crawl-html' } ,
175175 { text : 'crawlData' , link : '/type/crawl-data' } ,
@@ -209,6 +209,10 @@ export default defineConfig({
209209 editLink : {
210210 pattern : 'https://github.com/coder-hxl/x-crawl/edit/main/docs/:path' ,
211211 text : 'Suggest changes to this page'
212+ } ,
213+
214+ outline : {
215+ level : [ 2 , 3 ]
212216 }
213217 }
214218 } ,
@@ -222,9 +226,9 @@ export default defineConfig({
222226 themeConfig : {
223227 // https://vitepress.dev/reference/default-theme-config
224228 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/' } ,
228232 {
229233 text : '关于' ,
230234 items : [
@@ -263,7 +267,7 @@ export default defineConfig({
263267 {
264268 text : '开始' ,
265269 items : [
266- { text : '简介' , link : '/cn/guide/index ' } ,
270+ { text : '简介' , link : '/cn/guide/' } ,
267271 { text : '快速上手' , link : '/cn/guide/quick-start' }
268272 ]
269273 } ,
@@ -323,7 +327,7 @@ export default defineConfig({
323327 {
324328 text : '爬虫' ,
325329 items : [
326- { text : 'createCrawl' , link : '/cn/api/index ' } ,
330+ { text : 'createCrawl' , link : '/cn/api/' } ,
327331 { text : 'crawlPage' , link : '/cn/api/crawl-page' } ,
328332 { text : 'crawlHTML' , link : '/cn/api/crawl-html' } ,
329333 { text : 'crawlData' , link : '/cn/api/crawl-data' } ,
@@ -352,7 +356,7 @@ export default defineConfig({
352356 {
353357 text : '爬虫' ,
354358 items : [
355- { text : 'createCrawl' , link : '/cn/type/index ' } ,
359+ { text : 'createCrawl' , link : '/cn/type/' } ,
356360 { text : 'crawlPage' , link : '/cn/type/crawl-page' } ,
357361 { text : 'crawlHTML' , link : '/cn/type/crawl-html' } ,
358362 { text : 'crawlData' , link : '/cn/type/crawl-data' } ,
@@ -394,6 +398,11 @@ export default defineConfig({
394398 text : '为此页提供修改建议'
395399 } ,
396400
401+ outline : {
402+ label : '本页目录' ,
403+ level : [ 2 , 3 ]
404+ } ,
405+
397406 lastUpdated : { text : '最后更新于' }
398407 }
399408 }
0 commit comments