This file provides guidance to Claude Code (claude.ai/code) when working with code in this repository.
Apache Iggy website -- a static documentation and marketing site built with Next.js + Fumadocs + Tailwind CSS (versions pinned in package.json). Output is a fully static export (no server runtime).
npm install # Install deps (triggers fumadocs-mdx postinstall) npm run dev # Dev server with hot reload (http://localhost:3000) npm run build # Static export to out/ directory npx serve out # Preview the static build
npm start (next start) does not work here: it is incompatible with output: "export". predev/prebuild run scripts/fetch-github-stars.mjs (network call with a graceful offline fallback).
No test framework is configured. No linter is configured beyond TypeScript strict mode.
Tech stack: Next.js App Router, Fumadocs (docs framework), Tailwind CSS v4, MDX, TypeScript.
Route groups:
src/app/(home)/ -- Landing page with hero, features, footersrc/app/(site)/ -- Blog listing (/blogs/), downloads (/downloads/), community (/community/)src/app/docs/ -- Documentation pages via Fumadocs DocsLayoutsrc/app/api/search/ -- Static search index (search UI enabled in the docs layout)Content (MDX):
content/docs/ -- Documentation pages, structured via meta.json files for ordering/hierarchycontent/blog/ -- Blog posts with frontmatter (title, author, date, tags, draft). Date-based URL routing: /blogs/YYYY/MM/DD/[slug]Shared config: src/lib/layout.shared.tsx defines navigation options (homeOptions, siteOptions, docsOptions) shared across all layouts.
Content loading: src/lib/source.ts configures the Fumadocs source loader. Blog and docs collections are defined in source.config.ts at the project root.
Static output: next.config.mjs sets output: "export", trailingSlash: true, and images: { unoptimized: true }.
meta.json pages array or they build fine but never appear in the sidebar (no meta.json uses the "..." rest item). Docs frontmatter requires title.generateStaticParams..ts/.tsx/.mjs/.css file needs the Apache 2.0 license header. MDX content does not.src/mdx-components.tsx; use them in MDX without imports. Diagram components live in src/components/architecture-diagrams.tsx.src/app/global.css."use client".src/components/mermaid.tsx (client-rendered, theme-aware).source.config.ts using Zod..nvmrc)..npmrc sets legacy-peer-deps=true.type(scope): subject, e.g. fix(docs): ....main (the code repo uses master; this one does not).main triggers .github/workflows/deploy.yml (also daily cron and manual dispatch), which builds and force-orphan-pushes out/ to the asf-site branch -> iggy.apache.org.staging triggers stage.yml, same flow to asf-staging -> iggy.staged.apache.org. Use it to preview large changes.asf-site and asf-staging are generated artifacts. Never edit them by hand..asf.yaml (Apache infrastructure).