aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2020-03-15 11:23:55 -0700
committerJohn MacFarlane <jgm@berkeley.edu>2020-03-15 11:23:55 -0700
commit004907f4f229b4aff2ca9c2a96b694251b51cce9 (patch)
tree119c5c03678fd5bbad2d322465255e52f73ce0a6
parente23554cec19d89d7fb0fd5a274565a63197c8780 (diff)
downloadpandoc-004907f4f229b4aff2ca9c2a96b694251b51cce9.tar.gz
make changes_github: use details tag to make changelog collapsible.
-rw-r--r--Makefile2
-rw-r--r--tools/changes_template.html6
2 files changed, 7 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 72d7eabb8..ff18b0c77 100644
--- a/Makefile
+++ b/Makefile
@@ -55,7 +55,7 @@ fix_spacing:
for f in $(SOURCEFILES); do printf '%s\n' "`cat $$f`" | sed -e 's/ *$$//' > $$f.tmp; mv $$f.tmp $$f; done
changes_github:
- pandoc --filter tools/extract-changes.hs changelog.md -t gfm --wrap=none | sed -e 's/\\#/#/g' | pbcopy
+ pandoc --filter tools/extract-changes.hs changelog.md -t gfm --wrap=none --template tools/changes_template.html | sed -e 's/\\#/#/g' | pbcopy
dist: man/pandoc.1
cabal sdist
diff --git a/tools/changes_template.html b/tools/changes_template.html
new file mode 100644
index 000000000..a1cb46e2e
--- /dev/null
+++ b/tools/changes_template.html
@@ -0,0 +1,6 @@
+<details>
+ <summary>Click to expand changelog</summary>
+
+$body$
+
+</details>