Skip to main content

Autonomous API Documentation Pipeline

Date: 2026-04-09 Status: Approved Goal: Make the Rhombus API documentation fully autonomous — new endpoints appear automatically with enriched metadata, SEO-optimized, and developer-friendly navigation — with zero manual intervention.

Context

The Rhombus Developer Documentation site (built with Mintlify) documents 846+ API endpoints auto-generated from an OpenAPI spec that syncs nightly from production. The current setup manually lists every endpoint in docs.json (making it 107KB+), requiring a build-api-navigation.py script to rebuild navigation on every sync. Several other scripts exist to generate files that Mintlify now handles natively.

Design

1. Simplified API Reference Navigation

Change: Replace the entire API Reference tab’s 800+ manual endpoint entries in docs.json with Mintlify’s auto-generation. Before (107KB+ docs.json):
After (~3KB docs.json):
Mintlify auto-generates all endpoint pages, groups them by OpenAPI tags, and builds sidebar navigation. The hand-written api-reference/overview.mdx stays as the landing page.

2. Simplified Nightly Sync Pipeline

Change: Remove navigation rebuild step. Add enrichment step. New pipeline (GitHub Action):
  1. Fetch spec from https://api2.rhombussystems.com/api/openapi/public.json
  2. detect_openapi_changes.py — compare old/new specs, produce change report JSON
  3. Copy new spec to api-reference/openapi.json
  4. Run enrichment scripts (in order):
    • enrich-openapi-tags.py — ensure all tags have descriptions (drives Mintlify grouping)
    • inject-xmint-decorators.py — add x-mint metadata for SEO titles/descriptions
    • add-code-samples.py — add x-codeSamples to key endpoints
  5. generate_changelog_entry.py + insert_changelog_entry.py — add changelog entry
  6. Create PR on automated/openapi-sync branch
On merge, Mintlify auto-deploys and regenerates llms.txt, llms-full.txt, skill.md, and sitemap.xml.

3. OpenAPI Spec Enrichment

The OpenAPI spec’s quality now directly determines navigation grouping, page titles, descriptions, and SEO. The enrichment scripts become the autonomous “value-add” layer:
  • enrich-openapi-tags.py — Every tag gets a clear description. Tags drive Mintlify’s auto-generated sidebar groups.
  • inject-xmint-decorators.py — Adds x-mint: metadata to endpoints for SEO-optimized titles, descriptions, and keywords.
  • add-code-samples.py — Adds x-codeSamples for richer endpoint pages with multi-language examples.
These run automatically in the nightly pipeline, so every new endpoint gets enriched metadata the same night it appears.

4. AI & Discovery Files

Mintlify auto-hosts these at the site root — no repo files or scripts needed:
  • https://api-docs.rhombus.community/llms.txt — page index for AI tools
  • https://api-docs.rhombus.community/llms-full.txt — full docs content for AI
  • https://api-docs.rhombus.community/skill.md — capability summary for AI agents
  • https://api-docs.rhombus.community/sitemap.xml — search engine sitemap
The update-llms-files.py script and local llms.txt/llms-full.txt files are retired.

5. SEO Configuration

Add to docs.json:
Hand-written MDX pages should include keywords in frontmatter for page-level SEO. Auto-generated API pages get SEO from the spec’s summary, description, and x-mint: metadata.

Scripts

Retire (7 scripts)

Keep (8 scripts)

Files to Remove

  • llms.txt — Mintlify auto-serves this
  • llms-full.txt — Mintlify auto-serves this
  • 7 retired scripts from scripts/

Files to Modify

  • docs.json — Replace API Reference tab, add SEO block
  • .github/workflows/sync-openapi.yml — Simplified pipeline with enrichment step
  • CLAUDE.md — Update to reflect new architecture
  • .claude/skills/openapi-sync/SKILL.md — Update to reflect simplified pipeline

Guides & Integrations Tabs

No changes in this phase. These will be improved separately in a future iteration.
Last modified on April 9, 2026