scala-lang icon indicating copy to clipboard operation
scala-lang copied to clipboard

Linkable section titles

Open keynmol opened this issue 3 years ago • 4 comments
trafficstars

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

keynmol avatar Feb 04 '22 19:02 keynmol

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

SethTisue avatar Feb 27 '23 21:02 SethTisue

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)

SethTisue avatar Feb 27 '23 21:02 SethTisue

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)

zetashift avatar Feb 27 '23 21:02 zetashift

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

SethTisue avatar Mar 01 '23 23:03 SethTisue