smart-nav-collapse

README

Smart Nav Collapse on Gitbook

This plugin will collapse navigation items with children on Gitbook, including the ones not pointing to a page.

For example this SUMMARY.md structure will work flawlessly:

# Summary

* [chapter 1](chapter1.md)
    * [Sub 1](sub1.md)
    * Sub Section 2
        * [Sub 2](sub2.md)

To install this plugin:

npm install gitbook-plugin-smart-nav-collapse --save

and to use it add this to your book.json:

{
    "plugins": ["smart-nav-collapse"]
}

Thanks

This plugin is inspired by gitbook-plugin-toggle-chapters

Plugin

Smart collapse plugin for Gitbook


Latest: 0.1.2

0.1.0, 0.1.1, 0.1.2,

Requirements

GitBook
0.1.2 >1.x.x

Maintainers

Open on NPM