Skip to content

Commit 3826b97

Browse files
authored
Fix --html when --template_html is not provided. (#274)
1 parent 9652f18 commit 3826b97

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

build.sh

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,7 @@ CROSSREF_TYPE="iso"
2121
DO_AUTO_BACKMATTER="yes"
2222
TEMPLATE_PDF="tcg.tex"
2323
TEMPLATE_TYPST="tcg.typ"
24-
TEMPLATE_HTML=""
25-
HTML_STYLESHEET_ARGS=""
24+
HTML_ARGS=""
2625
CSL=""
2726

2827

@@ -174,11 +173,11 @@ while true; do
174173
shift 2
175174
;;
176175
--template_html)
177-
TEMPLATE_HTML="${2}"
176+
HTML_ARGS+=" --template ${2}"
178177
shift 2
179178
;;
180179
--html_stylesheet)
181-
HTML_STYLESHEET_ARGS+=" --css ${2}"
180+
HTML_ARGS+=" --css ${2}"
182181
shift 2
183182
;;
184183
--reference_doc)
@@ -1024,8 +1023,7 @@ do_html() {
10241023
-V toccolor=blue
10251024
--embed-resources
10261025
--standalone
1027-
--template=${TEMPLATE_HTML}
1028-
${HTML_STYLESHEET_ARGS}
1026+
${HTML_ARGS}
10291027
--lua-filter=convert-diagrams.lua
10301028
--lua-filter=parse-html.lua
10311029
--lua-filter=apply-classes-to-tables.lua

0 commit comments

Comments
 (0)