-
-
Notifications
You must be signed in to change notification settings - Fork 25.9k
DOC add dropdown header permalink #26872
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
Conversation
Would it be possible to enable getting a link to a the header via clicking next to it, e.g.: (you can't see the mouse in the screenshot but it's next to the header) I am not very familiar with javascript, potentially @glemaitre or @thomasjpfan would have better guidance on the best approach? Potentially there is a Sphinx way to do this as suggested in: #26617 (comment) ? |
No it will not add that permalink icon to header but you go that section via https://scikit-learn.org/stable/modules/svm.html#custom-kernels |
It's not so much the icon, but clicking on it will update the URL to append '#<section_name>', so you don't have to manually do this. |
Now it will work as expected |
Sorry I know this is closed now but would this be an acceptable solution to being able to easily get hyperlinks to headers where a dropdown has been added? Maybe @glemaitre @thomasjpfan ? |
@lucyleeow I'm still in favor of having the feature that you requested. I did not get time to review PR lately but I should be back to business soonish. If we can find an alternative solution to javascript, it would be better. |
@lucyleeow Would you mind opening a proper issue to be sure that we track properly this feature request? |
as discussed in #26617
id="xxx"
in the<details>
tag.html#xxx
then it will addopen
to<details id="xxx">
tagexample:
it will change from:
to:
result:
cc @lucyleeow
cc @glemaitre @GaelVaroquaux