Skip to content

Grab all items in tocList

Achilleas Pipinellis requested to merge toc-level-2 into master

This fixes ToC not rendering in documents with only one H2.

From https://gitlab.com/gitlab-com/gitlab-docs/issues/280#note_115225871

I think that is on the javascript code that copies the ToC to the right side of the page. I'm almost sure we had a rule that used count to decide when not to display it and it's probably wrong by 1.

Closes https://gitlab.com/gitlab-com/gitlab-docs/issues/280

Before After
Screenshot_2018-11-23_Operations_Dashboard_GitLab Screenshot_2018-11-23_Operations_Dashboard_GitLab-1
Edited by Achilleas Pipinellis

Merge request reports