website icon indicating copy to clipboard operation
website copied to clipboard

Implement copy as markdown button

Open kitlangton opened this issue 3 months ago • 5 comments

  • [ ] 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.

kitlangton avatar Sep 25 '25 22:09 kitlangton

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Preview Comments Updated (UTC)
website-content Ready Ready Preview Comment Oct 26, 2025 8:13pm
website-landing Ready Ready Preview Comment Oct 26, 2025 8:13pm
website-proxy Ready Ready Preview Comment Oct 26, 2025 8:13pm

vercel[bot] avatar Sep 25 '25 22:09 vercel[bot]

@IMax153 I think this is good to go actually :) Do we get a preview site auto generated?

kitlangton avatar Oct 17 '25 15:10 kitlangton

@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.

IMax153 avatar Oct 24 '25 22:10 IMax153

Hrm. Do you have a link to the preview?

kitlangton avatar Oct 25 '25 00:10 kitlangton

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

IMax153 avatar Oct 25 '25 02:10 IMax153