@@ -2,124 +2,134 @@ import { hopeTheme } from "vuepress-theme-hope";
2
2
import * as navbar from "./navbar" ;
3
3
import * as sidebar from "./sidebar" ;
4
4
5
- export default hopeTheme ( {
6
- hostname : "https://alist.nn.ci" ,
7
- themeColor : {
8
- blue : "#2196f3" ,
9
- red : "#f26d6d" ,
10
- green : "#3eaf7c" ,
11
- orange : "#fb9b5f" ,
12
- } ,
5
+ export default hopeTheme (
6
+ {
7
+ hostname : "https://alist.nn.ci" ,
8
+ themeColor : {
9
+ blue : "#2196f3" ,
10
+ red : "#f26d6d" ,
11
+ green : "#3eaf7c" ,
12
+ orange : "#fb9b5f" ,
13
+ } ,
13
14
14
- author : {
15
- name : "Andy Hsu" ,
16
- url : "https://i.nn.ci" ,
17
- } ,
15
+ author : {
16
+ name : "Andy Hsu" ,
17
+ url : "https://i.nn.ci" ,
18
+ } ,
18
19
19
- iconAssets : "iconfont" ,
20
+ iconAssets : "iconfont" ,
20
21
21
- logo : "/logo.svg" ,
22
+ logo : "/logo.svg" ,
22
23
23
- repo : "alist-org/docs" ,
24
+ repo : "alist-org/docs" ,
24
25
25
- docsDir : "docs" ,
26
+ docsDir : "docs" ,
26
27
27
- pageInfo : [ "Author" , "Original" , "Date" , "Category" , "Tag" , "ReadingTime" ] ,
28
+ pageInfo : [ "Author" , "Original" , "Date" , "Category" , "Tag" , "ReadingTime" ] ,
28
29
29
- locales : {
30
- "/" : {
31
- // navbar
32
- navbar : navbar . en ,
30
+ locales : {
31
+ "/" : {
32
+ // navbar
33
+ navbar : navbar . en ,
33
34
34
- // sidebar
35
- sidebar : sidebar . en ,
35
+ // sidebar
36
+ sidebar : sidebar . en ,
36
37
37
- footer : `<a href="https://www.netlify.com"> <img src="https://www.netlify.com/v3/img/components/netlify-color-bg.svg" alt="Deploys by Netlify" /> </a>
38
+ footer : `<a href="https://www.netlify.com"> <img src="https://www.netlify.com/v3/img/components/netlify-color-bg.svg" alt="Deploys by Netlify" /> </a>
38
39
<script src="/adb.js" type="text/javascript"></script>
39
40
` ,
40
41
41
- displayFooter : true ,
42
- } ,
42
+ displayFooter : true ,
43
+ } ,
43
44
44
- /**
45
- * Chinese locale config
46
- */
47
- "/zh/" : {
48
- // navbar
49
- navbar : navbar . zh ,
45
+ /**
46
+ * Chinese locale config
47
+ */
48
+ "/zh/" : {
49
+ // navbar
50
+ navbar : navbar . zh ,
50
51
51
- // sidebar
52
- sidebar : sidebar . zh ,
52
+ // sidebar
53
+ sidebar : sidebar . zh ,
53
54
54
- footer : `<a href="https://www.netlify.com"> <img src="https://www.netlify.com/v3/img/components/netlify-color-bg.svg" alt="Deploys by Netlify" /> </a>
55
+ footer : `<a href="https://www.netlify.com"> <img src="https://www.netlify.com/v3/img/components/netlify-color-bg.svg" alt="Deploys by Netlify" /> </a>
55
56
<script src="/adb.js" type="text/javascript"></script>` ,
56
57
57
- displayFooter : true ,
58
+ displayFooter : true ,
59
+ } ,
58
60
} ,
59
- } ,
60
61
61
- // encrypt: {
62
- // config: {
63
- // "/guide/encrypt.html": ["1234"],
64
- // "/zh/guide/encrypt.html": ["1234"],
65
- // },
66
- // },
67
-
68
- plugins : {
69
- autoCatalog : {
70
- frontmatter : ( ) => ( {
71
- toc : false ,
72
- } ) ,
73
- } ,
74
- // blog: {
75
- // autoExcerpt: true,
62
+ // encrypt: {
63
+ // config: {
64
+ // "/guide/encrypt.html": ["1234"],
65
+ // "/zh/guide/encrypt.html": ["1234"],
66
+ // },
76
67
// },
77
68
78
- // If you don't need comment feature, you can remove following option
79
- // The following config is for demo ONLY, if you need comment feature, please generate and use your own config, see comment plugin documentation for details.
80
- // To avoid disturbing the theme developer and consuming his resources, please DO NOT use the following config directly in your production environment!!!!!
81
- comment : {
82
- /**
83
- * Using Giscus
84
- */
85
- provider : "Giscus" ,
86
- repo : "alist-org/docs" ,
87
- repoId : "R_kgDOHmaM-A" ,
88
- category : "Announcements" ,
89
- categoryId : "DIC_kwDOHmaM-M4CRRXl" ,
90
-
91
- /**
92
- * Using Twikoo
93
- */
94
- // provider: "Twikoo",
95
- // envId: "https://twikoo.ccknbc.vercel.app",
96
-
97
- /**
98
- * Using Waline
99
- */
100
- // provider: "Waline",
101
- // serverURL: "https://vuepress-theme-hope-comment.vercel.app",
102
- } ,
103
-
104
- mdEnhance : {
105
- // enableAll: true,
106
- // presentation: {
107
- // plugins: ["highlight", "math", "search", "notes", "zoom"],
69
+ plugins : {
70
+ autoCatalog : {
71
+ frontmatter : ( ) => ( {
72
+ toc : false ,
73
+ } ) ,
74
+ } ,
75
+ // blog: {
76
+ // autoExcerpt: true,
108
77
// },
109
- container : true ,
110
- linkCheck : "dev" ,
111
- tabs : true ,
112
- tasklist : true ,
113
- gfm : true ,
114
- flowchart : true ,
115
- mark : true ,
116
- mermaid : true ,
117
- sub : true ,
118
- sup : true ,
119
- align : true ,
120
- } ,
121
- components : {
122
- components : [ "ArtPlayer" , "BiliBili" , "Badge" ] ,
78
+
79
+ // If you don't need comment feature, you can remove following option
80
+ // The following config is for demo ONLY, if you need comment feature, please generate and use your own config, see comment plugin documentation for details.
81
+ // To avoid disturbing the theme developer and consuming his resources, please DO NOT use the following config directly in your production environment!!!!!
82
+ comment : {
83
+ /**
84
+ * Using Giscus
85
+ */
86
+ provider : "Giscus" ,
87
+ repo : "alist-org/docs" ,
88
+ repoId : "R_kgDOHmaM-A" ,
89
+ category : "Announcements" ,
90
+ categoryId : "DIC_kwDOHmaM-M4CRRXl" ,
91
+
92
+ /**
93
+ * Using Twikoo
94
+ */
95
+ // provider: "Twikoo",
96
+ // envId: "https://twikoo.ccknbc.vercel.app",
97
+
98
+ /**
99
+ * Using Waline
100
+ */
101
+ // provider: "Waline",
102
+ // serverURL: "https://vuepress-theme-hope-comment.vercel.app",
103
+ } ,
104
+
105
+ mdEnhance : {
106
+ // enableAll: true,
107
+ // presentation: {
108
+ // plugins: ["highlight", "math", "search", "notes", "zoom"],
109
+ // },
110
+ container : true ,
111
+ checkLinks : {
112
+ status : "dev" ,
113
+ } ,
114
+ tabs : true ,
115
+ tasklist : true ,
116
+ gfm : true ,
117
+ flowchart : true ,
118
+ mark : true ,
119
+ mermaid : true ,
120
+ sub : true ,
121
+ sup : true ,
122
+ align : true ,
123
+ } ,
124
+ components : {
125
+ components : [ "ArtPlayer" , "BiliBili" , "Badge" ] ,
126
+ } ,
123
127
} ,
124
128
} ,
125
- } ) ;
129
+ {
130
+ check : true ,
131
+ compact : true ,
132
+ custom : true ,
133
+ debug : false ,
134
+ }
135
+ ) ;
0 commit comments