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

added anchors #72

Merged
merged 1 commit into from
Dec 15, 2022
Merged

added anchors #72

merged 1 commit into from
Dec 15, 2022

Conversation

story645
Copy link
Member

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
Copy link
Member

timhoffm commented Dec 14, 2022

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
Copy link
Member Author

story645 commented Dec 14, 2022

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
Copy link
Member

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

@story645
Copy link
Member Author

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

@timhoffm timhoffm merged commit 55c6d98 into main Dec 15, 2022
@timhoffm timhoffm deleted the anchors branch December 15, 2022 11:05
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

Successfully merging this pull request may close these issues.

None yet

3 participants