
Grab your gear: The official Sanity swag store
Read Grab your gear: The official Sanity swag storeGood news! The Sanity documentation already has linkable headings with anchor links. Every heading on docs pages automatically gets an anchor that you can link to directly, just like in your example: https://www.sanity.io/docs/js-client#creating-if-not-already-present.
However, you're right that the hover-to-copy functionality would make this more discoverable. Currently, you need to manually:
Or construct the link manually by adding #heading-slug to the page URL.
Many modern documentation sites (like Docusaurus, MDX-based sites, and others) show a link icon (đź”— or #) next to headings on hover with a "copy link" action, which is what you're describing. This is typically implemented using plugins like remark-autolink-headings or rehype-autolink-headings in MDX/React-based documentation.
What you can do:
Since this is a feature request for the Sanity documentation itself, I'd recommend:
The Sanity team is generally responsive to UX improvements like this, especially when they improve developer experience. This kind of "copy link to heading" feature is a common pattern in developer documentation and would definitely make sharing specific sections easier for teams.
Current workaround: You can still deep-link to sections by clicking the heading (which adds the anchor to your URL) and then sharing that URL, but I agree a one-click copy button would be much more convenient!
Sanity is the developer-first content operating system that gives you complete control. Schema-as-code, GROQ queries, and real-time APIs mean no more workarounds or waiting for deployments. Free to start, scale as you grow.
Content operations
Content backend


The only platform powering content operations
By Industry


Tecovas strengthens their customer connections
Build and Share

Grab your gear: The official Sanity swag store
Read Grab your gear: The official Sanity swag store