Created by: afeld
I was looking to replicate the sidebar navigation from http://getbootstrap.com (as are others), but was disappointed to discover that it wasn't a standalone Component. Decided to create one myself:
http://afeld.github.io/bootstrap-toc/
I figured the ultimate test would be seeing if the plugin actually works for http://getbootstrap.com – this pull request is that test!
Previously, the sidebar navigation for every page (seems to have been) constructed by hand, which means each file needs to be kept up-to-date with the headings on the respective page – with the plugin, that all happens automatically. Switching to this plugin results in (nearly) identical markup and identical functionality of the side nav bar, with a lot less clutter in the repository.
To verify the results, I ran the resulting markup from each page before and after the switch to the plugin through diff
, so there shouldn't be anything missing. I did discover that some headings from the main
area were previously missing from the side nav, so this PR also fixes those issues.