From 86faa25cac343a02cb75d18bdc5aa6edeb274159 Mon Sep 17 00:00:00 2001 From: Tom Ra Date: Fri, 23 Oct 2026 15:22:31 -0300 Subject: [PATCH 1/3] Center the start page content under the navbar Co-Authored-By: Claude Opus 5.5 (1M context) --- app/global.css | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/app/global.css b/app/global.css index 12db55f..dc31799 100644 --- a/app/global.css +++ b/app/global.css @@ -31,6 +31,16 @@ display: none; } +/* + * A full page caps its content at 1285px and aligns it left, which leaves the start page off-centre + * under the wider navbar. `width` keeps the content stretched: an auto margin alone would shrink a + * flex item to fit its content. + */ +article[data-home] > * { + width: 100%; + margin-inline: auto; +} + /* * The dropdown switcher (Wallets → Web, Android, …) lives at the top of the sidebar, so drop the * copy Fumadocs renders at the start of the navbar tab row. The tabs are links; it's the button. From 2d312fcff8f1ccd21272a3990e3524b49d8a6d63 Mon Sep 17 00:00:00 2001 From: Tom Ra Date: Fri, 23 Oct 2026 15:22:31 -0300 Subject: [PATCH 2/3] Add an icon-only copy page button next to the page title Co-Authored-By: Claude Opus 5.5 (1M context) --- app/(docs)/[[...slug]]/page.tsx | 18 +++++++++++++++--- 1 file changed, 15 insertions(+), 3 deletions(-) diff --git a/app/(docs)/[[...slug]]/page.tsx b/app/(docs)/[[...slug]]/page.tsx index 3e4eacc..1608187 100644 --- a/app/(docs)/[[...slug]]/page.tsx +++ b/app/(docs)/[[...slug]]/page.tsx @@ -1,9 +1,9 @@ -import { DocsBody, DocsDescription, DocsPage, DocsTitle } from 'fumadocs-ui/layouts/notebook/page'; +import { DocsBody, DocsDescription, DocsPage, DocsTitle, MarkdownCopyButton } from 'fumadocs-ui/layouts/notebook/page'; import { createRelativeLink } from 'fumadocs-ui/mdx'; import type { Metadata } from 'next'; import { notFound } from 'next/navigation'; import { getMDXComponents } from '@/components/mdx'; -import { appName, getPageImageUrl, siteUrl } from '@/lib/shared'; +import { appName, getPageImageUrl, getPageMarkdownUrl, siteUrl } from '@/lib/shared'; import { source } from '@/lib/source'; export default async function Page(props: PageProps<'/[[...slug]]'>) { @@ -42,7 +42,19 @@ export default async function Page(props: PageProps<'/[[...slug]]'>) { return ( - {page.data.title} +
+ {page.data.title} + {/* Mintlify's "Copy page" button as an icon only, without its dropdown of AI and Markdown links. + The empty string replaces Fumadocs' "Copy Markdown" label: `null` would fall back to it. */} + + {''} + +
{page.data.description} From 92b6dfab440fe245859b062aad442487764338fd Mon Sep 17 00:00:00 2001 From: Tom Ra Date: Fri, 23 Oct 2026 15:22:32 -0300 Subject: [PATCH 3/3] Commit the AGENTS.md heading level written by next dev Co-Authored-By: Claude Opus 5.5 (1M context) --- AGENTS.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/AGENTS.md b/AGENTS.md index 18fc188..cf9e213 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -1,6 +1,6 @@ -# This is NOT the Next.js you know +## This is NOT the Next.js you know This version has breaking changes — APIs, conventions, and file structure may all differ from your training data. Read the relevant guide in `node_modules/next/dist/docs/` (resolved from this file's directory; in monorepos the `next` package may not be visible from the repo root) before writing any code. Heed deprecation notices.