Home
Operations

Sourcey Pipeline

runx.ai/docs uses Sourcey as a real docs system: authored guides, generated references, and a published static artifact.

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 Sourcey

In practice the pattern is stable:

  1. author guide content intentionally
  2. generate reference material from the real API and MCP contracts
  3. build a static docs site
  4. 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.txt and llms-full.txt for machine-readable discovery
  • search-index.json for local docs search
  • sitemap.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
This docs site proves out the docs story

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.