From 4fd6a0c987f91ce21b66470d76df7c0b904f78a1 Mon Sep 17 00:00:00 2001 From: Chen Gong Date: Wed, 14 Mar 2018 23:51:20 +0800 Subject: [PATCH] chore(update/write-release-notes.sh): add html/head/body tags --- update/write-release-notes.sh | 20 +++++++++++++++++--- 1 file changed, 17 insertions(+), 3 deletions(-) diff --git a/update/write-release-notes.sh b/update/write-release-notes.sh index 065d0e939..f3efc687f 100755 --- a/update/write-release-notes.sh +++ b/update/write-release-notes.sh @@ -1,11 +1,25 @@ #!/bin/bash -# writes an HTML page for changes inr the latest release. +# writes an HTML page for changes in the latest release + +cat < release-notes.html + + + + + + +EOF + # take advantage of the fact that change log generator # places 3 new lines after each chapter for a new release. - cat CHANGELOG.md | awk '{ print; if ($0 == "") ++new_lines; else new_lines = 0; if (new_lines >= 3) exit; -}' | marked --gfm > release-notes.html +}' | marked >> release-notes.html + +cat <> release-notes.html + + +EOF