Skip to content

Introduce copy markdown button - swizzle breadcrumbs#1795

Merged
0xBora merged 1 commit into
stagingfrom
feat/copy-page-markdown-button
May 26, 2026
Merged

Introduce copy markdown button - swizzle breadcrumbs#1795
0xBora merged 1 commit into
stagingfrom
feat/copy-page-markdown-button

Conversation

@0xBora
Copy link
Copy Markdown
Member

@0xBora 0xBora commented May 16, 2026

Why

#1787 added docusaurus-plugin-llms, so every docs page now has a raw .md sibling. This PR surfaces that to readers: a control on docs pages to grab the page as Markdown for an LLM, or open the raw .md directly.

What changes

A Copy page dropdown in the breadcrumb row of every docs page:

  • Copy page: copies the page's Markdown to the clipboard

  • View as Markdown: opens the raw .md in a new tab

It lives in the existing breadcrumb row, so it adds no layout shift.

Implemented as a wrapper swizzle of DocBreadcrumbs without any new dependencies or config changes.

Collapsed Expanded
Collapsed Expanded

Relevant to #1758, Pillar 4 (LLM-native).

Copy link
Copy Markdown
Member

@katomm katomm left a comment

Choose a reason for hiding this comment

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

Love it

@0xBora 0xBora merged commit bd20508 into staging May 26, 2026
4 checks passed
@0xBora 0xBora deleted the feat/copy-page-markdown-button branch May 26, 2026 01:17
@rober-m
Copy link
Copy Markdown

rober-m commented May 27, 2026

This is 🔥!

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.

5 participants