Skip to content

docs: consolidate build metadata and buildkit reference docs#24847

Open
dvdksn wants to merge 5 commits intodocker:mainfrom
dvdksn:consolidate-upstream-prose
Open

docs: consolidate build metadata and buildkit reference docs#24847
dvdksn wants to merge 5 commits intodocker:mainfrom
dvdksn:consolidate-upstream-prose

Conversation

@dvdksn
Copy link
Copy Markdown
Contributor

@dvdksn dvdksn commented Apr 21, 2026

Summary

Two cleanups in the build docs:

Flatten attestations. /build/metadata/attestations/ becomes three siblings: Annotations, Provenance, SBOM. Conceptual framing moves out of the build docs and into dhi/core-concepts/attestations.md, which now leads with the concept. Aliases preserve the old URLs.

Stop republishing BuildKit internals. Dropped the Hugo mounts for buildkitd.toml.md, slsa-definitions.md, and attestation-storage.md — we can't paraphrase BuildKit internals faithfully without the internals context. Inbound links now point at the canonical files in moby/buildkit.

Generated by Claude Code

@dvdksn dvdksn added the status/review Pull requests that are ready for review label Apr 21, 2026
@netlify
Copy link
Copy Markdown

netlify Bot commented Apr 21, 2026

Deploy Preview for docsdocker ready!

Name Link
🔨 Latest commit e86bac9
🔍 Latest deploy log https://app.netlify.com/projects/docsdocker/deploys/69e77beaa145870007b5bf0e
😎 Deploy Preview https://deploy-preview-24847--docsdocker.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@dvdksn dvdksn force-pushed the consolidate-upstream-prose branch from 4c4831c to 83abd69 Compare April 21, 2026 11:37
dvdksn and others added 5 commits April 21, 2026 15:29
Remove the hugo module mounts that vendored buildkitd.toml.md,
slsa-definitions.md, and attestation-storage.md from moby/buildkit
into this repo. These files document BuildKit internals (worker
backends, frontends, attestation storage) that aren't in scope for
docs.docker.com to explain — attempting to paraphrase them without
the internals context produces vague, unreliable reference docs.

Inbound links to the former toml-configuration page now point to the
authoritative file in moby/buildkit. The task-oriented
Configure BuildKit page (configure.md) continues to cover common
Docker Build customizations like mirrors and CNI.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
Move the /build/metadata/attestations/ subsection into three siblings
under /build/metadata/: annotations, provenance, sbom. The new
/metadata/_index.md becomes a rendered landing page with mechanics
content (create, storage, manifest format) inherited from the old
attestations index, and cross-links to the DHI core-concepts page for
the underlying concept.

Aliases preserved: /build/attestations/, /build/metadata/attestations/,
/build/attestations/sbom/, /build/attestations/slsa-provenance/, and
the /build/metadata/attestations/* equivalents.

All 27 inbound links across content/ rewritten to target the new paths.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
Rewrite the opening paragraph to define attestations in general terms
before framing them in a DHI-specific context, consistent with other
pages under core-concepts/.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
Add backward-compat aliases so links to the pre-flatten URLs
/build/metadata/attestations/sbom/ and
/build/metadata/attestations/slsa-provenance/ continue to resolve.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
Will need upstream patch

Signed-off-by: David Karlsson <35727626+dvdksn@users.noreply.github.com>
@dvdksn dvdksn force-pushed the consolidate-upstream-prose branch from 83abd69 to e86bac9 Compare April 21, 2026 13:30
@dvdksn dvdksn requested review from a team, crazy-max and tonistiigi April 22, 2026 05:00
@dvdksn dvdksn marked this pull request as ready for review April 22, 2026 05:00
@dvdksn
Copy link
Copy Markdown
Contributor Author

dvdksn commented Apr 22, 2026

/review

Copy link
Copy Markdown
Contributor

@docker-agent docker-agent Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Assessment: 🔴 CRITICAL

Two vendored files (data/cli/buildx/) are edited directly, violating AGENTS.md. One removed page is missing a redirect alias. Minor punctuation issue also flagged.

Comment thread data/cli/buildx/docker_buildx_bake.yaml
Comment thread data/cli/buildx/docker_buildx_build.yaml
Comment thread hugo.yaml
@@ -332,12 +332,6 @@ module:
- source: frontend/dockerfile/docs/rules
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[HIGH] Missing redirect for removed page /build/buildkit/toml-configuration/

The hugo.yaml mount that served buildkitd.toml.md at content/manuals/build/buildkit/toml-configuration.md is being removed. This means the URL /build/buildkit/toml-configuration/ will return 404 after this PR is merged — with no redirect in place.

Inbound links from configure.md and garbage-collection.md have been updated to point to the upstream GitHub URL. However, external sites, search engines, and any bookmarked links will hit a dead end.

Consider adding to content/manuals/build/buildkit/configure.md (or a stub page):

aliases:
  - /build/buildkit/toml-configuration/

@@ -168,7 +169,7 @@ $ docker buildx build --tag <namespace>/<image>:<version> \
For more information about SLSA Provenance v1, see the
[SLSA specification](https://slsa.dev/spec/v1.1/provenance). To see the
difference between SLSA v0.2 and v1 provenance attestations, refer to
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[MEDIUM] Missing period at end of sentence

The sentence ends without a period:

difference between SLSA v0.2 and v1 provenance attestations, refer to
[SLSA definitions](https://github.com/moby/buildkit/blob/master/docs/attestations/slsa-definitions.md)

Should end with a period: ...slsa-definitions.md).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

status/review Pull requests that are ready for review

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant