|
| 1 | +import type { BunPressOptions } from '@stacksjs/bunpress' |
| 2 | + |
| 3 | +export default { |
| 4 | + verbose: false, |
| 5 | + docsDir: './docs', |
| 6 | + outDir: './dist', |
| 7 | + |
| 8 | + nav: [ |
| 9 | + { text: 'Home', link: '/' }, |
| 10 | + { text: 'Guide', link: '/intro' }, |
| 11 | + { text: 'Usage', link: '/usage' }, |
| 12 | + { text: 'Configuration', link: '/config' }, |
| 13 | + { text: 'Features', link: '/features/cli' }, |
| 14 | + { |
| 15 | + text: 'Ecosystem', |
| 16 | + items: [ |
| 17 | + { text: 'STX Templating', link: 'https://stx.sh' }, |
| 18 | + { text: 'BunPress Docs', link: 'https://bunpress.sh' }, |
| 19 | + { text: 'Clarity Logging', link: 'https://clarity.sh' }, |
| 20 | + { text: 'Pantry', link: 'https://pantry.sh' }, |
| 21 | + { text: 'Stacks Framework', link: 'https://stacksjs.org' }, |
| 22 | + ], |
| 23 | + }, |
| 24 | + { text: 'GitHub', link: 'https://github.com/stacksjs/headwind' }, |
| 25 | + ], |
| 26 | + |
| 27 | + markdown: { |
| 28 | + title: 'Headwind - Blazingly Fast Utility-First CSS', |
| 29 | + meta: { |
| 30 | + description: 'A utility-first CSS framework built with Bun for exceptional performance. Generate only the CSS you need.', |
| 31 | + author: 'Stacks.js', |
| 32 | + keywords: 'css, utility-first, tailwind, bun, performance, framework', |
| 33 | + }, |
| 34 | + |
| 35 | + sidebar: { |
| 36 | + '/': [ |
| 37 | + { |
| 38 | + text: 'Getting Started', |
| 39 | + items: [ |
| 40 | + { text: 'Introduction', link: '/intro' }, |
| 41 | + { text: 'Installation', link: '/install' }, |
| 42 | + { text: 'Configuration', link: '/config' }, |
| 43 | + ], |
| 44 | + }, |
| 45 | + { |
| 46 | + text: 'Usage', |
| 47 | + items: [ |
| 48 | + { text: 'Basic Usage', link: '/usage' }, |
| 49 | + { text: 'API Reference', link: '/api-reference' }, |
| 50 | + ], |
| 51 | + }, |
| 52 | + { |
| 53 | + text: 'Features', |
| 54 | + items: [ |
| 55 | + { text: 'CLI', link: '/features/cli' }, |
| 56 | + { text: 'Watch Mode', link: '/features/watch-mode' }, |
| 57 | + { text: 'Class Compilation', link: '/features/compile-class' }, |
| 58 | + { text: 'Shortcuts', link: '/features/shortcuts' }, |
| 59 | + { text: 'TypeScript', link: '/features/typescript' }, |
| 60 | + ], |
| 61 | + }, |
| 62 | + { |
| 63 | + text: 'Advanced', |
| 64 | + items: [ |
| 65 | + { text: 'Custom Rules', link: '/advanced/custom-rules' }, |
| 66 | + { text: 'Presets', link: '/advanced/presets' }, |
| 67 | + { text: 'Theme Customization', link: '/advanced/theme-customization' }, |
| 68 | + { text: 'Framework Integration', link: '/advanced/frameworks' }, |
| 69 | + ], |
| 70 | + }, |
| 71 | + { |
| 72 | + text: 'Resources', |
| 73 | + items: [ |
| 74 | + { text: 'Benchmarks', link: '/benchmarks' }, |
| 75 | + { text: 'Showcase', link: '/showcase' }, |
| 76 | + { text: 'Team', link: '/team' }, |
| 77 | + { text: 'Sponsors', link: '/sponsors' }, |
| 78 | + ], |
| 79 | + }, |
| 80 | + ], |
| 81 | + }, |
| 82 | + |
| 83 | + toc: { |
| 84 | + enabled: true, |
| 85 | + position: 'sidebar', |
| 86 | + title: 'On this page', |
| 87 | + minDepth: 2, |
| 88 | + maxDepth: 4, |
| 89 | + smoothScroll: true, |
| 90 | + activeHighlight: true, |
| 91 | + }, |
| 92 | + |
| 93 | + syntaxHighlightTheme: 'github-dark', |
| 94 | + |
| 95 | + features: { |
| 96 | + containers: true, |
| 97 | + githubAlerts: true, |
| 98 | + codeBlocks: { |
| 99 | + lineNumbers: true, |
| 100 | + lineHighlighting: true, |
| 101 | + focus: true, |
| 102 | + diffs: true, |
| 103 | + errorWarningMarkers: true, |
| 104 | + }, |
| 105 | + codeGroups: true, |
| 106 | + emoji: true, |
| 107 | + badges: true, |
| 108 | + }, |
| 109 | + }, |
| 110 | + |
| 111 | + sitemap: { |
| 112 | + enabled: true, |
| 113 | + baseUrl: 'https://headwind.sh', |
| 114 | + priorityMap: { |
| 115 | + '/': 1.0, |
| 116 | + '/intro': 0.9, |
| 117 | + '/install': 0.9, |
| 118 | + '/usage': 0.8, |
| 119 | + '/config': 0.8, |
| 120 | + '/features/*': 0.7, |
| 121 | + '/advanced/*': 0.6, |
| 122 | + }, |
| 123 | + }, |
| 124 | + |
| 125 | + robots: { |
| 126 | + enabled: true, |
| 127 | + rules: [ |
| 128 | + { |
| 129 | + userAgent: '*', |
| 130 | + allow: ['/'], |
| 131 | + disallow: ['/draft/'], |
| 132 | + }, |
| 133 | + ], |
| 134 | + }, |
| 135 | + |
| 136 | + fathom: { |
| 137 | + enabled: true, |
| 138 | + siteId: 'HEADWIND', |
| 139 | + honorDNT: true, |
| 140 | + }, |
| 141 | +} satisfies BunPressOptions |
0 commit comments