npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

gitbook-plugin-collapsible-menu-ex

v1.0.4

Published

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

Downloads

5

Readme

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