Merge pull request #2464 from infosiftr/breathe

Add newlines between tag groups so they get better line-spacing
This commit is contained in:
yosifkit 2024-07-08 11:03:32 -07:00 committed by GitHub
commit adfacb9d8f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 5 additions and 7 deletions

View File

@ -13,7 +13,7 @@ if [ -z "${BASHBREW_LIBRARY:-}" ]; then
repo="https://github.com/docker-library/official-images/raw/master/library/$repo"
fi
if [ -n "$ARCH_SPECIFIC_DOCS" ] && archTags="$(bashbrew cat --format '{{ range .Entries }}{{ if .HasArchitecture arch }}{{ .Tags | first }}{{ "\n" }}{{ end }}{{ end }}' "$repo")" && [ -z "$archTags" ]; then
if [ -n "$ARCH_SPECIFIC_DOCS" ] && archTags="$(bashbrew list --uniq --arch-filter "$repo")" && [ -z "$archTags" ]; then
echo "**WARNING:** THIS IMAGE *IS NOT SUPPORTED* ON THE \`$BASHBREW_ARCH\` ARCHITECTURE"
exit
fi

View File

@ -33,16 +33,13 @@ This template defines the "Supported tags and Dockerfile links" portion of an im
{{- $url = $url | ternary $url (hasPrefix "https://git.launchpad.net/" $repoUrlBase | ternary (print $repoUrlBase "/tree/" $dockerfilePath "?h=" ($e.ArchGitFetch $arch) "&id=" $gitCommit) "") -}}
{{- /* TODO decide what to do (if anything) about other non-GitHub repos with respect to URL */ -}}
{{- if $i -}}
{{- "\n" -}}
{{- end -}}
- {{- "\t" -}}
{{- if $url -}} [ {{- end -}}
` {{- $e.Tags | join "`, `" -}} `
{{- if $url -}} ]( {{- $url -}} ) {{- end -}}
{{- end -}}
{{- "\n\n" -}}
{{- end -}}
{{- if (len $sharedTagGroups) -}}
{{- "## Shared Tags\n\n" -}}
@ -53,7 +50,7 @@ This template defines the "Supported tags and Dockerfile links" portion of an im
{{- if (len $entries) -}}
{{- "-\t`" -}}
{{ .SharedTags | join "`, `" }}
{{- "`:\n" -}}
{{- "`:\n\n" -}}
{{- range $i, $e := $entries -}}
{{- $arch := $archSpecific | ternary arch ($e.HasArchitecture arch | ternary arch ($e.Architectures | first)) -}}
@ -81,6 +78,7 @@ This template defines the "Supported tags and Dockerfile links" portion of an im
{{- "\n" -}}
{{- end -}}
{{- "\n" -}}
{{- end -}}
{{- end -}}
{{- "\n" -}}