scala/scala-lang

Linkable section titles

keynmol opened this issue · 4 comments

Just adding here because I always forget

Recently I've been toying with the idea of actually reading the documentation and found that there's a ton of it!

But trying to link to particular sections, it's a bit of an effort.

For example, to obtain this link: https://docs.scala-lang.org/getting-started/index.html#using-the-scala-installer-recommended-way I looked up the source of the page (hacker style): <h3 id="using-the-scala-installer-recommended-way">Using the Scala Installer (recommended way)</h3>

What would be good to have is this thing
image

Of which I'm afraid I don't know the name

agree, this would be good. does anybody know how one does this in Jekyll...?

note that in the meantime, the workaround is to find the section in the table of contents, then right-click that link and "Copy Link"

(I do this, like, every day in order to post Scala FAQ links on Discord)

Because it's just markdown can't one do:

##  [Install Scala on your computer](#install-scala-on-your-computer)

### [Using the Scala Installer (recommended way)](#using-the-scala-installer-recommended-way)

I think we were hoping not to have to do that to every section header on the entire site...