Links to headings in docs

As a maintainer I am often linking to specific headings in the Exercism documentation. This is possible because each heading has an id attribute in the DOM, but I have go to the HTML source to retrieve it, which is cumbersome.

It would be nice if the documentation pages have some clickable element to navigate to a specific heading, so that retrieving a link to a heading is as easy as right-clicking and selecting Copy Link.

The easiest and most non-intrusive way of doing this with respect to the website design would be to wrap the headings in anchors linking to themselves, or adding a small on-hover element similar to this: Install IntelliJ IDEA | IntelliJ IDEA Documentation.

Alternatively, adding a ToC to the top of each page would also work, but that does consume valuable screen space…

1 Like

Something for you @dem4ron