File tree Expand file tree Collapse file tree 3 files changed +10
-1
lines changed Expand file tree Collapse file tree 3 files changed +10
-1
lines changed Original file line number Diff line number Diff line change 9
9
* .mobi
10
10
* .pdf
11
11
12
+ # templated files
13
+ meta.tex
14
+
12
15
game.db.json
13
16
.DS_Store
Original file line number Diff line number Diff line change 2
2
3
3
set -e
4
4
5
+ if [ -v GITHUB_REF_NAME ]; then
6
+ sed " s/%%FOOTER_VERSION%%/${GITHUB_REF_NAME} /" meta.tmpl.tex > meta.tex
7
+ else
8
+ sed " s/%%FOOTER_VERSION%%/UNDEFINED VERSION/" meta.tmpl.tex > meta.tex
9
+ fi
10
+
5
11
docker run --rm -v ` pwd` :/data uppalabharath/pandoc-latex-cjk:latest --from=gfm+rebase_relative_paths -o learn-go-with-tests.pdf \
6
12
-H meta.tex --pdf-engine=xelatex --variable urlcolor=blue --toc --toc-depth=1 \
7
13
-B pdf-cover.tex \
Original file line number Diff line number Diff line change 11
11
12
12
\pagestyle {fancy}
13
13
\fancyhf {}
14
- \cfoot {v 10.0.0 }
14
+ \cfoot {% %FOOTER_VERSION%% }
You can’t perform that action at this time.
0 commit comments