GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — squad/docs at dev · github/squad

Expand file tree

/

docs

/
Copy path

Directory actions

More options

More options

Directory actions

More options

More options

Latest commit

 

History

History
History
/

docs

/
Copy path

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
.astro
.astro
 
 
_internal
_internal
 
 
blog
blog
 
 
features
features
 
 
migration
migration
 
 
proposals
proposals
 
 
public
public
 
 
research
research
 
 
screenshots
screenshots
 
 
specification
specification
 
 
src
src
 
 
tests
tests
 
 
tutorials
tutorials
 
 
.gitignore
.gitignore
 
 
README.md
README.md
 
 
SQUAD-2.0-OVERVIEW.md
SQUAD-2.0-OVERVIEW.md
 
 
astro.config.mjs
astro.config.mjs
 
 
canary-identity-matrix.md
canary-identity-matrix.md
 
 
demo-agentic-sdlc-walkthrough.md
demo-agentic-sdlc-walkthrough.md
 
 
open-issue-runtime-identity-beacon.md
open-issue-runtime-identity-beacon.md
 
 
package-lock.json
package-lock.json
 
 
package.json
package.json
 
 
pagefind.yml
pagefind.yml
 
 
playwright.config.mjs
playwright.config.mjs
 
 
tsconfig.json
tsconfig.json
 
 

README.md

Outline

Squad Docs

The documentation site for Squad, built with Astro, Tailwind CSS, and Pagefind for search.

Prerequisites

  • Node.js 20+ (LTS)
  • Run npm install from the docs/ directory

Commands

All commands are run from the docs/ directory, or from the repo root using the docs: prefix.

From docs/ From repo root Description
npm run dev npm run docs:dev Start dev server with hot reload
npm run build npm run docs:build Production build (Astro + Pagefind)
npm run preview npm run docs:preview Preview the production build

Development

npm run dev

Starts a local dev server at http://localhost:4321/squad/ with hot module reloading. Changes to markdown content, layouts, and components are reflected immediately.

Note: Search does not work in dev mode. Pagefind indexes are only generated during build, so the search modal will not return results. Use build + preview to test search.

Build

npm run build

Runs two steps:

  1. astro build — Compiles all pages to static HTML in dist/
  2. npx pagefind --site dist — Indexes the HTML output to generate the search index at dist/pagefind/

The output in dist/ is what gets deployed to GitHub Pages.

Preview

npm run preview

Serves the dist/ directory locally so you can verify the production build, including working search.

Search

Search is powered by Pagefind, a static search library that indexes the built HTML.

  • Dev mode: Search UI appears but returns no results (no index exists).
  • Build + Preview: Search works fully. The build step generates the Pagefind index, and preview serves it.
  • Only pages with data-pagefind-body are indexed. This attribute is set on the <article> element in DocsLayout.astro and the blog post template.

Project Structure

docs/
├── astro.config.mjs        # Astro configuration (site, base path, plugins)
├── package.json             # Docs-specific dependencies
├── src/
│   ├── components/          # Astro components (Header, Sidebar, Search, etc.)
│   ├── content/
│   │   ├── blog/            # Blog posts (markdown)
│   │   └── docs/            # Documentation articles (markdown)
│   │       ├── concepts/
│   │       ├── cookbook/
│   │       ├── features/
│   │       ├── get-started/
│   │       ├── guide/
│   │       ├── reference/
│   │       └── scenarios/
│   ├── layouts/             # Page layouts (BaseLayout, DocsLayout)
│   ├── navigation.ts        # Sidebar navigation structure
│   ├── pages/               # Astro page routes
│   ├── plugins/             # Remark plugins (link rewriting)
│   └── styles/              # Global CSS (Tailwind)
├── public/                  # Static assets (images)
└── dist/                    # Build output (gitignored)

Adding a Doc Page

  1. Create a markdown file under src/content/docs/{section}/your-page.md
  2. Add a sidebar entry in src/navigation.ts under the appropriate NAV_SECTIONS section
  3. Run the docs build test to verify: npx vitest run test/docs-build.test.ts (from repo root)

Adding a Blog Post

Create a markdown file under src/content/blog/ with frontmatter:

---
title: "Your Post Title"
date: 2026-03-08
---

Post content here.

Blog posts are automatically discovered and listed on the blog index page.

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.