Skip to content

Commit 3afbd1e

Browse files
committed
chore(examples): consolidate navbars into dropdowns for realism
- example-simple: 3 explicit links (Docs / API / Guides), no auto - example-kitchen-sink: 4 items — Getting Started, Docs ▾, Products ▾, Contributing — collapses Architecture / Guides / Reference plus all apps / packages / integrations into two dropdowns - example-large: 5 items — Getting Started, Docs ▾, AI ▾, Workspace ▾, Operations ▾ — was 6 flat items, now grouped by domain Mirrors how real product docs lay out their top nav rather than dumping every section into a flat row.
1 parent b56f8f7 commit 3afbd1e

3 files changed

Lines changed: 70 additions & 7 deletions

File tree

examples/kitchen-sink/ciderpress.config.ts

Lines changed: 24 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,30 @@ export default defineConfig({
189189
{ text: 'GitHub', link: 'https://github.com/acme', icon: 'pixelarticons:link', style: 'alt' },
190190
],
191191
},
192-
nav: 'auto',
192+
nav: [
193+
{ title: 'Getting Started', link: '/getting-started' },
194+
{
195+
title: 'Docs',
196+
items: [
197+
{ title: 'Architecture', link: '/architecture' },
198+
{ title: 'Guides', link: '/guides' },
199+
{ title: 'API Reference', link: '/references/api' },
200+
{ title: 'CLI Reference', link: '/references/cli' },
201+
],
202+
},
203+
{
204+
title: 'Products',
205+
items: [
206+
{ title: 'Web', link: '/apps/web' },
207+
{ title: 'API', link: '/apps/api' },
208+
{ title: 'UI', link: '/packages/ui' },
209+
{ title: 'DB', link: '/packages/db' },
210+
{ title: 'Stripe', link: '/integrations/stripe' },
211+
{ title: 'Docker', link: '/infrastructure/docker' },
212+
],
213+
},
214+
{ title: 'Contributing', link: '/contributing' },
215+
],
193216
socialLinks: [
194217
{ icon: 'github', mode: 'link', content: 'https://github.com/acme' },
195218
{ icon: 'discord', mode: 'link', content: 'https://discord.gg/acme' },

examples/large/ciderpress.config.ts

Lines changed: 41 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -292,11 +292,47 @@ export default defineConfig({
292292

293293
nav: [
294294
{ title: 'Getting Started', link: '/introduction' },
295-
{ title: 'Guides', link: '/guides' },
296-
{ title: 'Concepts', link: '/concepts' },
297-
{ title: 'AI', link: '/ai/overview' },
298-
{ title: 'Apps', link: '/apps' },
299-
{ title: 'Packages', link: '/packages' },
295+
{
296+
title: 'Docs',
297+
items: [
298+
{ title: 'Guides', link: '/guides' },
299+
{ title: 'Concepts', link: '/concepts' },
300+
{ title: 'Architecture', link: '/architecture' },
301+
{ title: 'Commands', link: '/commands' },
302+
{ title: 'Structure', link: '/structure' },
303+
],
304+
},
305+
{
306+
title: 'AI',
307+
items: [
308+
{ title: 'Overview', link: '/ai/overview' },
309+
{ title: 'Best Practices', link: '/ai/best-practices' },
310+
{ title: 'Coding Agents', link: '/ai/coding-agents' },
311+
{ title: 'Concepts', link: '/ai/concepts' },
312+
{ title: 'Ecosystem', link: '/ai/ecosystem' },
313+
],
314+
},
315+
{
316+
title: 'Workspace',
317+
items: [
318+
{ title: 'API', link: '/apps/api' },
319+
{ title: 'Console', link: '/apps/console' },
320+
{ title: 'Workers', link: '/apps/workers' },
321+
{ title: 'Database', link: '/libs/database' },
322+
{ title: 'AI Library', link: '/libs/ai' },
323+
{ title: 'Auth', link: '/libs/auth' },
324+
],
325+
},
326+
{
327+
title: 'Operations',
328+
items: [
329+
{ title: 'Development', link: '/development/overview' },
330+
{ title: 'Standards', link: '/development/standards' },
331+
{ title: 'Tools', link: '/development/tools' },
332+
{ title: 'Security', link: '/security' },
333+
{ title: 'Troubleshooting', link: '/troubleshooting' },
334+
],
335+
},
300336
],
301337

302338
socialLinks: [{ icon: 'github', mode: 'link', content: 'https://github.com/acme' }],

examples/simple/ciderpress.config.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,11 @@ export default defineConfig({
2626
sort: 'alpha',
2727
},
2828
],
29-
nav: 'auto',
29+
nav: [
30+
{ title: 'Docs', link: '/getting-started' },
31+
{ title: 'API', link: '/api-reference' },
32+
{ title: 'Guides', link: '/guides' },
33+
],
3034
footer: {
3135
message: 'Built with ciderpress',
3236
copyright: 'Copyright © 2025 my-lib',

0 commit comments

Comments
 (0)