Skip to content

Add button to copy docs for llm#244

Merged
svix-lucho merged 2 commits intomainfrom
lucho/copy-docs-llm
Nov 3, 2025
Merged

Add button to copy docs for llm#244
svix-lucho merged 2 commits intomainfrom
lucho/copy-docs-llm

Conversation

@svix-lucho
Copy link
Contributor

@svix-lucho svix-lucho commented Oct 29, 2025

Adds 'Copy docs for LLM' button and add it to a whole bunch of pages. The button just takes the raw markdown and puts it in the clipboard. Also has segment tracking to measure how many people use it.

I couldn't add it to the docusaurus theme/layout because docusaurus doesn't have a good way to edit the header, so it has to be added page by page. Maybe that's a good thing anyway, because it doesn't make sense to have it in every single page.

Tom wants this in most pages, so I added it where I think it (even barely) made sense: docs with code snippets or explaining Svix concepts that might be useful for an LLM context.

Screen.Recording.2025-10-31.at.12.21.30.PM.mov

Closes https://github.com/svix/monorepo-private/issues/11722

@vercel
Copy link

vercel bot commented Oct 29, 2025

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

Project Deployment Preview Comments Updated (UTC)
svix-docs Ready Ready Preview Comment Oct 31, 2025 5:04pm

@svix-lucho svix-lucho marked this pull request as ready for review October 31, 2025 17:12
@svix-lucho svix-lucho requested a review from a team as a code owner October 31, 2025 17:12
Copy link

@svix-jbrown svix-jbrown left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

do we have any markdown files that have comments in them or other things that shouldn't be exposed to end users? I'm a little leery of just sharing our MDX files without any cleanup with users...

@svix-lucho
Copy link
Contributor Author

do we have any markdown files that have comments in them or other things that shouldn't be exposed to end users? I'm a little leery of just sharing our MDX files without any cleanup with users...

Discussed in Slack

@svix-lucho svix-lucho merged commit 1f6779c into main Nov 3, 2025
3 checks passed
@svix-lucho svix-lucho deleted the lucho/copy-docs-llm branch November 3, 2025 20:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants