aboutsummaryrefslogtreecommitdiff
path: root/build-aux/workflow/TODOs.sh
blob: b8a3f29cec91dbc23773aa450e255b5f040268b6 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/bin/sh -eux

mkdir -p public

export PROJECT_UC="$1"
export PROJECT="$2"
export MAILING_LIST="$3"

envsubst < build-aux/workflow/preamble.md | \
  cat - TODOs.md                          | \
  pandoc --toc                           \
         --highlight-style pygments      \
         --toc-depth=2                   \
         -s                              \
         --metadata title="$1 - TODOs"   \
         --metadata lang=en              \
         -H build-aux/workflow/style.css \
         -r markdown -w html > public/TODOs.html