Home GitBook常用插件
Post
Cancel

GitBook常用插件

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
{
    "pluginsConfig": {
        // 给GitBook的目录添加数字,添加章节序号
        "theme-default": {
            "showLevel": true
        },
        // 代码高亮插件的配置
        "prism": {
            "css": [
                "prism-themes/themes/prism-atom-dark.css"
            ]
        },
        "anchor-navigation-ex": {
            "showLevel": false, 
            "showGoTop": true
        },
        "edit-link": {
            "base": "https://github.com/",
            "label": "编辑此页面"
        },
        "favicon": {
            "shortcut": "assets/img/favicon.ico",
            "bookmark": "assets/img/favicon.ico",
            "appleTouch": "assets/img/favicon.ico",
            "appleTouchMore": {
                "120x120": "assets/img/favicon.ico",
                "180x180": "assets/img/favicon.ico"
            }
        },
        "hide-element": {
            "elements": [".gitbook-link"]
        },
        "tbfed-pagefooter": {
            "copyright":"",
            "modify_label": "该文件最后修改时间:",
            "modify_format": "YYYY-MM-DD HH:mm:ss"
        },
        "github": {
            "url": "https://github.com/"
        },
        "code": {
            "copyButtons": false
        }
    },
    "plugins": [
        "-toggle-chapters",
        "expandable-chapters",
        "-chapter-fold",
        
        "splitter",
        
        "anchor-navigation-ex",
        
        "-lunr",
        "-search",
        "search-pro",
        
        "-highlight",
        "prism",
        "prism-themes",
        
        "edit-link",
        
        "favicon",
        
        "hide-element",
        
        "tbfed-pagefooter",
        
        "github",
        
        "copy-code-button",
        
        "emphasize",
        
        "code"
    ]
}
This post is licensed under CC BY 4.0 by the author.