Skip to content

Production-ready animations, transitions, backgrounds, and scenes for Remotion

feat: make docs menu flatten, refine colors, remove expand

dev_wandryd0021feead5a
diff --git a/app/docs/layout.tsx b/app/docs/layout.tsx
index 96283f5d..d401bac0 100644
--- a/app/docs/layout.tsx
+++ b/app/docs/layout.tsx
@@ -28,7 +28,21 @@ export default async function Layout({ children }: { children: ReactNode }) {
// fumadocs-ui 16.7 `NavOptions.enabled` (layouts/shared) and the
// `navEnabled && jsx(slots.header)` guard in layouts/docs/client.
nav={{ enabled: false }}
- searchToggle={{ enabled: false }}
+ // Render the search field in the sidebar header. fumadocs-ui 16.7
+ // builds `slots.searchTrigger` only when `searchToggle.enabled` is
+ // truthy (layouts/shared/client.js), and the sidebar slot renders
+ // `slots.searchTrigger.full` — the large search bar — at the top of
+ // the rail (layouts/docs/slots/sidebar.js). Search itself is already
+ // wired: `RootProvider` enables it by default and `app/api/search`
+ // serves the index.
+ searchToggle={{ enabled: true }}
+ // Remove the sidebar footer. fumadocs-ui 16.7 renders the footer block
+ // only when `languageSelect || iconLinks.length || themeSwitch || footer`
+ // is truthy (layouts/docs/slots/sidebar.js). This app has no i18n
+ // (single locale → no languageSelect), no nav `links`/`githubUrl` (→ no
+ // iconLinks), and passes no `footer`, so the theme switch is the only
+ // thing populating it — disabling it drops the whole footer.
+ themeSwitch={{ enabled: false }}
// Remove the sidebar hide/collapse button: fumadocs-ui 16.7 renders the
// collapse trigger only under `collapsible && <SidebarCollapseTrigger>`
// (slots/sidebar.js), so `collapsible: false` drops it (and the floating
diff --git a/app/globals.css b/app/globals.css
index 11d258d5..9e364ee1 100644
--- a/app/globals.css
+++ b/app/globals.css
@@ -384,11 +384,12 @@
font-size: 0.6875rem;
font-weight: 600;
color: var(--muted-foreground);
- /* Consistent gap above each category. NOTE: each title is the first
- child of its own folder wrapper, so `:first-child` would match every
- title — we deliberately don't special-case the first one; the
- sidebar's own top padding handles the top edge. */
- margin-top: 1.25rem;
+ /* Generous gap above each category so the groups read as distinct
+ sections. NOTE: each title is the first child of its own folder
+ wrapper, so `:first-child` would match every title — we deliberately
+ don't special-case the first one; the sidebar's own top padding
+ handles the top edge. */
+ margin-top: 2.5rem;
}
/* Subtle hover only — it's a heading that also links to the overview. */
#nd-sidebar a.w-full:hover,
@@ -397,6 +398,18 @@
background-color: transparent;
}
+/* ── Sidebar scroll viewport bottom padding ──────────────────────────
+ The scroll area is the Radix viewport (`[data-radix-scroll-area-viewport]`,
+ from fumadocs-ui ScrollViewport). It ships only `p-4` (1rem) at the bottom
+ and a 12px bottom mask fade (layouts/docs/slots/sidebar.js), so the last
+ nav items sit under the fade and can't be scrolled fully into view. The
+ id+attribute selector outranks the `.p-4` utility, so this longhand wins
+ over the shorthand's bottom value without touching the other sides. */
+#nd-sidebar [data-radix-scroll-area-viewport],
+#nd-sidebar-mobile [data-radix-scroll-area-viewport] {
+ padding-bottom: 2rem;
+}
+
/* ── Default-Fumadocs visual tells, neutralised ──────────────────────
Anything that could leak a stock accent / off-token colour is pinned
back to our oklch tokens via the fd-* bridge (no literal overrides). */
diff --git a/content/docs/meta.json b/content/docs/meta.json
index 0b76fafd..455295df 100644
--- a/content/docs/meta.json
+++ b/content/docs/meta.json
@@ -2,7 +2,6 @@
"title": "Documentation",
"pages": [
"getting-started",
- "components",
"typography",
"primitives",
"environment",