Skip to content

Add an Astro + Starlight documentation site#4

Merged
cgardev merged 1 commit into
mainfrom
docs/astro-site
May 31, 2026
Merged

Add an Astro + Starlight documentation site#4
cgardev merged 1 commit into
mainfrom
docs/astro-site

Conversation

@cgardev

@cgardev cgardev commented May 31, 2026

Copy link
Copy Markdown
Owner

Closes #3.

Ports the documentation system from the sibling project (gooq) to goway and replaces all content with goway-specific documentation.

Toolchain (mirrored)

Astro + Starlight with starlight-ion-theme and the monochrome palette in src/styles/theme.css. Same astro.config.mjs / package.json / tsconfig.json / content.config.ts layout and the shared SQL-file artwork.

Content (rewritten for goway)

  • Start Here: Introduction (splash) and Getting Started.
  • Guides: Writing Migrations, Running Migrations, Configuration, Callbacks, Dialects, Command Line.
  • Reference: Configuration, Commands, Migration Naming, Schema History, Placeholders, Callbacks, Dialects, CLI.
  • Cookbook: Embedding Migrations, Programmatic Setup, Non-Transactional Migrations, Baselining an Existing Database.

Every page was authored against the real source (accurate signatures, defaults, states, flags); all internal links validated against actual routes (0 broken).

Verification

pnpm install + pnpm build succeeds: 23 pages, no broken links. Build artifacts (node_modules, dist, .astro) are git-ignored. The existing docs/design.md is kept.

Closes #3.

Port the documentation system used by the sibling project to goway: Astro
with Starlight and the Ion theme, recolored with the monochrome palette.

- docs/ now holds the full site: astro.config.mjs with the goway navigation
  sidebar, package.json, tsconfig.json, src/content.config.ts,
  src/styles/theme.css, the shared assets, and a .vscode recommendation file.
- src/content/docs/ contains goway-specific content: an introduction splash,
  a getting-started tutorial, six guides (writing migrations, running
  migrations, configuration, callbacks, dialects, command line), an eight-page
  reference (configuration, commands, migration naming, schema history,
  placeholders, callbacks, dialects, CLI), and a four-recipe cookbook
  (embedding migrations, programmatic setup, non-transactional migrations,
  baselining an existing database).
- The existing design.md is kept alongside the site sources.

The site builds cleanly with pnpm build (23 pages, no broken links). Build
artifacts (node_modules, dist, .astro) are git-ignored.
@cgardev cgardev merged commit bc5db4c into main May 31, 2026
4 checks passed
@cgardev cgardev deleted the docs/astro-site branch May 31, 2026 13:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add an Astro + Starlight documentation site

1 participant