$ npm install gitbook-plugin-toggle-chapters
To use it in your book, add this to book.json:
{ "plugins": ["toggle-chapters"] }