From eef3c3e516c1b89f4a30d068a672dd00dd59f7b5 Mon Sep 17 00:00:00 2001 From: EuAndreh Date: Sun, 6 Jun 2021 10:11:14 -0300 Subject: README.md: Add explicit "Links" and "Releases" sections Instead of generating the "Links" and "Releases" sections on the fly and adding them to the end of the README.md before processing it with aux/workflow/README.sh, embed those sections directly and use aux/workflow/assert-readme.sh to make sure the metadata is there. Before we had: 1. generate "Links" and "Releases" on the fly inside aux/workflow/README.sh; 2. add those sections to the end of the README.md; 3. use the custom pandoc build command inside the aux/workflow/README.sh file. Now we have: 1. embed "Links" and "Releases" in the README.md directly; 2. use aux/workflow/assert-readme.sh to validate the correct metadata; 3. use the vanilla aux/workflow/commonmark.sh to generate the HTML. --- aux/workflow/commonmark.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'aux/workflow/commonmark.sh') diff --git a/aux/workflow/commonmark.sh b/aux/workflow/commonmark.sh index e97751b..6016f51 100755 --- a/aux/workflow/commonmark.sh +++ b/aux/workflow/commonmark.sh @@ -5,6 +5,7 @@ mkdir -p public PROJECT_UC="$1" F="$2" +OUT="${3:-${F%.*}.html}" pandoc \ --toc \ @@ -16,4 +17,4 @@ pandoc \ -r commonmark \ -w html \ -H aux/workflow/favicon.html \ - < "$F" > "public/${F%.*}.html" + < "$F" > "public/$OUT" -- cgit v1.2.3