Skip to content
Merged
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
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -22,3 +22,4 @@ pnpm-debug.log*

# macOS-specific files
.DS_Store
.vercel
5 changes: 5 additions & 0 deletions .vercelignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# Build output — Vercel rebuilds from source on every deploy.
dist

# Generated at build time by `npm run docs:api` (TypeDoc → src/content/docs/reference).
src/content/docs/reference
8 changes: 7 additions & 1 deletion astro.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ export default defineConfig({
components: {
// Custom SiteTitle with SDK version badge
SiteTitle: './src/components/SiteTitle.astro',
// Override <Head> to inject client-side Mermaid rendering
Head: './src/components/Head.astro',
},
social: [
{ icon: 'github', label: 'GitHub', href: 'https://github.com/sip-protocol' },
Expand Down Expand Up @@ -164,7 +166,11 @@ export default defineConfig({
],
markdown: {
rehypePlugins: [
[rehypeMermaid, { strategy: 'img-svg', dark: true }],
// 'pre-mermaid' emits <pre class="mermaid"> for browser-side rendering.
// Build-time SVG rendering needs a headless Chromium, which Vercel's
// build image can't launch (missing system libs). The client renderer
// lives in src/components/Head.astro.
[rehypeMermaid, { strategy: 'pre-mermaid' }],
],
},
});
Loading
Loading