A mapping language to compose SQL for Go.
README.md

Documentation site #

Docusaurus serves the documentation under /stitchql/. Pages live in content/; sidebars.js controls their order under Language, Usage, Integrations, and Examples. The root SPEC.md remains the detailed language contract, and PLAN.md tracks implementation work.

Use Node.js 20 or newer and npm. From the repository root:

npm ci --prefix docs
npm start --prefix docs

Open http://localhost:3000/stitchql/. Docusaurus reloads pages while you edit.

Build and preview the static site:

npm run build --prefix docs
npm run serve --prefix docs

The build checks internal links and emits docs/build/. Dependencies and generated output are ignored; commit package-lock.json with dependency updates. Use stitchql code fences for the custom syntax highlighting. Keep annotations above their targets and use whitespace to separate logical SQL clauses and declarations.

Publishing to Tangled Sites #

The public URL is https://nemith.tngl.io/stitchql/. Tangled Sites serves the generated files from the docs-site branch. In the repository's Settings → Sites, select that branch, deploy directory /, and site type Sub-path. Claim the site's domain in account settings first.

The docs-publish.yml workflow builds and publishes on pushes to main and can also be started manually. It authenticates as stitchql-bot.tngl.sh, a separate account added as a collaborator only on this repository. Register the public key on that bot account and add its private key as DOCS_DEPLOY_KEY under Settings → Pipelines → Secrets. Keep this key off personal accounts so it doesn't inherit their access to other repositories.

The workflow pins Tangled's SSH host key and publishes with a normal fast-forward push. Pull requests only build and check links; they do not publish.

For a manual deployment using your existing SSH access:

npm run deploy --prefix docs

The publisher uses a temporary checkout, removes obsolete generated pages, and leaves the source working copy unchanged. An identical build creates no commit. DOCS_GIT_REMOTE overrides the destination for testing against a local repository.

DOCS_URL and DOCS_BASE_URL override the Docusaurus origin and path prefix at build time. The prefix needs leading and trailing slashes. Build with the same prefix that Tangled serves; a Sub-path site for this repository uses /stitchql/. See Tangled Sites for domain and hosting settings.

Keep public guides focused on working features. Describe unsupported SQL on the SQL support page; keep speculative syntax in the repository's design documents. When updating examples, validate them with the local CLI against PostgreSQL 18.