Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Linkable section titles #1337

Open
keynmol opened this issue Feb 4, 2022 · 4 comments
Open

Linkable section titles #1337

keynmol opened this issue Feb 4, 2022 · 4 comments

Comments

@keynmol
Copy link

keynmol commented Feb 4, 2022

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

@SethTisue
Copy link
Member

SethTisue commented Feb 27, 2023

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

@SethTisue
Copy link
Member

SethTisue commented Feb 27, 2023

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)

@zetashift
Copy link

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)

@SethTisue
Copy link
Member

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants