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}