matplotlib / mpl-brochure-site

Source for the top-level landing page.
Other
3 stars 13 forks source link

added anchors #72

Closed story645 closed 1 year ago

story645 commented 1 year ago

I turned the news, resources, domain-specific-tools, and support headers into anchors/links so that I could link to those specific sections. This was motivated by wanting to provide a link to the list of resources on the homepage.

timhoffm commented 1 year ago

I would find it more clear not to turn the section headers themselves into links, but create an extra permalink element like in the docs:

https://matplotlib.org/stable/api/_as_gen/matplotlib.axes.Axes.plot.html#matplotlib-axes-axes-plot

image

story645 commented 1 year ago

I don't know how to do that. My first guess would be something like <a href='#anchor'>#</a> Like I'm pretty sure I'm doing the anchoring strangely here as is but I can't find a good solid reference.

timhoffm commented 1 year ago

You can steal the HTML and CSS from the above linked page grafik

story645 commented 1 year ago

No css to steal since that's already provided by either sphinx or pydata-sphinx.