Skip to content

Set up development of the docs in Mate - #403

Merged
zerops-mate[bot] merged 2 commits into
mainfrom
mate-setup
Dec 2, 2026
Merged

zerops-mate[bot] merged 2 commits into
mainfrom
mate-setup

Conversation

@zerops-mate

@zerops-mate zerops-mate Bot commented Dec 2, 2026 •

Copy link
Copy Markdown

What it does

Adds what development in Mate needs on top of the existing site. The production docs setup is unchanged.

What it adds

  • A dev pool setup (docspool in zerops.yml). Each branch gets its own container on Node.js 22. The image installs the yarn workspace from the package manifests and yarn.lock, so a new branch starts with dependencies already in place. Each branch's preview is served on ports 4001–4003.
  • The docs dev server (.zcp/dev-servers.json). It builds types and docs-ui through turbo (the site imports docs-ui's built output), then runs docusaurus start on 0.0.0.0:3000 with live reload. A branch whose yarn.lock differs runs an incremental yarn install when its container is taken.
  • .gitignore. Everything in .zcp/ stays ignored except the shared dev-server declaration, which now gets committed.

How it was checked

  • The dev server runs on this branch: turbo built types and docs-ui in 47 s, and Docusaurus compiled the site in about 1.5 min. The homepage answers 200 and renders with no console errors and no failed requests.
  • The Preview build at this head passed: the stage built with the docs setup and answers 200.
  • The dev pool image built from this head, dependency install included (3 min 46 s).

The docs homepage served by the dev server on this branch

Status

This change was merged.


Ezra · Change in Mate

Zerops Agent and others added 2 commits December 2, 2026 07:36
- .zcp/dev-servers.json: the dev pool's preview ports (previewPortBase) and its dev servers.
- zerops.yml: the dev pool's setup, which each branch's container runs, beside the stage's.

Each branch Mate works on runs in a container of the dev pool; nothing else changes.
The dev pool image installs the yarn workspace from its manifests and lockfile, so a lease starts with node_modules in place; a branch with a different lockfile runs an incremental install on acquire. The docs dev server builds types and docs-ui through turbo, then runs docusaurus start on 0.0.0.0:3000. .gitignore keeps .zcp/ ignored except the shared dev-server declaration.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@zerops-mate

zerops-mate Bot commented Dec 2, 2026

Copy link
Copy Markdown
Author

Ezra will fix failing checks and answer review comments from people with write access to this repository. Add (aside) to a comment to keep it from Ezra.

@zerops-mate
zerops-mate Bot merged commit 4a90f5b into main Dec 2, 2026
3 checks passed
@zerops-mate
zerops-mate Bot deleted the mate-setup branch December 2, 2026 08:57
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.

1 participant