DOC add dropdown header permalink#26872
DOC add dropdown header permalink#26872greyisbetter wants to merge 6 commits intoscikit-learn:mainfrom
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#xxxthen it will addopento<details id="xxx">tagexample:
it will change from:
to:
result:
cc @lucyleeow
cc @glemaitre @GaelVaroquaux