Commit Graph
37 Commits
Author SHA1 Message Date
David Karlsson 2b12ac0ef8 build: vendor API reference data to speed up site builds (#26182)
API generation introduced in #26048 added roughly five minutes to site
builds: median successful main-branch build-workflow duration rose from
4m 05s to 8m 48s across September 3–25. The pre-build command took 4m
41s–4m 53s in each of four jobs on the merge commit.

Vendor the generated presentation model in `data/api-reference.json`,
mark it as generated, and let Docker, Netlify, and local Hugo builds
consume it directly. Keep the existing rendered-output checks.

Move generator tests, strict spec validation, and a byte-for-byte
regeneration check into `docker buildx bake validate-api-reference`,
inheriting the shared Docker base stage. The target uses the pinned
Vacuum release binary with Dockerfile ADD checksum verification and
archive extraction instead of compiling Vacuum from source. The existing
build workflow runs this target alongside the other validation matrix
entries. Only this matrix entry is advisory; its failures do not block
site builds or deployment.

Validated locally with the Docker target, rejection of deliberately
stale data, repeatable generation across directories, a production Hugo
build and verification of 453 API HTML/Markdown page pairs, workflow
syntax checks, and scoped documentation lint. The prebuilt-binary CI
check passed in 1m 40s, down from 5m 15s with source compilation. Remote
layer-cache settings were subsequently removed; local Go cache mounts
remain.

Generated by Codex
2026-09-25 18:45:09 +02:00
David Karlsson 9b1f7de05f docs: unify Hub, DVP, and Registry API references (#26048)
@netlify /reference/api/

[Preview the API
reference](https://deploy-preview-26048--docsdocker.netlify.app/reference/api/)

Adds a shared API reference experience for Hub, DVP, and Registry: a
catalog, operation navigation, linked schemas, request and response
examples, and matching HTML and Markdown output. A validation and
generation pipeline prepares the reference data for Hugo and runs as
part of Docker and Netlify builds.

Migrates the three specifications to OpenAPI 3.2, correcting response
shapes, nullable fields, and authentication and token examples. The Hub
migration also corrects SCIM contracts and CSV exports; DVP gains
complete report response schemas and examples. Registry keeps its
documented Hub-specific subset, with authentication and media
negotiation expressed through OpenAPI security and content fields.

Validation is strict for both checks and generation, with no exception
baseline or bypass flag. The build uses the migrated sources directly,
without migration scripts or records.

Page and specification URLs remain stable, including the DVP alias.
Operation and schema anchors change. Engine and Governance retain their
existing references.

Validated locally with Go tests, strict validation of all three
specifications (zero diagnostics), scoped formatting and lint, and a
full Hugo build checking all 176 HTML/Markdown page pairs, example
parity, reference links, and byte-identical published specifications. A
browser check confirmed raw CSV rendering and the generated request
header. No live API requests were made.
2026-09-17 16:56:32 +02:00
David KarlssonandClaude Opus 4.8 64f3951431 build: bump Hugo to 0.163.0
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-09 10:59:31 +02:00
David KarlssonandClaude Opus 4.8 4595cae8ac build: bump Hugo to 0.162.1 and fix deferred CSS template
Hugo 0.162 disallows templates.Defer inside a partialCached partial.
The CSS partial uses templates.Defer with a global key, so switch its
caller in head.html from partialCached to partial (the global Defer key
already dedupes the work). Bump the pinned Hugo version in the Dockerfile
and netlify.toml.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-04 11:05:31 +02:00
David Karlsson d480f7b0eb chore: upgrade hugo to v0.161.1
Signed-off-by: David Karlsson <35727626+dvdksn@users.noreply.github.com>
2026-05-01 09:13:02 +02:00
David Karlsson 5014f3f3fe chore: upgrade pagefind and unhide search in safari
Signed-off-by: David Karlsson <35727626+dvdksn@users.noreply.github.com>
2026-05-01 09:08:22 +02:00
David Karlsson 0eb47623bc deps: upgrade node to v24
Signed-off-by: David Karlsson <35727626+dvdksn@users.noreply.github.com>
2026-03-17 07:32:21 +01:00
David Karlsson 2ac31caa87 deps: upgrade hugo to v0.158.0
Signed-off-by: David Karlsson <35727626+dvdksn@users.noreply.github.com>
2026-03-17 07:31:05 +01:00
David Karlsson 49d1f65b35 deps: upgrade to hugo v0.156.0 and fix deprecations 2026-02-19 16:09:15 +01:00
David Karlsson fa18c7f8bf site: upgrade pagefind to v1.5.0-beta.1
Assisted-By: cagent
2026-02-06 09:16:07 +01:00
David Karlsson d0128a8c82 hack: resolve links in the markdown output
Resolves internal links to point to the corresponding (rendered) path
rather than keeping them as internal links, which wouldn't make sense to
an agent/llm reading them.

Signed-off-by: David Karlsson <35727626+dvdksn@users.noreply.github.com>
2026-01-23 12:43:37 +01:00
David Karlsson 8fb9d3a9a5 ci: flatten markdown files for preview builds
Signed-off-by: David Karlsson <35727626+dvdksn@users.noreply.github.com>
2026-01-12 15:17:32 +01:00
David Karlsson 069ca492cc hugo: update to v0.154.2
Signed-off-by: David Karlsson <35727626+dvdksn@users.noreply.github.com>
2026-01-05 08:34:34 +01:00
Sarah Sanders 0c151dcfdf fix: netlify builds (#22757)
## Description
- Fixes broken Netlify builds

## Reviews
- [ ] Technical review
- [ ] Editorial review
- [ ] Product review
2025-06-03 22:26:55 +02:00
David Karlsson 88636ed07b deps: bump hugo version to v0.141.0
Signed-off-by: David Karlsson <35727626+dvdksn@users.noreply.github.com>
2025-01-17 09:28:04 +01:00
David Karlsson 7539edbc84 deps: bump pagefind to v1.3.0
Signed-off-by: David Karlsson <35727626+dvdksn@users.noreply.github.com>
2025-01-14 13:46:29 +01:00
Allie Sadler 53f58c9255 hugo bump (#21455)
<!--Delete sections as needed -->

## Description

<!-- Tell us what you did and why -->

## Related issues or tickets

<!-- Related issues, pull requests, or Jira tickets -->

## Reviews

<!-- Notes for reviewers here -->
<!-- List applicable reviews (optionally @tag reviewers) -->

- [ ] Technical review
- [ ] Editorial review
- [ ] Product review
2024-11-18 16:58:51 +00:00
David Karlsson 9ce906907b ci: upgrade hugo to v0.138.0
Signed-off-by: David Karlsson <35727626+dvdksn@users.noreply.github.com>
2024-11-07 15:51:44 +01:00
David Karlsson c643508a1f ci: update node.js version to 22 (active lts)
Signed-off-by: David Karlsson <35727626+dvdksn@users.noreply.github.com>
2024-10-31 09:37:20 +01:00
David Karlsson f909620f8f hugo: update hugo to v0.136.5
Signed-off-by: David Karlsson <35727626+dvdksn@users.noreply.github.com>
2024-10-31 09:36:54 +01:00
David Karlsson 22c7b30cc3 ci: upgrade hugo to v0.136.3
https://github.com/gohugoio/hugo/releases/tag/v0.136.3

Signed-off-by: David Karlsson <35727626+dvdksn@users.noreply.github.com>
2024-10-21 18:13:08 +02:00
David Karlsson 8391d73b81 ci: bump hugo version to v0.136.2
Signed-off-by: David Karlsson <35727626+dvdksn@users.noreply.github.com>
2024-10-17 17:38:24 +02:00
David Karlsson 5b8ceb6a8f ci: use official Hugo image
Signed-off-by: David Karlsson <35727626+dvdksn@users.noreply.github.com>
2024-10-16 17:26:46 +02:00
David Karlsson 79ea6e636d deps: update hugo to v0.134.3
Signed-off-by: David Karlsson <35727626+dvdksn@users.noreply.github.com>
2024-09-27 12:11:46 +02:00
David Karlsson ab3b346cfc deps: update pagefind to v1.1.1
Signed-off-by: David Karlsson <35727626+dvdksn@users.noreply.github.com>
2024-09-27 12:08:21 +02:00
David Karlsson 2fc1094c74 netlify: bump hugo version for preview deployments to v0.132.0
Signed-off-by: David Karlsson <35727626+dvdksn@users.noreply.github.com>
2024-08-15 22:06:22 +02:00
David Karlsson a6b3a154f1 build(deps): upgrade hugo to v0.127.0
Signed-off-by: David Karlsson <35727626+dvdksn@users.noreply.github.com>
2024-06-24 10:05:50 +02:00
David Karlsson 97307d4c66 search: pagefind v1.1.0
Signed-off-by: David Karlsson <35727626+dvdksn@users.noreply.github.com>
2024-05-23 14:05:59 +02:00
David Karlsson 7c71031200 build: update hugo to v0.124.1
Signed-off-by: David Karlsson <35727626+dvdksn@users.noreply.github.com>
2024-04-23 10:48:57 +02:00
David Karlsson 6aced2fc9d build(deps): remove refactor nodejs dependencies
Separate dev dependencies like prettier to prevent them from being
installed to build the site, unnecessarily.

Signed-off-by: David Karlsson <35727626+dvdksn@users.noreply.github.com>
2024-02-01 09:44:56 +01:00
David Karlsson e608e74612 build(deps): pin netlify node version to 20.x
Signed-off-by: David Karlsson <35727626+dvdksn@users.noreply.github.com>
2024-01-31 22:03:14 +01:00
David Karlsson 55daaf94a6 build(deps): upgrade hugo to v0.122.0
Signed-off-by: David Karlsson <35727626+dvdksn@users.noreply.github.com>
2024-01-31 22:01:23 +01:00
David Karlsson a0d21ade2f migrate to hugo
Signed-off-by: David Karlsson <35727626+dvdksn@users.noreply.github.com>
2023-08-22 09:41:02 +02:00
John Mulhausen bdbb9b8b08 Delete netlify.toml 2016-11-05 05:32:57 -07:00
John Mulhausen 9cffba51c3 Create netlify.toml 2016-11-05 05:03:15 -07:00
John Mulhausen 3f43b5337b Delete netlify.toml 2016-11-04 17:16:00 -07:00
John Mulhausen 0d0a39c749 Create netlify.toml 2016-11-04 17:06:42 -07:00