@@ -2,8 +2,6 @@ import { hopeTheme } from "vuepress-theme-hope";
2
2
import { enSidebar , zhSidebar } from "./sidebar/index.js" ;
3
3
4
4
export default hopeTheme ( {
5
-
6
- iconAssets : "fontawesome-with-brands" ,
7
5
repo : "dynilath/moder-cpp-primer" ,
8
6
9
7
docsDir : "src" ,
@@ -34,49 +32,53 @@ export default hopeTheme({
34
32
components : [ "Badge" , "VPCard" ] ,
35
33
} ,
36
34
redirect : {
37
- autoLocale : true
35
+ autoLocale : true ,
36
+ } ,
37
+ icon : {
38
+ assets : "fontawesome-with-brands" ,
38
39
} ,
39
- shiki : {
40
+ } ,
41
+ markdown : {
42
+ align : true ,
43
+ attrs : true ,
44
+ codeTabs : true ,
45
+ component : true ,
46
+ demo : true ,
47
+ figure : true ,
48
+ imgLazyload : true ,
49
+ imgSize : true ,
50
+ include : true ,
51
+ mark : true ,
52
+ stylize : [
53
+ {
54
+ matcher : "Recommended" ,
55
+ replacer : ( { tag } ) => {
56
+ if ( tag === "em" )
57
+ return {
58
+ tag : "Badge" ,
59
+ attrs : { type : "tip" } ,
60
+ content : "Recommended" ,
61
+ } ;
62
+ } ,
63
+ } ,
64
+ ] ,
65
+ sub : true ,
66
+ sup : true ,
67
+ tabs : true ,
68
+ vPre : true ,
69
+ mermaid : true ,
70
+ markmap : true ,
71
+ revealjs : {
72
+ plugins : [ "highlight" , "math" , "search" , "notes" , "zoom" ] ,
73
+ } ,
74
+ highlighter : {
75
+ type : "shiki" ,
40
76
themes : { light : "github-light" , dark : "github-dark" } ,
41
77
langs : [ "cpp" , "powershell" , "bash" , "cmd" ] ,
42
78
notationDiff : true ,
43
79
notationHighlight : true ,
44
80
notationErrorLevel : true ,
45
81
notationWordHighlight : true ,
46
82
} ,
47
- mdEnhance : {
48
- align : true ,
49
- attrs : true ,
50
- codetabs : true ,
51
- component : true ,
52
- demo : true ,
53
- figure : true ,
54
- imgLazyload : true ,
55
- imgSize : true ,
56
- include : true ,
57
- mark : true ,
58
- stylize : [
59
- {
60
- matcher : "Recommended" ,
61
- replacer : ( { tag } ) => {
62
- if ( tag === "em" )
63
- return {
64
- tag : "Badge" ,
65
- attrs : { type : "tip" } ,
66
- content : "Recommended" ,
67
- } ;
68
- } ,
69
- } ,
70
- ] ,
71
- sub : true ,
72
- sup : true ,
73
- tabs : true ,
74
- vPre : true ,
75
- mermaid : true ,
76
- markmap : true ,
77
- revealJs : {
78
- plugins : [ "highlight" , "math" , "search" , "notes" , "zoom" ] ,
79
- } ,
80
- } ,
81
83
} ,
82
84
} ) ;
0 commit comments