Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[docs-only] add toc to changelog #4210

Merged
merged 1 commit into from
Nov 9, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 11 additions & 6 deletions changelog/CHANGELOG.tmpl
Original file line number Diff line number Diff line change
@@ -1,7 +1,13 @@
# Table of Contents

{{ range . -}}
* [Changelog for {{ .Version }}](#changelog-for-owncloud-android-client-{{ .Version | replace "." ""}}-{{ .Date | lower -}})
{{ end -}}
* [Changelog for 2.17 versions and below](#changelog-for-217-versions-and-below)
{{ $allVersions := . }}
{{- range $index, $changes := . }}{{ with $changes -}}
Changelog for ownCloud Android Client [{{ .Version }}] ({{ .Date }})
=======================================
# Changelog for ownCloud Android Client [{{ .Version }}] ({{ .Date }})

The following sections list the changes in ownCloud Android Client {{ .Version }} relevant to
ownCloud admins and users.

Expand All @@ -22,14 +28,12 @@ ownCloud admins and users.
[{{ .Version }}]: https://github.com/owncloud/android/compare/v2.16...v{{ .Version }}
{{- end }}

Summary
-------
## Summary
{{ range $entry := .Entries }}{{ with $entry }}
* {{ .Type }} - {{ .Title }}: [#{{ .PrimaryID }}]({{ .PrimaryURL }})
{{- end }}{{ end }}

Details
-------
## Details
{{ range $entry := .Entries }}{{ with $entry }}
* {{ .Type }} - {{ .Title }}: [#{{ .PrimaryID }}]({{ .PrimaryURL }})
{{ range $par := .Paragraphs }}
Expand All @@ -48,6 +52,7 @@ Details
{{ end }}{{ end -}}

{{/* Start of old changelog */ -}}
# Changelog for 2.17 versions and below

## 2.17 (March 2021)
- Toolbar redesign
Expand Down