Skip to content

Commit

Permalink
fix: aligns headers in adoc with antora layout
Browse files Browse the repository at this point in the history
  • Loading branch information
bartoszmajsak committed Apr 1, 2020
1 parent 4d3b03b commit e58ddc8
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions pkg/cmd/generate/templates.go
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ const Default = `
const DefaultAdoc = `
{{- with $prs := (withLabel .PullRequests "kind/enhancement") -}}
{{ if $prs }}
=== New features
==== New features
{{range $pr := $prs }}
* {{$pr.Title}} ({{$pr.Permalink}}[#{{$pr.Number}}]), by https://github.com/{{$pr.Author}}[@{{$pr.Author}}]
{{- end -}}
Expand All @@ -75,7 +75,7 @@ const DefaultAdoc = `
{{- with $prs := (withLabel .PullRequests "kind/bug") -}}
{{ if $prs }}
=== Bug fixes
==== Bug fixes
{{range $pr := $prs }}
* {{$pr.Title}} ({{$pr.Permalink}}[#{{$pr.Number}}]), by https://github.com/{{$pr.Author}}[@{{$pr.Author}}]
{{- end -}}
Expand All @@ -84,7 +84,7 @@ const DefaultAdoc = `
{{- with $prs := (withLabel .PullRequests "dependencies") -}}
{{ if $prs }}
=== Latest dependencies update
==== Latest dependencies update
{{range $pr := $prs }}
* {{$pr.Title}} ({{$pr.Permalink}}[#{{$pr.Number}}])
{{- end -}}
Expand All @@ -93,7 +93,7 @@ const DefaultAdoc = `
{{- with $prs := (withLabel .PullRequests "internal/infra") -}}
{{ if $prs }}
=== Project infrastructure
==== Project infrastructure
{{range $pr := $prs }}
* {{$pr.Title}} ({{$pr.Permalink}}[#{{$pr.Number}}]), by https://github.com/{{$pr.Author}}[@{{$pr.Author}}]
{{- end -}}
Expand All @@ -102,7 +102,7 @@ const DefaultAdoc = `
{{- with $prs := (withLabel .PullRequests "internal/test-infra") -}}
{{ if $prs }}
=== Testing
==== Testing
{{range $pr := $prs }}
* {{$pr.Title}} ({{$pr.Permalink}}[#{{$pr.Number}}]), by https://github.com/{{$pr.Author}}[@{{$pr.Author}}]
{{- end -}}
Expand Down

0 comments on commit e58ddc8

Please sign in to comment.