We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 11abe1f commit f3760e8Copy full SHA for f3760e8
.gitignore
@@ -9,5 +9,8 @@ _book/
9
*.mobi
10
*.pdf
11
12
+# templated files
13
+meta.tex
14
+
15
game.db.json
16
.DS_Store
build.books.sh
@@ -2,6 +2,12 @@
2
3
set -e
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
+fi
docker run --rm -v `pwd`:/data uppalabharath/pandoc-latex-cjk:latest --from=gfm+rebase_relative_paths -o learn-go-with-tests.pdf \
-H meta.tex --pdf-engine=xelatex --variable urlcolor=blue --toc --toc-depth=1 \
-B pdf-cover.tex \
meta.tex renamed to meta.tmpl.tex
@@ -11,4 +11,4 @@
\pagestyle{fancy}
\fancyhf{}
-\cfoot{v 10.0.0}
+\cfoot{%%FOOTER_VERSION%%}
0 commit comments