aboutsummaryrefslogblamecommitdiff
path: root/aux/workflow/commonmark.sh
blob: 72671456c85bc9d51226472bb4ac79e87d9bdcaf (plain) (tree)
1
2
3
4
5
6
7
8


         

               

                        
 









                                                  
                               
#!/bin/sh
set -eu

PROJECT_UC="$1"
F="$2"
OUTDIR="$3"
OUT="${4:-${F%.*}.html}"

pandoc \
	--toc                                    \
	--highlight-style pygments               \
	--toc-depth=2                            \
	-s                                       \
	--metadata title="$PROJECT_UC - ${F%.*}" \
	--metadata lang=en                       \
	-r commonmark                            \
	-w html                                  \
	-H aux/workflow/favicon.html             \
	< "$F" > "$OUTDIR/$OUT"