Explorar o código

Add newlines between tag groups so they get better line-spacing

Especially with Docker Hub's new stylesheets, the tag listing is *really* compressed and hard to scan/read, especially on the really extreme examples like `tomcat`.

This adjusts the line-spacing such that they should have a little more breathing room overall.
Tianon Gravi hai 1 ano
pai
achega
796319414b
Modificáronse 1 ficheiros con 3 adicións e 3 borrados
  1. 3 3
      .template-helpers/generate-dockerfile-links-partial.tmpl

+ 3 - 3
.template-helpers/generate-dockerfile-links-partial.tmpl

@@ -38,9 +38,8 @@ This template defines the "Supported tags and Dockerfile links" portion of an im
 	` {{- $e.Tags | join "`, `" -}} `
 	` {{- $e.Tags | join "`, `" -}} `
 	{{- if $url -}} ]( {{- $url -}} ) {{- end -}}
 	{{- if $url -}} ]( {{- $url -}} ) {{- end -}}
 
 
-	{{- "\n" -}}
+	{{- "\n\n" -}}
 {{- end -}}
 {{- end -}}
-{{- "\n" -}}
 
 
 {{- if (len $sharedTagGroups) -}}
 {{- if (len $sharedTagGroups) -}}
 	{{- "## Shared Tags\n\n" -}}
 	{{- "## Shared Tags\n\n" -}}
@@ -51,7 +50,7 @@ This template defines the "Supported tags and Dockerfile links" portion of an im
 		{{- if (len $entries) -}}
 		{{- if (len $entries) -}}
 			{{- "-\t`" -}}
 			{{- "-\t`" -}}
 			{{ .SharedTags | join "`, `" }}
 			{{ .SharedTags | join "`, `" }}
-			{{- "`:\n" -}}
+			{{- "`:\n\n" -}}
 
 
 			{{- range $i, $e := $entries -}}
 			{{- range $i, $e := $entries -}}
 				{{- $arch := $archSpecific | ternary arch ($e.HasArchitecture arch | ternary arch ($e.Architectures | first)) -}}
 				{{- $arch := $archSpecific | ternary arch ($e.HasArchitecture arch | ternary arch ($e.Architectures | first)) -}}
@@ -79,6 +78,7 @@ This template defines the "Supported tags and Dockerfile links" portion of an im
 
 
 				{{- "\n" -}}
 				{{- "\n" -}}
 			{{- end -}}
 			{{- end -}}
+			{{- "\n" -}}
 		{{- end -}}
 		{{- end -}}
 	{{- end -}}
 	{{- end -}}
 	{{- "\n" -}}
 	{{- "\n" -}}