Skip to content

Commit

Permalink
Output changelog checklists
Browse files Browse the repository at this point in the history
Fixes: matrix-org#1682
Signed-off-by: Johannes Marbach <[email protected]>
  • Loading branch information
Johennes committed Aug 22, 2024
1 parent 215982a commit 4250f33
Show file tree
Hide file tree
Showing 16 changed files with 70 additions and 3 deletions.
8 changes: 8 additions & 0 deletions config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -138,3 +138,11 @@ sidebar_menu_compact = true
[[module.imports]]
path = "github.com/matrix-org/docsy"
disable = false

# custom output formats

[outputFormats]
[outputFormats.Checklist]
mediaType = "text/markdown"
isPlainText = true
baseName = "checklist"
File renamed without changes.
5 changes: 5 additions & 0 deletions content/changelog/v1.1.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
---
title: v1.1
type: docs
outputs:
- html
- checklist
date: 2021-11-09T00:00:00+0000
---
<!--
Expand Down
5 changes: 5 additions & 0 deletions content/changelog/v1.10.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
---
title: v1.10
type: docs
outputs:
- html
- checklist
date: 2024-03-22T09:59:45-06:00
---
<!--
Expand Down
5 changes: 5 additions & 0 deletions content/changelog/v1.11.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
---
title: v1.11
type: docs
outputs:
- html
- checklist
date: 2024-06-20T10:20:43-06:00
---
<!--
Expand Down
5 changes: 5 additions & 0 deletions content/changelog/v1.2.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
---
title: v1.2
type: docs
outputs:
- html
- checklist
date: 2022-02-02T00:00:00+0000
---
<!--
Expand Down
5 changes: 5 additions & 0 deletions content/changelog/v1.3.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
---
title: v1.3
type: docs
outputs:
- html
- checklist
date: 2022-06-15T00:00:00+0100
---
<!--
Expand Down
5 changes: 5 additions & 0 deletions content/changelog/v1.4.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
---
title: v1.4
type: docs
outputs:
- html
- checklist
date: 2022-09-29T00:00:00+0100
---
<!--
Expand Down
5 changes: 5 additions & 0 deletions content/changelog/v1.5.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
---
title: v1.5
type: docs
outputs:
- html
- checklist
date: 2022-11-17T08:22:11-07:00
---
<!--
Expand Down
5 changes: 5 additions & 0 deletions content/changelog/v1.6.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
---
title: v1.6
type: docs
outputs:
- html
- checklist
date: 2023-02-14T08:25:40-07:00
---
<!--
Expand Down
5 changes: 5 additions & 0 deletions content/changelog/v1.7.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
---
title: v1.7
type: docs
outputs:
- html
- checklist
date: 2023-05-25T09:47:21-06:00
---
<!--
Expand Down
5 changes: 5 additions & 0 deletions content/changelog/v1.8.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
---
title: v1.8
type: docs
outputs:
- html
- checklist
date: 2023-08-23T09:23:53-06:00
---
<!--
Expand Down
5 changes: 5 additions & 0 deletions content/changelog/v1.9.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
---
title: v1.9
type: docs
outputs:
- html
- checklist
date: 2023-11-29T10:04:26-07:00
---
<!--
Expand Down
1 change: 1 addition & 0 deletions layouts/_default/single.checklist.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{{ .RawContent | replaceRE "\n- " "\n- [ ] " | replaceRE "<!--(.|\\s)*?-->\n?" "" }}
4 changes: 1 addition & 3 deletions layouts/shortcodes/changelog/changelogs.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@
"content/changelogs"
*/}}

{{ with .Page.Resources.Match "*.md" }}
{{ range ((sort . "Params.date" "desc")) }}
{{ range .Page.RegularPages }}
{{ .RenderShortcodes }}
{{ end }}
{{ end }}
5 changes: 5 additions & 0 deletions scripts/generate-changelog.sh
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,11 @@ towncrier --yes
# to sort the changelogs at build time.
cat <<EOF
---
title: $VERSION
type: docs
outputs:
- html
- checklist
date: $(date -Iseconds)
---
EOF
Expand Down

0 comments on commit 4250f33

Please sign in to comment.