Files
docker-docs/layouts/_shortcodes/files.markdown.md
T
Craig Osterhout 5862e80e5b guides: update python & add files component (#25206)
<!--Delete sections as needed -->

## Description

Updated Python guide

- Removed DOI in favor of DHI only. DHI Community is now free, so
there's no reason to keep the DOI fallback path.
- Removed the git clone sample-app pattern. Maintaining external sample
repos is a burden, and split source of truth between the docs and the
sample.
- New file browser / scaffolding component. Lets users copy individual
files or scaffold the whole project with one command. Replaces the role
the cloned sample repo used to play.
- New "Secure your supply chain" topic highlighting what DHI gives you
and how to attach matching attestations to your own image in CI.
- A bunch of smaller improvements: clearer intros for each topic,
progressively updating the same app in all topics, ran and fixed issues,
etc.

https://deploy-preview-25206--docsdocker.netlify.app/guides/python/

## Related issues or tickets

ENGDOCS-3308

## Reviews

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

- [ ] Technical review
- [ ] Editorial review

---------

Signed-off-by: Craig Osterhout <craig.osterhout@docker.com>
2026-06-08 12:07:31 -07:00

565 B

{{- /* Markdown output of the files shortcode (used for the *.md alternative output format that LLMs consume).

Renders the project name and each file as a fenced code block with its path as a label. The file.html child populates the same .Store this template reads from. / -}} {{- with .Inner }}{{/ trigger child shortcodes */}}{{ end -}} {{- $name := trim (.Get "name") " " -}} {{- $files := .Store.Get "files" -}}

{{ $name }}/ {{ range $files }} {{ .path }}{{ with .status }} ({{ . }}){{ end }}:

{{ .content }}

{{ end }}