Remove the per-page Copy Markdown and Open buttons - #2
Merged
Conversation
The button row above each page body held fumadocs' MarkdownCopyButton and ViewOptionsPopover (the "Open" popover: view as markdown / edit on GitHub). Drop both, along with the now-unused markdownUrl and sourcePath locals and the getPageMarkdownUrl and gitConfig imports. DocsDescription loses its mb-0 override and falls back to the default mb-8; the override only existed so the description butted against the button row's bottom border, which is gone with it. The /llms.mdx/docs/**/content.md routes stay — the copy button fetched them, but llms.txt and llms-full.txt still do. gitConfig stays in lib/layout.shared.tsx for the navbar's GitHub link. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01GKc3BJAnDEG26khsB5p125
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Removes the button row above each page body: fumadocs'
MarkdownCopyButton("Copy Markdown") andViewOptionsPopover(the "Open" popover — view as markdown / edit on GitHub).Also drops what only existed to support them:
markdownUrlandsourcePathlocals, and thegetPageMarkdownUrl/gitConfigimports inapp/(docs)/[[...slug]]/page.tsxDocsDescription'smb-0override, which was there so the description butted against the button row's bottom border — it falls back to the defaultmb-8Left in place:
/llms.mdx/docs/**/content.mdroutes — the copy button fetched them, butllms.txtandllms-full.txtstill dogitConfig, still used bylib/layout.shared.tsxfor the navbar GitHub linknpm run types:checkandnpm run buildpass; verified against a local static preview that neither control renders.🤖 Generated with Claude Code
https://claude.ai/code/session_01GKc3BJAnDEG26khsB5p125