[Phase 5] Add vin-decoder openapi.yaml to build-docs.yaml CI spec-aggregation step #148
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Roadmap reference
Phase 5 — Documentation site: Gitea Actions pipeline that copies per-API
openapi.yamlfiles at build time.Problem
The
.gitea/workflows/build-docs.yamlworkflow (closed #38) was written for the original three APIs. It checks outzip-enrichment,holidays, andair-qualityand copies eachopenapi.yamlintodocs-site/public/specs/. When VIN Decoder was added as the 4th API (issue #117), a correspondingvin-decoder.astroRedoc page was created (closed #123) and avin-decoder.yamlOpenAPI spec exists inleeworks-agents/vin-decoder. However, thebuild-docs.yamlworkflow was never updated to include VIN Decoder. As a result,docs-site/public/specs/vin-decoder.yamlis never populated and thevin-decoder.astroRedoc page renders an empty/broken spec.What to do
In
.gitea/workflows/build-docs.yaml:leeworks-agents/vin-decoder(after the existingair-qualitycheckout):docs-site/public/specs/vin-decoder.yamlis present in the build output.Acceptance criteria
.gitea/workflows/build-docs.yamlincludes a checkout step forleeworks-agents/vin-decoderdocs-site/public/specs/vin-decoder.yamlis produced during every CI runvin-decoder.astroRedoc page renders the full VIN Decoder spec atdocs.leeworks.dev/vin-decoderwithout errorskustomize build flux/still passes (no manifest regressions)Dependencies
leeworks-agents/vin-decoderrepo must exist — closed ✅)vin-decoder.astropage exists — closed ✅)Estimated effort: ~30 minutes (single-file workflow edit + CI verification)
(Reference: ROADMAP.md §Phase 5;
.gitea/workflows/build-docs.yamllines 25–52)✅ Implemented — PR #149 merged.
Added to
.gitea/workflows/build-docs.yaml:Checkout vin-decoderstep (after air-quality) checking outleeworks-agents/vin-decoderwithGITEA_TOKENcp vin-decoder/openapi.yaml api-company/docs-site/public/specs/vin-decoder.yamlin the spec-copy stepEvery CI run will now produce
docs-site/public/specs/vin-decoder.yaml, unblocking thevin-decoder.astroRedoc page atdocs.leeworks.dev/vin-decoder.Closing — PR #149 merged. VIN Decoder spec is now included in every build-docs.yaml CI run.