grimoirelab-tutorial icon indicating copy to clipboard operation
grimoirelab-tutorial copied to clipboard

[Bug, Doc] Table of contents not built properly on the Troubleshooting page

Open samcunliffe opened this issue 9 months ago • 1 comments

Probably a trivial syntax error (but I'm not smart enough to figure out what's wrong).

On the page: https://chaoss.github.io/grimoirelab-tutorial/docs/getting-started/troubleshooting/

The TOC isn't populated.

Image

It's line 30 on troubleshooting.md:

https://github.com/chaoss/grimoirelab-tutorial/blob/bd8286a85b45ca3f5f57205499e43808f2744e16/docs/getting-started/troubleshooting.md?plain=1#L30

samcunliffe avatar Mar 04 '26 13:03 samcunliffe

I'll take this one. It's line 30, as you guessed: kramdown only turns a list into a table of contents when {:toc} is on its own line after the list item (1. TOC then {:toc}), the way docs/data-sources/configurations.md does it. On the Troubleshooting page it's on the same line (1. TOC {:toc}), so it renders as plain text. No other page has this problem. I'll open a PR.

iamtanmaybaranwal avatar Oct 23 '26 13:10 iamtanmaybaranwal