Implement copy as markdown button
- [ ] Refactor
- [x] Feature
- [ ] Bug Fix
- [ ] Optimization
- [ ] Documentation Update
Description
Adds a “Copy page” action to Starlight docs. The custom PageTitle component bundles raw markdown at build time, ensures each document starts with its H1, and exposes it via a hidden template. A lightweight client script wires the button to copy the markdown and updates status messaging for success or failure.
The latest updates on your projects. Learn more about Vercel for GitHub.
| Project | Deployment | Preview | Comments | Updated (UTC) |
|---|---|---|---|---|
| website-content | Preview | Comment | Oct 26, 2025 8:13pm | |
| website-landing | Preview | Comment | Oct 26, 2025 8:13pm | |
| website-proxy | Preview | Comment | Oct 26, 2025 8:13pm |
@IMax153 I think this is good to go actually :) Do we get a preview site auto generated?
@kitlangton - I fixed the issue I mentioned and deployed it to the preview env.
However, I'm not sure if it's just me, but it doesn't seem to be working in the live preview. Doesn't copy the page content.
Hrm. Do you have a link to the preview?
Hrm. Do you have a link to the preview?
@kitlangton you can click the preview link for website-content in the comment generated by Vercel at the top of the PR