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
6 changes: 6 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,9 @@ dist/

# Local agent working notes (not site content)
CLAUDE.md

# wrangler files
.wrangler
.dev.vars*
!.dev.vars.example
!.env.example
8 changes: 7 additions & 1 deletion astro.config.mjs
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
// @ts-check
import { defineConfig } from "astro/config";

import cloudflare from "@astrojs/cloudflare";

// Turn ```mermaid fenced code blocks into <pre class="mermaid"> so the client
// Mermaid runtime renders them, instead of letting Shiki highlight them as code.
function remarkMermaid() {
Expand Down Expand Up @@ -28,9 +30,11 @@ function remarkMermaid() {
export default defineConfig({
site: "https://sphere.pub",
output: "static",

build: {
format: "directory",
},

markdown: {
// Dark theme for code snippets so the cards stay harmonious with the dark
// page. The card background is overridden in CSS to the site panel colour.
Expand All @@ -39,4 +43,6 @@ export default defineConfig({
},
remarkPlugins: [remarkMermaid],
},
});

adapter: cloudflare()
});
Loading