This file provides guidance to Claude Code (claude.ai/code) when working with code in this repository.
pnpm monorepo for Codante.io guides. Each guide is a separate app built with Starlight (Astro framework). Home app is Next.js 14.
- Monorepo structure: Root manages workspaces in
apps/* - Home app (
apps/home): Next.js 14 landing page, lists all guides - Guide apps: Astro + Starlight sites for documentation/tutorials
- Each has own
basepath inastro.config.mjs(e.g.,/next-auth/) - Content in
src/content/docs/with auto-generated sidebars - Tailwind CSS via
@astrojs/tailwindwithapplyBaseStyles: false
- Each has own
# Install deps (from root)
pnpm i
# Run specific guide locally
cd apps/[guide-name]
pnpm run dev# Build all apps (from root)
pnpm -r run build
# Build specific app
cd apps/[guide-name]
pnpm run build # or 'astro check --minimumSeverity warning && astro build' for guides with checksMost Astro guides:
dev/start: dev serverbuild: build (some includeastro check --minimumSeverity warning)preview: preview build
- Create app:
pnpm create astro@latest -- --template starlight(inapps/) - Set
base: '/guide-name/'inastro.config.mjs - Install Tailwind:
pnpm add @astrojs/tailwind - Update
src/content/docs/index.mdx: remove splash template, keep onlytitleanddescriptionin frontmatter - Add to
.github/workflows/deploy.yml:- Astro cache path
- Build artifacts path
- Deploy matrix entry
- Add link in
apps/homeResources component
GitHub Actions workflow on push to main:
- Builds all apps with
pnpm -r run build - Caches Next.js and Astro builds
- Deploys each app via rsync to separate remote paths