Skip to content

Commit 7ef152d

Browse files
authored
Merge pull request #15 from 52fhy/master
补充一些插件
2 parents 1210353 + 0cf92df commit 7ef152d

File tree

1 file changed

+68
-0
lines changed

1 file changed

+68
-0
lines changed

plugins.md

Lines changed: 68 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
- [Sharing-plus - 分享当前页面](#sharing-plus)
2222
- [Tbfed-pagefooter - 为页面添加页脚](#tbfed-pagefooter)
2323
- [Expandable-chapters-small - 使左侧的章节目录可以折叠](#expandable-chapters-small)
24+
- [Toggle-chapters - 左侧章节目录可以折叠](#Toggle-chapters)
2425
- [Sectionx - 将页面分块显示](#sectionx)
2526
- [GA - Google 统计](#ga)
2627
- [3-ba - 百度统计](#3-ba)
@@ -41,6 +42,8 @@
4142
- [Klipse - 集成 Kplise (online code evaluator)](#klipse)
4243
- [Versions-select - 添加版本选择的下拉菜单](#versions-select)
4344
- [Rss - 添加 rss 订阅功能](#rss)
45+
- [Theme-comscore - 修改标题和表格颜色](#theme-comscore)
46+
- [summary - 自动生成目录](#summary)
4447

4548
## Disqus
4649

@@ -492,6 +495,15 @@ type 可以是 `c3` 或者 `highcharts`, 默认是 `c3`.
492495
plugins: ["expandable-chapters-small"]
493496
```
494497

498+
## Toggle-chapters
499+
使左侧的章节目录可以折叠。相比expandable-chapters, 没有折叠箭头符号,并且当前只有一项可以展开。参考:https://blog.csdn.net/lintcgirl/article/details/54314113
500+
501+
[插件地址](https://plugins.gitbook.com/plugin/toggle-chapters)
502+
503+
```json
504+
plugins: ["toggle-chapters"]
505+
```
506+
495507
## Sectionx
496508
将页面分块显示,标签的 tag 最好是使用 b 标签,如果使用 h1-h6 可能会和其他插件冲突。
497509
[插件地址](https://plugins.gitbook.com/plugin/sectionx)
@@ -984,3 +996,59 @@ print [x + 1 for x in range(10)]
984996
}
985997
```
986998
效果见右上角。
999+
1000+
## theme-comscore
1001+
1002+
主题插件, 修改标题和表格颜色。默认标题都是黑色的。
1003+
1004+
[插件地址](https://plugins.gitbook.com/plugin/theme-comscore)
1005+
1006+
``` json
1007+
{
1008+
"plugins": [
1009+
"theme-comscore"
1010+
]
1011+
}
1012+
```
1013+
1014+
## summary
1015+
1016+
根据文件自动生成目录。
1017+
1018+
[插件地址](https://plugins.gitbook.com/plugin/summary)
1019+
1020+
``` json
1021+
{
1022+
"plugins": [
1023+
"summary"
1024+
]
1025+
}
1026+
```
1027+
规则:
1028+
1029+
- 每个新增的目录中加入`README.md`,否则菜单为不可折叠
1030+
- 同个目录下的文件采用自然排序来决定菜单生成的前后顺序, 故在文件或目录前加入 "数字-" 如 "0-" 或 "1-" 来排序菜单的前后顺序。
1031+
- 菜单由目录自动生成,菜单名称依赖md文件中的标题, 故每个md文件中必须添加标题, 否则无法生成目录。
1032+
1033+
示例:
1034+
1035+
我们假设您的源代码树是这样完成的:
1036+
1037+
``` bash
1038+
$ tree .
1039+
.
1040+
├── 1-Getting Started
1041+
│ ├── 0-README.md
1042+
│ └── 1-TEST.md
1043+
├── 2-Reference
1044+
│ └── 0-README.md
1045+
├── README.md
1046+
└── SUMMARY.md
1047+
```
1048+
1049+
生成的SUMMARY.md文件将如下所示:
1050+
``` bash
1051+
- [Getting Started](1-Getting Started/0-README.md)
1052+
- [Test](1-Getting Started/1-TEST.md)
1053+
- [Reference](2-Reference/0-README.md)
1054+
```

0 commit comments

Comments
 (0)