This plugin adds an icon to each chapter, that has a child and css states for the child list to collapse/expand ones.
Add it to your book.json
configuration:
{
plugins: ["expandable-chapters"]
}
Install your plugins using:
$ gitbook install
There is no configuration needed at the moment, can be left empty.
{
"pluginsConfig": {
"expandable-chapters":{}
}
}
Maybe you will find https://github.com/poojan/gitbook-plugin-toggle-chapters also useful?