11import nav from './configs/nav' ;
22import AutoSidebar from 'vite-plugin-vitepress-auto-sidebar' ;
33
4- const taskLists = require ( 'markdown-it-task-checkbox' )
4+ const taskLists = require ( 'markdown-it-task-checkbox' ) ;
55
66export default {
7- title : 'LinuxDo Scripts 文档' ,
8- dist : '/dist' ,
9- head : [
10- [ 'link' , {
11- rel : 'icon' ,
12- href : 'https://github.com/anghunk/linuxdo-scripts/blob/main/public/icon/128.png?raw=true'
13- } ]
14- ] ,
15- vite : {
16- plugins : [
17- /* 自动生成左侧 */
18- AutoSidebar ( {
19- ignoreIndexItem : true , // 忽略首页
20- titleFromFile : true , // 读取 md 文件 # 一级标题作为侧边
21- collapsed : false , // 是否默认收缩
22- } )
23- ] ,
24- } ,
25- markdown : {
26- config : ( md ) => {
27- md . use ( taskLists , {
28- disabled : true ,
29- divWrap : false ,
30- divClass : 'checkbox' ,
31- idPrefix : 'cbx_' ,
32- ulClass : 'task-list' ,
33- liClass : 'task-list-item' ,
34- } )
35- }
36- } ,
37- ignoreDeadLinks : true ,
38- themeConfig : {
39- siteTitle : 'LinuxDo Scripts 文档' ,
40- nav,
41- editLink : {
42- pattern : 'https://github.com/anghunk/linuxdo-scripts/blob/main/docs/docs/:path' ,
43- text : '在 GitHub 上编辑此页面'
44- } ,
45- socialLinks : [ {
46- icon : 'github' ,
47- link : 'https://github.com/anghunk/linuxdo-scripts'
48- } , ] ,
49- lastUpdated : true ,
50- lastUpdatedText : '最后更新于' ,
51- footer : {
52- message : 'Released under the MIT License.' ,
53- copyright : 'Copyright 2026 anghunk'
54- } ,
55- search : {
56- provider : 'local' ,
57- options : {
58- locales : {
59- zh : {
60- translations : {
61- button : {
62- buttonText : '搜索文档' ,
63- buttonAriaLabel : '搜索文档'
64- } ,
65- modal : {
66- noResultsText : '无法找到相关结果' ,
67- resetButtonTitle : '清除查询条件' ,
68- footer : {
69- selectText : '选择' ,
70- navigateText : '切换'
71- }
72- }
73- }
74- }
75- }
76- }
77- }
78- }
79- }
7+ title : 'LinuxDo Scripts 文档' ,
8+ dist : '/dist' ,
9+ head : [
10+ [
11+ 'link' ,
12+ {
13+ rel : 'icon' ,
14+ href : 'https://github.com/anghunk/linuxdo-scripts/blob/main/public/icon/128.png?raw=true' ,
15+ } ,
16+ ] ,
17+ ] ,
18+ vite : {
19+ plugins : [
20+ /* 自动生成左侧 */
21+ AutoSidebar ( {
22+ ignoreIndexItem : true , // 忽略首页
23+ titleFromFile : true , // 读取 md 文件 # 一级标题作为侧边
24+ collapsed : false , // 是否默认收缩
25+ } ) ,
26+ ] ,
27+ } ,
28+ markdown : {
29+ config : ( md ) => {
30+ md . use ( taskLists , {
31+ disabled : true ,
32+ divWrap : false ,
33+ divClass : 'checkbox' ,
34+ idPrefix : 'cbx_' ,
35+ ulClass : 'task-list' ,
36+ liClass : 'task-list-item' ,
37+ } ) ;
38+ } ,
39+ } ,
40+ ignoreDeadLinks : true ,
41+ themeConfig : {
42+ siteTitle : 'LinuxDo Scripts 文档' ,
43+ nav,
44+ editLink : {
45+ pattern : 'https://github.com/anghunk/linuxdo-scripts/blob/main/docs/docs/:path' ,
46+ text : '在 GitHub 上编辑此页面' ,
47+ } ,
48+ socialLinks : [
49+ // {
50+ // icon: 'github',
51+ // link: 'https://github.com/anghunk/linuxdo-scripts',
52+ // },
53+ ] ,
54+ lastUpdated : true ,
55+ lastUpdatedText : '最后更新于' ,
56+ footer : {
57+ message : 'Released under the MIT License.' ,
58+ copyright : 'Copyright 2026 anghunk' ,
59+ } ,
60+ search : {
61+ provider : 'local' ,
62+ options : {
63+ locales : {
64+ zh : {
65+ translations : {
66+ button : {
67+ buttonText : '搜索文档' ,
68+ buttonAriaLabel : '搜索文档' ,
69+ } ,
70+ modal : {
71+ noResultsText : '无法找到相关结果' ,
72+ resetButtonTitle : '清除查询条件' ,
73+ footer : {
74+ selectText : '选择' ,
75+ navigateText : '切换' ,
76+ } ,
77+ } ,
78+ } ,
79+ } ,
80+ } ,
81+ } ,
82+ } ,
83+ } ,
84+ } ;
0 commit comments