Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 20 additions & 0 deletions astro.config.mjs
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
// @ts-check
import { defineConfig, envField } from 'astro/config';
import remarkGfm from 'remark-gfm';
import mermaid from 'astro-mermaid';
import react from '@astrojs/react';
import sitemap from '@astrojs/sitemap';
import starlight from '@astrojs/starlight';
Expand Down Expand Up @@ -46,6 +47,25 @@ export default defineConfig({
},
},
integrations: [
// Must be registered before starlight() — see astro-mermaid's
// "Integration Order" requirement. `autoTheme` syncs Mermaid's base
// theme with the site's data-theme attribute. Brand colors below are
// literal hex, not `var(--sl-color-*)`: Mermaid computes shades from
// these values at init time and can't parse a CSS custom property.
mermaid({
autoTheme: true,
Comment thread
hongyi-chen marked this conversation as resolved.
Comment thread
warp-agent-staging[bot] marked this conversation as resolved.
enableLog: false,
mermaidConfig: {
fontFamily: "'Inter', 'Inter Fallback', sans-serif",
themeVariables: {
fontFamily: "'Inter', 'Inter Fallback', sans-serif",
// Warp accent blue (--sl-color-accent, dark-theme value).
primaryBorderColor: '#51a6ec',
nodeBorder: '#51a6ec',
lineColor: '#51a6ec',
},
},
}),
react(),
sitemap(),
starlight({
Expand Down
Loading
Loading