Skip to content

@voice-infra/docs ​

Static docs site (VitePress): quickstarts, concepts, SDK + MCP references and the generated API reference.

bash
pnpm --filter @voice-infra/docs dev       # http://localhost:5173
pnpm --filter @voice-infra/docs build     # → .vitepress/dist
pnpm --filter @voice-infra/docs preview

Generated pages ​

scripts/build-api-reference.mjs runs before dev and build (or alone via pnpm --filter @voice-infra/docs api-ref):

  • reference/resources.md — every SDK resource/method (Node + Python names), generated from packages/sdk-node/codegen/resources.json, the same table both SDKs are generated from.

  • reference/api.md — the REST reference rendered from the OpenAPI spec that apps/api serves at /docs/json:

    bash
    OPENAPI_URL=http://localhost:8080/docs/json pnpm --filter @voice-infra/docs build
    OPENAPI_FILE=./openapi.json pnpm --filter @voice-infra/docs build
    # try it with the fixture:
    OPENAPI_FILE=scripts/fixtures/sample-openapi.json pnpm --filter @voice-infra/docs build

    The spec is also published at /openapi.json. Without either variable a placeholder page is written, so offline builds work.

Both generated files are rewritten on every build — edit the generator, not the output.