Skip to content

Commit f6bd658

Browse files
committed
Fix --html when --template_html is not provided.
1 parent d0c302c commit f6bd658

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

@@ -176,11 +175,11 @@ while true; do
176175
shift 2
177176
;;
178177
--template_html)
179-
TEMPLATE_HTML="${2}"
178+
HTML_ARGS+=" --template ${2}"
180179
shift 2
181180
;;
182181
--html_stylesheet)
183-
HTML_STYLESHEET_ARGS+=" --css ${2}"
182+
HTML_ARGS+=" --css ${2}"
184183
shift 2
185184
;;
186185
--reference_doc)
@@ -1027,8 +1026,7 @@ do_html() {
10271026
-V toccolor=blue
10281027
--embed-resources
10291028
--standalone
1030-
--template=${TEMPLATE_HTML}
1031-
${HTML_STYLESHEET_ARGS}
1029+
${HTML_ARGS}
10321030
--lua-filter=convert-diagrams.lua
10331031
--lua-filter=parse-html.lua
10341032
--lua-filter=apply-classes-to-tables.lua

0 commit comments

Comments
 (0)