Skip to content

Add “Copy as .md” button on docs pages (LLM-friendly export) #12

@sh1ftred

Description

@sh1ftred

Context

In the docs UX, add a way for clients (and LLM workflows) to easily extract the documentation as Markdown.

Quote from chat: “We should add copy as .md button.”

Proposal

Add a “Copy as .md” button to doc pages that copies the current page’s content as clean Markdown to the clipboard.

Acceptance criteria

  • Button is visible on doc pages (placement TBD, e.g. top-right near page actions)
  • Copies Markdown (not HTML) to clipboard
  • Markdown output is clean and readable for LLM ingestion:
    • Preserves headings, code blocks, lists, tables (if applicable)
    • Removes navigation/sidebar/chrome
    • Uses canonical links where needed
  • Works on desktop browsers (Chrome/Firefox/Safari)
  • Shows success/error feedback (toast or inline)

Implementation notes (optional)

  • Use the existing MD source if the site is MD/MDX-based; otherwise convert the rendered content to MD.
  • Consider adding a small “Copy failed—download .md” fallback.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions