Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • B bootstrap
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 263
    • Issues 263
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 114
    • Merge requests 114
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • Bootstrap
  • bootstrap
  • Merge requests
  • !19122

Use bootstrap-toc plugin for sidebar navigation in docs

  • Review changes

  • Download
  • Email patches
  • Plain diff
Closed Administrator requested to merge github/fork/afeld/toc-plugin-squash into master Feb 08, 2016
  • Overview 0
  • Commits 3
  • Pipelines 0
  • Changes 37

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.

Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: github/fork/afeld/toc-plugin-squash