File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -6,15 +6,7 @@ IFS=$(echo -en "\n\b")
66for input in $( find units -type f -not -name Overview.md -name ' *.md' )
77do
88 echo -n " Generating '$input ' ... "
9-
10- case $( basename $input ) in
11- Slides.md)
12- bin/genslide " $input " " ${input% .md} .pdf" & > /dev/null
13- ;;
14- * )
15- bin/gendoc " $input " " ${input% .md} .pdf"
16- ;;
17- esac
9+ bin/gen " $input " " ${input% .md} .pdf" & > /dev/null
1810 echo " done"
1911done
2012
Original file line number Diff line number Diff line change 1+ #! /bin/bash
2+
3+ input=" $1 "
4+ output=" $2 "
5+
6+ if [ ! -f " $input " ]; then
7+ echo " error: <input> file not found ('$input ')"
8+ exit 1
9+ elif [ -z " $output " ]; then
10+ echo " error: missing <output> argument"
11+ exit 1
12+ fi
13+
14+ case $( basename " $input " ) in
15+ Slides.md)
16+ marp " $input " \
17+ --allow-local-files \
18+ --theme assets/slide-styles.marp \
19+ --html true \
20+ --pdf true \
21+ --output " $output "
22+ ;;
23+
24+ * )
25+ pandoc " $input " \
26+ --resource-path=" $( dirname " $input " ) " \
27+ --from markdown-smart \
28+ --highlight-style=assets/document-theme.theme \
29+ -H assets/document-header.tex \
30+ -V linkcolor=Blue \
31+ -o " $output "
32+ ;;
33+ esac
Load Diff This file was deleted.
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments