Skip to content

Project: Build a Docs Site

In this project, you’ll build a documentation site from scratch — the same way this course site was built. This is a meta-project: you’re learning the tools by building with the tools.

A documentation/course site using:

  • Astro Starlight for the docs framework
  • Markdown files for content
  • Cloudflare Pages for hosting
  • Claude Code for the entire build process
> Create a new Astro project using the Starlight template.
> Configure it for a documentation site about [your topic].
> Set up the sidebar with 3-4 sections.
> Customize the Starlight theme:
> - Set a custom accent color
> - Update the site title and description
> - Add social links to the header
> - Configure a custom CSS file for brand colors
> Create the content directory structure with placeholder
> markdown files for each lesson. Include proper frontmatter
> with titles, descriptions, and sidebar ordering.
> Write the first 3 lessons for section 1.
> The topic is [your topic]. Make them practical
> with code examples and exercises.
> Set up Cloudflare Pages deployment:
> - Create wrangler.toml
> - Build the site
> - Deploy to Pages
> - Verify the deployment
> Configure GitHub Actions to automatically deploy
> to Cloudflare Pages when I push to the main branch.
  • Astro project setup and configuration
  • Markdown content authoring
  • Cloudflare Pages deployment
  • Git workflow with Claude Code
  • The full build → deploy cycle
  • Add a search feature (Starlight has built-in Pagefind search)
  • Add custom components (callouts, interactive examples)
  • Set up a custom domain
  • Add analytics