1
0
mirror of https://github.com/docker/docs.git synced 2026-10-23 18:09:02 +03:00

488 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 Karlsson
63ddb2912c Merge pull request #25710 from dvdksn/codex/migrate-rumdl
build: migrate Markdown tooling to rumdl
2026-08-05 09:16:24 +02:00
David Karlsson
5dd6aab009 build: upgrade Vale to v3.17.0 2026-08-04 11:30:35 +00:00
David Karlsson
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 Karlsson
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
3a85e74d4f chore: fail on hugo warns and remove redundant validation
Signed-off-by: David Karlsson <35727626+dvdksn@users.noreply.github.com>
2026-05-01 10:34:32 +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
Dorin Geman
da3893027f vendor: github.com/docker/model-runner/cmd/cli v1.1.9-0.20260303081710-59280ed7abd5
See changes in https://github.com/docker/model-runner/compare/cmd/cli/v1.0.3...59280ed7abd5dc3859c6ed83277af7b868e08d79

Signed-off-by: Dorin Geman <dorin.geman@docker.com>
2026-03-03 13:55:10 +02: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
Sebastiaan van Stijn
cb88496d9d go.mod: use tool directive and no replace
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2026-01-27 14:20:05 +01:00
CrazyMax
6a093939d4 update go to 1.25
Signed-off-by: CrazyMax <1951866+crazy-max@users.noreply.github.com>
2026-01-27 12:18:05 +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
58ca053f98 hugo: add post-process script to flatten markdown files
Signed-off-by: David Karlsson <35727626+dvdksn@users.noreply.github.com>
2026-01-12 15:11:19 +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
David Karlsson
bedb2b4b6c deps: use igorshubovych/markdownlint-cli image for running markdownlint
Signed-off-by: David Karlsson <35727626+dvdksn@users.noreply.github.com>
2025-11-03 15:24:10 +01:00
CrazyMax
04b56a67f9 run vale in docker
Signed-off-by: CrazyMax <1951866+crazy-max@users.noreply.github.com>
2025-07-16 15:13:38 +02:00
CrazyMax
77ea1f9bc3 validate vendor target
Signed-off-by: CrazyMax <1951866+crazy-max@users.noreply.github.com>
2025-06-12 11:32:59 +02:00
CrazyMax
4084a45650 update go to 1.24
Signed-off-by: CrazyMax <1951866+crazy-max@users.noreply.github.com>
2025-05-13 15:14:28 +02:00
Paweł Gronowski
ced10b917e Merge pull request #22437 from vvoland/fix-make-vendor
Fix `make vendor`
2025-04-16 12:49:43 +01: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
David Karlsson
3a2f8150a8 dockerfile: pin golang alpine version
Signed-off-by: David Karlsson <35727626+dvdksn@users.noreply.github.com>
2024-12-10 10:35:34 +01:00
David Karlsson
20d69c175a build: update alpine version to 3.21
Signed-off-by: David Karlsson <35727626+dvdksn@users.noreply.github.com>
2024-12-06 12:58:23 +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
28ecf7b67d test: fix broken unused-media test
Signed-off-by: David Karlsson <35727626+dvdksn@users.noreply.github.com>
2024-11-15 16:23:33 +01:00
David Karlsson
c7511a228f refactor: move scripts and utils to hack/ directory
Signed-off-by: David Karlsson <35727626+dvdksn@users.noreply.github.com>
2024-11-15 09:28:19 +01: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
e8e6274e17 fix: incorrect paths used to vendor modules
Signed-off-by: David Karlsson <35727626+dvdksn@users.noreply.github.com>
2024-10-31 11:18:21 +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
0c6604d128 hugo: use a custom hugo setup
This reverts the use of the official Hugo image since it doesn't run
with root privileges, causing a number of unexpected issues.

Signed-off-by: David Karlsson <35727626+dvdksn@users.noreply.github.com>
2024-10-31 09:35:02 +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
597621fed8 dockerfile: use stable syntax
Signed-off-by: David Karlsson <35727626+dvdksn@users.noreply.github.com>
2024-10-09 09:01:21 +02:00
David Karlsson
c66afac138 dockerfile: fix typo in arg description comment
Signed-off-by: David Karlsson <35727626+dvdksn@users.noreply.github.com>
2024-10-09 09:00:45 +02:00
David Karlsson
ae74c20dde deps: update go to v1.23
Signed-off-by: David Karlsson <35727626+dvdksn@users.noreply.github.com>
2024-09-27 12:16:29 +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
55e5c95981 deps(dev): update markdownlint@0.35.0, markdownlint-cli2@0.14.0
Signed-off-by: David Karlsson <35727626+dvdksn@users.noreply.github.com>
2024-09-27 12:09:26 +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
135870fc13 hugo: move manuals content to /manuals section
Signed-off-by: David Karlsson <35727626+dvdksn@users.noreply.github.com>
2024-09-09 10:51:09 +02:00
David Karlsson
ee6ebcb37a deps: bump markdownlint-cli2 to v0.13.0 (markdownlint 0.34.0)
Signed-off-by: David Karlsson <35727626+dvdksn@users.noreply.github.com>
2024-08-13 08:28:08 +02:00
David Karlsson
3ba8f08c16 deps: bump hugo to version 0.132.0
Signed-off-by: David Karlsson <35727626+dvdksn@users.noreply.github.com>
2024-08-13 08:28:08 +02:00
David Karlsson
83adeefaec ci: add check for duplicate target paths / aliases
Signed-off-by: David Karlsson <35727626+dvdksn@users.noreply.github.com>
2024-08-13 08:27:54 +02:00
David Karlsson
61cdf6f1cc ci: add dockerfile check
Signed-off-by: David Karlsson <35727626+dvdksn@users.noreply.github.com>
2024-08-13 08:27:54 +02:00
David Karlsson
dcd1ba4a33 bake: shared session for local context
With the latest Buildx, BuildKit, and Dockerfile, bake can detect when
multiple targets use the same local context, and deduplicate context
transfer.

Signed-off-by: David Karlsson <35727626+dvdksn@users.noreply.github.com>
2024-08-12 13:27:15 +02:00