Skip to content

Commit

Permalink
revert: collapsible section in adoc - not working with antora
Browse files Browse the repository at this point in the history
  • Loading branch information
bartoszmajsak committed Feb 26, 2020
1 parent 1b54d34 commit 6699c9c
Showing 1 changed file with 5 additions and 10 deletions.
15 changes: 5 additions & 10 deletions pkg/cmd/generate/templates.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ func Contains(s []string, e string) bool {
const Default = `
{{- with $prs := (withLabel .PullRequests "kind/enhancement") -}}
{{ if $prs }}
## All changes in this release
### New features
{{range $pr := $prs }}
* {{$pr.Title}} ([#{{$pr.Number}}]({{$pr.Permalink}})), by [@{{$pr.Author}}](https://github.com/{{$pr.Author}})
Expand Down Expand Up @@ -67,10 +66,7 @@ const Default = `
const DefaultAdoc = `
{{- with $prs := (withLabel .PullRequests "kind/enhancement") -}}
{{ if $prs }}
.*All changes in this release*
[%collapsible]
====
*New features*
=== New features
{{range $pr := $prs }}
* {{$pr.Title}} ({{$pr.Permalink}}[#{{$pr.Number}}]), by https://github.com/{{$pr.Author}}[@{{$pr.Author}}]
{{- end -}}
Expand All @@ -79,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 @@ -88,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 @@ -97,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 @@ -106,11 +102,10 @@ 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 -}}
{{ end }}
====
{{ end }}
`

0 comments on commit 6699c9c

Please sign in to comment.