From e3e3651f9df6f068839ffdbb8afbb9a6e53522db Mon Sep 17 00:00:00 2001 From: Kyle Conroy Date: Thu, 27 Aug 2026 10:50:31 -0700 Subject: [PATCH] Remove the per-page Copy Markdown and Open buttons MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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) Claude-Session: https://claude.ai/code/session_01GKc3BJAnDEG26khsB5p125 --- app/(docs)/[[...slug]]/page.tsx | 20 ++------------------ 1 file changed, 2 insertions(+), 18 deletions(-) diff --git a/app/(docs)/[[...slug]]/page.tsx b/app/(docs)/[[...slug]]/page.tsx index f1ae1da..bed4357 100644 --- a/app/(docs)/[[...slug]]/page.tsx +++ b/app/(docs)/[[...slug]]/page.tsx @@ -1,17 +1,14 @@ -import { getPageImageUrl, getPageMarkdownUrl, source } from '@/lib/source'; +import { getPageImageUrl, source } from '@/lib/source'; import { DocsBody, DocsDescription, DocsPage, DocsTitle, - MarkdownCopyButton, - ViewOptionsPopover, } from 'fumadocs-ui/layouts/docs/page'; import { notFound } from 'next/navigation'; import { getMDXComponents } from '@/components/mdx'; import type { Metadata } from 'next'; import { createRelativeLink } from '@/lib/relative-link'; -import { gitConfig } from '@/lib/shared'; // Routes carry the .html suffix of the legacy Read the Docs URLs // (/howto/select.html); page slugs in the source do not. @@ -28,24 +25,11 @@ export default async function Page(props: PageProps<'/[[...slug]]'>) { if (!page) notFound(); const MDX = page.data.body; - const markdownUrl = getPageMarkdownUrl(page).url; - // Per-release changelog pages are split out of reference/changelog.md by - // the ingest step; their upstream source is that one file. - const sourcePath = page.path.startsWith('reference/changelog/') - ? 'reference/changelog.md' - : page.path; return ( {page.data.title} - {page.data.description} -
- - -
+ {page.data.description}