Skip to content

Conversation

hestro
Copy link
Member

@hestro hestro commented Nov 22, 2026 •

This PR adds a table of contents with links to the sections at the top of the documentation files, and shortens long section titles so information is easier to find.

The table of contents is generated by Markdown All in One, which rebuilds the list on every save, so removing entries by hand doesn’t work. To keep the page title heading out of the list, I added <!-- omit in toc --> after those headings, as described in this Stack Overflow answer.

I also fix a lint error from adjacent blockquotes and add a few words to the spell checker dictionary

Should be merged after #171

Closes #160

@hestro hestro added the documentation Improvements or additions to documentation label Nov 22, 2026
@hestro hestro added this to the Final Deliverable milestone Nov 22, 2026
@hestro hestro self-assigned this Nov 22, 2026
@hestro hestro marked this pull request as ready for review November 23, 2026 00:45
@hestro hestro requested a review from a team as a code owner November 23, 2026 00:45
@johahor
Copy link
Member

johahor commented Nov 23, 2026

Could you add ToC in Contributing as well?

@johahor
Copy link
Member

johahor commented Nov 23, 2026

Nice work, the ToCs make the docs much easier to navigate.
I fixed some broken links myself, and also added a comment regarding missing ToC in Contributing.md.

The ToC depends on Markdown All in One, but the extension is not in .vscode/extensions.json or in the list of recommended extensions in CONTRIBUTING.md. Without it, the ToC goes stale when someone (or an AI agent) changes a heading. I suggest adding it to both, with one sentence in CONTRIBUTING.md saying that the ToC must be updated when headings change.

@hestro
Copy link
Member Author

hestro commented Nov 23, 2026

Thanks, I missed CONTRIBUTING.md. Added a table of contents there, plus the extension and a small description about keeping the table of contents updated

@martakam
Copy link
Member

martakam commented Nov 23, 2026 •

Let's wait with merging this until #168 and #174 is done, since then we'll need a few updates here

martakam
martakam previously approved these changes Nov 23, 2026
@hestro hestro dismissed martakam’s stale review November 23, 2026 19:20

The merge-base changed after approval.

hestro and others added 2 commits November 23, 2026 21:44
Co-authored-by: Martin Alexander Kaminski <martakam@stud.ntnu.no>
@martakam martakam merged commit 2f1493a into main Nov 24, 2026
8 checks passed
@martakam martakam deleted the docs/table-of-contents branch November 25, 2026 22:41
Sign in to join this conversation on GitHub.
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

docs: include a ToC in all longer documentation files
3 participants