From db5cca14f49bf9b77cb7450e7124d5f6751a798f Mon Sep 17 00:00:00 2001 From: MIST Docs Bot Date: Mon, 6 Jul 2026 19:49:24 +0000 Subject: [PATCH] ci: add GitHub Actions workflow and CLAUDE.md - Add .github/workflows/ci.yml with checkout, setup-node (npm cache), npm ci, and npm run build steps - Add CLAUDE.md documenting dev/build/preview commands and src/content/docs directory layout Co-authored-by: CommandCodeBot --- .github/workflows/ci.yml | 18 ++++++++++++++++++ CLAUDE.md | 25 +++++++++++++++++++++++++ 2 files changed, 43 insertions(+) create mode 100644 .github/workflows/ci.yml create mode 100644 CLAUDE.md diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..6f9ccc2 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,18 @@ +name: CI + +on: + push: + branches: [main] + pull_request: + +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: actions/setup-node@v4 + with: + node-version: 20 + cache: npm + - run: npm ci + - run: npm run build diff --git a/CLAUDE.md b/CLAUDE.md new file mode 100644 index 0000000..f1ad30e --- /dev/null +++ b/CLAUDE.md @@ -0,0 +1,25 @@ +# CLAUDE.md — MIST.cash Docs + +## Commands + +- `npm run dev` — Start local dev server with HMR +- `npm run build` — Build static site to `dist/` +- `npm run preview` — Preview the production build locally + +## Directory Layout + +``` +├── astro.config.mjs # Astro + Starlight configuration +├── src/ +│ ├── content.config.ts # Content collection schema +│ ├── content/docs/ # Markdown/MDX documentation pages +│ │ ├── index.mdx +│ │ ├── getting-started.mdx +│ │ ├── guides/ # Deposit, withdraw, ZK proofs, Merkle trees +│ │ ├── packages/ # SDK, config, React packages +│ │ └── reference/ # API, types, contract ABI +│ └── styles/ +│ └── custom.css # Custom Starlight theme overrides +├── tsconfig.json +└── package.json +```