JSPM

gitbook-plugin-chapter-fold

0.0.4
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 172
  • Score
    100M100P100Q87940F
  • License Apache 2

This is the fold plugin, extended from the expandable chapter plugin.

Package Exports

  • gitbook-plugin-chapter-fold

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (gitbook-plugin-chapter-fold) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

#Chapter fold for GitBook

Extended from the expandable-chapters plugin, and make a little modify. Thx for the original author.
Tiny change to the expandable-chapters plugin from https://github.com/DomainDrivenArchitecture/ to use smaller arrows.

Anything Change?

Modify the feature of the chapter links, make the links could be clicked to fold or expand their content.
And add a new feature in order to keep the last chapter which the user browses at last time.

How to use it?

Add it to your book.json configuration:

{
    plugins: ["chapter-fold"]
}

Install your plugins using:

$ gitbook install

Configuration

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

{
    "pluginsConfig": {
        "chapter-fold":{}
    }
}