Stream: docs

Topic: Copying docs section title's link


view this post on Zulip Dimitri Szabo (Sep 12 2024 at 14:09):

I don't know how easy it would be to add this but one thing that has always been frustrating for me in the docs is that you can't simply click the link icon to copy the linx to an anchor.
It'd be great to have another icon to copy the link or just copy the link to clipboard when you click the icon
image.png

view this post on Zulip Philip Durbin ๐Ÿš€ (Sep 12 2024 at 14:31):

You should have seen it before Oliver added the anchor. :grinning:

I use that anchor every day but I think I know what you mean. You'd rather click a button and see "link copied!", right?

view this post on Zulip Dimitri Szabo (Sep 12 2024 at 15:25):

Yes that's it :)

view this post on Zulip Philip Durbin ๐Ÿš€ (Sep 12 2024 at 15:39):

Like we have for copying the API token.

view this post on Zulip Vera Clemens (Sep 13 2024 at 08:00):

+1! :)

view this post on Zulip Vera Clemens (Sep 13 2024 at 08:02):

Something I would also like: If I click a section's link in the table of contents, it would be nice if the URL bar automatically updated to the anchor link. E.g. if I visit https://guides.dataverse.org/en/latest/api/native-api.html, then click "View a Dataverse Collection" in the table of contents, the URL bar would become https://guides.dataverse.org/en/latest/api/native-api.html#view-a-dataverse-collection.

view this post on Zulip Vera Clemens (Sep 13 2024 at 08:03):

That would actually save me from needing to fiddle with the anchor button 90% of the time :)

view this post on Zulip Philip Durbin ๐Ÿš€ (Sep 13 2024 at 10:44):

Yes, I wish that worked too. I don't understand why it doesn't. Maybe it's something custom we added that breaks it.

In contrast, check out the GDCC site, which is also Sphinx. If I go to https://www.gdcc.io/working-groups/documentation.html and click "Code" in the sidebar ("On this page"), the anchor is correctly added to the URL like this: https://www.gdcc.io/working-groups/documentation.html#chat

view this post on Zulip Philip Durbin ๐Ÿš€ (Sep 13 2024 at 10:44):

Obviously, if anyone can figure this out, please make a pull request! :grinning:


Last updated: Nov 01 2025 at 14:11 UTC