项目作者: Yakima-Teng

项目描述 :
🌱 To make your gitbook with folding chapters
高级语言: JavaScript
项目地址: git://github.com/Yakima-Teng/gitbook-plugin-folding-chapters.git
创建时间: 2018-05-03T07:11:30Z
项目社区:https://github.com/Yakima-Teng/gitbook-plugin-folding-chapters

开源协议:Apache License 2.0

下载


Equip your GitBook with folding chapters



Downloads


Version


License

This plugin will make chapters of your GitBook collapsible.

This GitBook plugin won’t work with the official GitBook default theme, because there are some bugs in that official theme. It’s strongly recommended to use the GitBook theme gitbook-plugin-theme-code instead of the default theme.

An example snapshot (GitBook theme used: gitbook-plugin-theme-code):

gitbook-plugin-theme-code

How to use it?

Add it to your book.json configuration:

  1. {
  2. "plugins": ["folding-chapters"]
  3. }

Install your plugins using:

  1. $ gitbook install

Configuration

There is no configuration needed at the moment, can be left empty.

  1. {
  2. "pluginsConfig": {
  3. "folding-chapters":{}
  4. }
  5. }

Actually, it’s okay for you to ignore the above code — you do not need to type them.

Thanks

This plugin is built on base of gitbook-plugin-expandable-chapters: It seems that plugin didn’t fit GitBook default theme since version 3.0.0, at least I found that plugin not available in my gitbook, so I create this plugin you are seeing now on base of that plugin.