numpy/numpy.org

Make the headings on the landing page anchor links

rossbar opened this issue · 10 comments

It would be nice if the top-level headings (e.g. Ecosystem, Case Studies) were anchor links so that people could link to a specific portion of the page without having to scroll to get there.

They are anchor links, we should just rewrite the URL when a user clicks on sidebar items so you know what IDs they are :)

https://scientific-python.org/ecosystem/#install

They are anchor links, we should just rewrite the URL when a user clicks on sidebar items so you know what IDs they are :)

I'm a bit confused by this because AFAICT the numpy.org landing page doesn't have a sidebar. I was thinking something more along the lines of the little chain-link icon that appears when you hover over a section heading in some themes. Whether it's adding a sidebar or some other approach, it'd be nice to be able to easily create those anchor links to the section headings in the browser!

(I did not add the little chain-link icons, but it would be straightforward to do so, if desired.)

This is a nice improvement but it doesn't seem to apply to the landing page where there is no sidebar. AFAICT there's still no way to click on/near the ECOSYSTEM heading or CASE STUDIES headings for example.

Thanks for noticing those, I will fix them too!

EDIT: We can fix those in NumPy; since they're custom add-ins, we just have to make sure they have anchors specified as in:

<h2 id="this-heading-title">This Heading Title</h2>

If they use the hugo built-in mechanisms for generating headings, then headings automatically get IDs.

Hi everyone,
Is this issue still open? If yes would love to work on it.

@tinaoberoi, feel free to work on this issue.

Is this issue still open? If yes would love to work on it.

Yes please feel free. Note though that this may be better handled in the underlying scientific-python-hugo-theme