Unlock seamless workflows and faster delivery with our latest releases - Join the deep dive

Do the titles of Sanity's documentation pages also have anchor tags?

6 replies
Last updated: Feb 11, 2021
It would be nice if the titles in the docs were linkable, eg take these documents if i want to navigate one of my team mates to the
Creating if not already present
section, i need to send them the link and then post the title, But it would be much better if we were able to just hover the title and then have a
copy link
icon which will allow a direct link to that section of the page, eg:
<https://www.sanity.io/docs/js-client#creating-if-not-already-present>
Jan 28, 2021, 11:16 AM
Thanks
user S

The headings are in fact copyable, but just not in these library articles as they are imported from GitHub. In all other articles the headings are linkable; hover the heading and a link icon appears, clicking it will copy the url to the clipboard
Jan 28, 2021, 12:23 PM
i'm sure you will also be able to do the same on the documents generated from github, i can see it's just parsing markdown so you can just slugify the titles and attach id to their tags to extend the copy capabilities?
Jan 28, 2021, 12:27 PM
Should indeed be possible, but hasn't been prioritised yet. But it's definitely on the list šŸ™‚
Jan 28, 2021, 12:29 PM
user S
Happy to inform you that we've updated the docs to include heading links even on these linked articles https://www.sanity.io/docs/js-client
Feb 11, 2021, 10:48 AM
ā¤ļø thanks for the update
user J
Feb 11, 2021, 10:59 AM

Sanityā€“ build remarkable experiences at scale

Sanity is a modern headless CMS that treats content as data to power your digital business. Free to get started, and pay-as-you-go on all plans.

Was this answer helpful?