Commit 72c3aa9
authored
fix(ci): add OpenAPI spec download to GitHub Pages build (#494)
## Summary
- The GitHub Pages deploy workflow (`hugo.yaml`) was missing the
`./hack/download_openapi.sh` step before `hugo --gc --minify`
- This caused the REST API reference page for v1.2 (and any future
versions) to have no `api.json` in production, since v1.2+ rely on
build-time download rather than a committed file
- Netlify deploy previews were unaffected — `netlify.toml` already
includes this step
## Test plan
- [ ] Verify Netlify deploy preview shows the v1.2 REST API page at
`/docs/v1.2/cozystack-api/rest/`
- [ ] After merge, verify production GitHub Pages serves
`/docs/v1.2/cozystack-api/api.json`
<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit
* **Chores**
* Enhanced the build pipeline to automatically retrieve and include the
latest API specifications during documentation generation, ensuring
generated documentation reflects current technical standards.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->1 file changed
Lines changed: 4 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
50 | 50 | | |
51 | 51 | | |
52 | 52 | | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
53 | 57 | | |
54 | 58 | | |
55 | 59 | | |
| |||
0 commit comments