Source for docs.queueflow.dev. A dependency-light static site: Markdown in content/**/*.md plus the OpenAPI document in spec/openapi.json, rendered by scripts/build.mjs into dist/.
npm install
npm run build # content + spec -> dist/
npm run dev # build, then serve dist/ locally
npm run sync-spec # refresh spec/openapi.json from the engine checkoutThe REST API reference (/api) and dist/openapi.json are generated from spec/openapi.json, which is a committed copy of the spec the engine emits. It does not update itself. After any API change in queueflow-core:
- In the engine checkout, regenerate the spec:
cargo run -p queueflow -- specwritesspec/openapi.jsonthere. - Here, run
npm run sync-spec. It copies../queueflow-core-rs/spec/openapi.jsonintospec/openapi.jsonand fails with an explanatory message if that sibling checkout is missing (the engine repository must be checked out next to this one under the directory namequeueflow-core-rs). - Run
npm run buildand commit the updatedspec/openapi.jsontogether with any content changes.
npm run build never reads the sibling checkout; it only uses the committed spec/openapi.json, so a build is reproducible from this repository alone.
- Every page is
content/<slug>.mdwith a front matter block (title,description) and must be listed inscripts/nav.mjs; the build fails on a nav entry with no page. - Callouts are blockquotes whose first line is
**Note**,**Tip**, or**Warning**. - Internal links are root-relative (
/concepts/auth#development-mode).