Skip to content
AI Teardown
Go back

Style check: diagrams, code and callouts

1 min read

This page exists to check how the site renders the pieces a teardown needs. The examples describe how this site itself is built and published.

Flowchart

A push to main publishes the site. A pull request gets its own preview URL.

flowchart LR
  A[Write a post] --> B{Branch?}
  B -->|main| C[Workers Builds]
  B -->|pull request| D[Preview build]
  C --> E[aiteardown.dev]
  D --> F[Preview URL on the PR]

Sequence diagram

sequenceDiagram
  participant Author
  participant GitHub
  participant Cloudflare
  Author->>GitHub: git push
  GitHub->>Cloudflare: Notify of new commit
  Cloudflare->>Cloudflare: npm run build
  Cloudflare-->>GitHub: Comment with preview URL
  Note over Cloudflare: Static files served from the edge

Code with a filename

{
  "name": "aiteardown",
  "compatibility_date": "2026-11-30",
  "assets": {
    "directory": "./dist",
    "not_found_handling": "404-page"
  }
}wrangler.jsonc

Highlighted lines

npm install
npm run build
npx wrangler deploybuild.sh

Diff

export default defineConfig({
  markdown: {
    syntaxHighlight: "shiki",
    syntaxHighlight: { type: "shiki", excludeLangs: ["mermaid", "math"] },
  },
});astro.config.ts

Inline code and a table

Run npm run dev for a local server and npm run build for a production build.

Branch Result
main Live site
Anything else Preview URL on the PR

Callouts

Note

Preview URLs are public. Anyone with the link can read a draft.

Tip

Set draft: true in a post’s frontmatter to keep it out of every build.

Warning

A commit on main goes live within a couple of minutes.



Next Post
A Presidio PII guardrail for agentgateway