Sourcey Pipeline
These docs are meant to be a serious Sourcey example, not a shallow marketing wrapper.
They mix authored guides, generated OpenAPI and MCP tabs, custom theming, machine-readable outputs, and a deploy-owned static artifact served by the same hosted app as the product surface.
The Contract
- guide pages are authored content
- API and MCP references are generated inputs
- the published docs site is a static artifact served at
runx.ai/docs
That split matters because authored docs and generated site output are not the same thing.
What Gets Generated
Hosted OpenAPI
Generated from the current hosted API contract, then rendered into the
API Reference tab.
Public MCP
Generated from the public hosted server definitions and rendered into the
Public MCP tab.
Control MCP
Generated from the authenticated hosted server definitions and rendered
into the Control MCP tab.
Example Workflow
pnpm docs:inputs # generate the OpenAPI and MCP reference inputs
pnpm docs:build # build the static site with SourceyIn practice the pattern is stable:
- author guide content intentionally
- generate reference material from the real API and MCP contracts
- build a static docs site
- publish that artifact without hand-editing the output
What the build emits
The published artifact is richer than a pile of HTML files.
- clean guide pages such as
/docs/quickstart - generated reference tabs for OpenAPI and MCP surfaces
llms.txtandllms-full.txtfor machine-readable discoverysearch-index.jsonfor local docs searchsitemap.xml, CSS, and JS assets for the public site
That matters because a strong docs system should serve both human readers and machine consumers from the same source tree.
Why This Is The Right Contract
- the guide prose is reviewed and committed like normal source
- the reference tabs stay derived from code instead of drifting by hand
- the published site stays an artifact instead of becoming the source of truth
- release can rebuild the static site without inventing content
The docs are served by the same hosted app that serves the API, and the build pipeline is part of the public release surface. That keeps the example honest.