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

9 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
5742b1b888 chore: update linguist-generated cli yaml path
Signed-off-by: David Karlsson <35727626+dvdksn@users.noreply.github.com>
2026-03-04 21:02:09 +01:00
David Karlsson
d29bdf986f chore: add linguist-generated for vendored/generated files
Signed-off-by: David Karlsson <35727626+dvdksn@users.noreply.github.com>
2026-02-11 14:59:57 +01:00
i-ky
c11be9e97f Fine-tune GitHub's language detection for the repo
Since the whole repo is dedicated to documentation, documentation is the "source code" of this repo.
In order to capture this in language stats (and potentially attract more contributors) count Markdown files in content/ folder as "source".
2024-03-20 14:19:43 +02:00
Usha Mandya
d93e505d63 Add .gitattributes file for default line endings
Signed-off-by: Usha Mandya <usha.mandya@docker.com>
2021-05-26 14:59:03 +01:00
Misty Stanley-Jones
3165f14c78 Initial import of https://github.com/docker/pinata 2016-09-29 12:11:03 -07:00
Misty Stanley-Jones
4d1a62276e Imitial import of https://github.com/docker/hub2-demo 2016-09-29 10:35:53 -07:00
Misty Stanley-Jones
5425536e14 Initial import of https://github.com/docker/pinata 2016-09-28 20:36:30 -07:00
Misty Stanley-Jones
cdc8eba140 Imitial import of https://github.com/docker/hub2-demo 2016-09-28 14:36:23 -07:00