Grab all items in tocList
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 |
---|---|
Edited by Achilleas Pipinellis