usql-site

module
v0.0.0-...-adc199e Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 27, 2026 License: MIT

README

usql-site

The documentation site of usql, at https://usql.app. It is a static site built with Astro and Starlight. The pages are Markdown files in this repository. People edit them in the browser at https://usql.app/admin/, which is Sveltia CMS, or with a pull request.

Run it

You need Node.js 22.23.4 or later. Go is needed only to make recordings.

npm ci
npm run dev

The site is at http://localhost:4321/, and the editor is at http://localhost:4321/admin/. Choose "Work with Local Repository" in the editor to edit the files of your checkout. npm run build writes the site to dist/.

Check a change

bash scripts/precommit.sh

Read the last line for the verdict.

Layout

Path What it holds
src/content/docs/ the pages, one Markdown file each
src/lib/ the Markdown plugins, such as the one for recordings
src/scripts/, src/components/, src/styles/ the player of the recordings, and the look of the site
cms/ the web editor. scripts/prepare.mjs makes /admin/ from it
recordings/ the scripts of the terminal recordings
public/casts/ the recordings, which cmd/record makes from the scripts
cmd/record/ the Go program that makes the recordings
docs/ the plan, the backlog, the decisions, and how to write, record and publish

Read AGENTS.md and CONTRIBUTING.md before you change anything.

Directories

Path Synopsis
cmd
gen command
Command gen writes the data files of src/data/generated, which the directives of the pages read.
Command gen writes the data files of src/data/generated, which the directives of the pages read.
record command
Command record makes the terminal recordings of the site.
Command record makes the terminal recordings of the site.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL