Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

gitbook-plugin-collapsible-menu-ex

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

gitbook-plugin-collapsible-menu-ex

GitBook Plugin to change sidebar menu's to collapsible menu. For gitbook with many pages, navigating long menus can get irritating.

  • 1.0.4
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

GitBook Plugin: Collapsible Menu EX

GitBook Plugin to change sidebar menu's to collapsible menu. For gitbook with many pages, navigating long menus can get irritating.

Usage

Update book.json file to include collapsible-menu-ex plugin.

{
    "plugins": ["collapsible-menu-ex"],
}

Troubleshooting

  1. If you are not seeing all chapters expanded, then check if your book.json is valid. You can use this online tool - http://json.parser.online.fr/beta/
  2. Check if you are using default gitbook theme. It is NOT recommended to modify gitbook themes directly
  3. Clean your browser cache.
  4. Check browser's javascript console for errors.

How this work?

It hooks into gitbook's page.change event. First it hides all pages, and then using .active css class show's its parent and grandparent nodes (chapters).

TODO

Testing with PDF book generation. I hope it won't break.

Alternatives

Just after publishing this one, I came across - https://github.com/poojan/gitbook-plugin-toggle-chapters

If for some reason this plugin troubles you, you can try other. :-)

Changelog

1.0.4 - 2 April 2018

  • Add parent Menu arrow control

1.0.3 - 31 March 2017

  • Fixed <script> tag issue #4 (props @daffl)

1.0.2 - 20 May 2015

  • Improved active chapter's children visibility

1.0.1 - 20 May 2015

  • Fixes active chapter's children visibility

1.0.0 - 20 May 2015

  • Initial release

Keywords

FAQs

Package last updated on 02 Apr 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc