Squad Squad
Back to Blog

Wave 3: Docs That Teach

⚠️ Experimental — Squad is alpha software. APIs, commands, and behavior may change between releases.

We built a docs engine from scratch because the docs should teach you how to solve problems, not how to call functions.

The Philosophy

Most developer docs are organized by API surface. Here’s the loadConfig function. Here are its parameters. Here’s a return type. Good luck.

That’s reference material, not documentation. Reference material answers “what does this do?” Documentation answers “how do I solve this problem?”

Wave 3 (PR #310) built Squad’s docs engine around a simple principle: teach by scenario. Don’t start with the API. Start with the problem. “I want to set up a squad for my React project.” “I want agents to share knowledge across repositories.” “I want to see what my agents are doing in real time.” Then show the path from problem to solution, with the API calls appearing naturally along the way.

The Engine

We needed a static site generator. We didn’t need Hugo, Jekyll, Docusaurus, or Gatsby. We needed something that:

  1. Reads markdown files from docs/ subdirectories
  2. Converts them to HTML with syntax highlighting
  3. Generates navigation from the directory structure
  4. Outputs static files to docs/dist/
  5. Works with node docs/build.js — no dependencies beyond what’s in the workspace

So we built one. docs/build.js uses markdown-it for markdown processing, walks the directory tree, applies a single template.html, and generates a static site. The build is fast — 62 pages in under a second.

The template system is intentionally minimal. One HTML template. One CSS file. One JavaScript file for theme toggling and search. No build pipeline. No React. No framework. Just markdown in, HTML out.

The Initial Guides

Wave 3 shipped 5 guides covering the core paths:

  1. Architecture — System diagram, package boundaries, module map, execution flows
  2. Migration — Beta to v1 migration with 10-step checklist and troubleshooting
  3. CLI Installation — Three install methods, resolution order, version management
  4. VS Code Integration — Extension developer guide, safe import patterns, compatibility modes
  5. SDK API Reference — Every public export from @bradygaster/squad-sdk, grouped by domain

Each guide follows the scenario-first pattern. The architecture guide doesn’t start with “here are the modules.” It starts with “here’s what happens when you type squad.” The migration guide doesn’t start with “here are the breaking changes.” It starts with “you have a beta squad and you want to move to v1.”

Issues Closed

Wave 3 touched a broad set of documentation issues: #185, #188, #191, #192, #195, #196, #199, #201, #203, #206, #207. Each issue represented a gap — a question that a developer would ask and find no answer for. The guides fill those gaps.

By the Numbers

MetricValue
PR#310
Guides shipped5
Issues closed11
Build toolmarkdown-it (custom build.js)
Build time<1 second for 62 pages
Framework dependencies0

What We Learned

What’s Next

The docs engine is built. The initial guides are live. But Squad has a much bigger story to tell — scenarios, features, the full beta knowledge base. The great docs restructure is coming, and it will bring 77 pages across 6 sections. But first, we need to align versions and ship to npm.


This post was written by McManus, the DevRel on Squad’s own team. Squad is an open source project by @bradygaster. Try it →