|
| 1 | +import { defineConfig } from 'astro/config'; |
| 2 | +import starlight from '@astrojs/starlight'; |
| 3 | +import mermaid from 'astro-mermaid'; |
| 4 | +import react from '@astrojs/react'; |
| 5 | +import mdx from '@astrojs/mdx'; |
| 6 | +import tailwindcss from '@tailwindcss/vite'; |
| 7 | + |
| 8 | +import { pullwatchMermaidConfig } from './mermaid.config'; |
| 9 | + |
| 10 | +// https://astro.build/config |
| 11 | + |
| 12 | +export default defineConfig({ |
| 13 | + site: 'https://dragosdev-code.github.io', |
| 14 | + |
| 15 | + base: '/pullwatch', |
| 16 | + |
| 17 | + vite: { |
| 18 | + plugins: [tailwindcss()], |
| 19 | + }, |
| 20 | + |
| 21 | + integrations: [ |
| 22 | + mermaid({ |
| 23 | + theme: 'base', |
| 24 | + |
| 25 | + autoTheme: true, |
| 26 | + |
| 27 | + enableLog: false, |
| 28 | + |
| 29 | + mermaidConfig: pullwatchMermaidConfig, |
| 30 | + }), |
| 31 | + |
| 32 | + starlight({ |
| 33 | + title: 'Pullwatch', |
| 34 | + |
| 35 | + description: |
| 36 | + 'Your GitHub PR inbox. Sorted. No tokens. No noise. Architecture and deep dives.', |
| 37 | + |
| 38 | + logo: { |
| 39 | + src: './src/assets/logo.png', |
| 40 | + }, |
| 41 | + |
| 42 | + editLink: { |
| 43 | + baseUrl: 'https://github.com/dragosdev-code/pullwatch/edit/main/docs/', |
| 44 | + }, |
| 45 | + |
| 46 | + social: [ |
| 47 | + { |
| 48 | + icon: 'github', |
| 49 | + |
| 50 | + label: 'GitHub', |
| 51 | + |
| 52 | + href: 'https://github.com/dragosdev-code/pullwatch', |
| 53 | + }, |
| 54 | + ], |
| 55 | + |
| 56 | + components: { |
| 57 | + ThemeSelect: './src/components/DocsThemeSelect.astro', |
| 58 | + |
| 59 | + Head: './src/components/HeadWithTheme.astro', |
| 60 | + |
| 61 | + Footer: './src/components/FooterWithDiagrams.astro', |
| 62 | + }, |
| 63 | + |
| 64 | + head: [], |
| 65 | + |
| 66 | + customCss: [ |
| 67 | + './src/styles/global.css', |
| 68 | + |
| 69 | + './src/styles/starlight-daisy-bridge.css', |
| 70 | + |
| 71 | + './src/styles/docs-overrides.css', |
| 72 | + ], |
| 73 | + |
| 74 | + sidebar: [ |
| 75 | + { |
| 76 | + label: 'Welcome', |
| 77 | + |
| 78 | + items: ['index', 'getting-started'], |
| 79 | + }, |
| 80 | + |
| 81 | + { |
| 82 | + label: 'The big picture', |
| 83 | + |
| 84 | + items: ['architecture/overview'], |
| 85 | + }, |
| 86 | + |
| 87 | + { |
| 88 | + label: 'Deep dives', |
| 89 | + |
| 90 | + items: [ |
| 91 | + 'architecture/import-paths-and-aliases', |
| 92 | + |
| 93 | + 'architecture/service-worker-lifecycle', |
| 94 | + |
| 95 | + 'architecture/parser-waterfall', |
| 96 | + |
| 97 | + { |
| 98 | + label: 'GitHub health and outages', |
| 99 | + |
| 100 | + items: [ |
| 101 | + 'architecture/github-health', |
| 102 | + |
| 103 | + 'architecture/github-health/list-trust', |
| 104 | + |
| 105 | + 'architecture/github-health/outage-banner', |
| 106 | + ], |
| 107 | + }, |
| 108 | + |
| 109 | + 'architecture/remote-configuration', |
| 110 | + |
| 111 | + 'architecture/data-hydration-and-storage', |
| 112 | + |
| 113 | + 'architecture/popup-and-background-communication', |
| 114 | + |
| 115 | + 'architecture/onboarding-and-session-gates', |
| 116 | + |
| 117 | + 'architecture/notifications-and-sound', |
| 118 | + |
| 119 | + 'architecture/canary-monitor', |
| 120 | + ], |
| 121 | + }, |
| 122 | + |
| 123 | + { |
| 124 | + label: 'Related', |
| 125 | + |
| 126 | + items: [ |
| 127 | + { |
| 128 | + label: 'DOM change runbook', |
| 129 | + |
| 130 | + link: 'https://github.com/dragosdev-code/pullwatch/blob/main/canary/DOM_CHANGE_RUNBOOK.md', |
| 131 | + }, |
| 132 | + |
| 133 | + { |
| 134 | + label: 'Squash minigame docs', |
| 135 | + |
| 136 | + link: 'https://github.com/dragosdev-code/pullwatch/tree/main/src/components/squash-minigame/docs', |
| 137 | + }, |
| 138 | + ], |
| 139 | + }, |
| 140 | + ], |
| 141 | + }), |
| 142 | + |
| 143 | + react(), |
| 144 | + |
| 145 | + mdx(), |
| 146 | + ], |
| 147 | +}); |
0 commit comments