aboutsummaryrefslogtreecommitdiff
path: root/.build.yml
diff options
context:
space:
mode:
Diffstat (limited to '.build.yml')
-rw-r--r--.build.yml28
1 files changed, 28 insertions, 0 deletions
diff --git a/.build.yml b/.build.yml
index 303348f..40d4366 100644
--- a/.build.yml
+++ b/.build.yml
@@ -6,8 +6,22 @@ packages:
- unzip
- wget
- lua-busted
+- dvisvgm
+- ghostscript
+- texlive-extra-utils
+- texlive-latex-base
+- texlive-latex-extra
+- texlive-fonts-extra
+- texlive-pictures
+- texlive-science
+- tidy
sources :
- https://git.sr.ht/~gpcf/advtrains
+artifacts:
+- .minetest/mods/advtrains/assets/manual/acceleration-distance.pdf
+- .minetest/mods/advtrains/assets/manual/manual.pdf
+- .minetest/mods/advtrains/assets/manual/a5manual.pdf
+- .minetest/mods/advtrains/assets/manuals.tar.xz
tasks:
@@ -46,3 +60,17 @@ tasks:
- run_test_world: |
echo "bind_address = 127.0.0.1" > minetest.conf
~/bin/minetestserver --port 31111 --gameid minetest_game --config ~/minetest.conf --world ~/.minetest/worlds/advtrains_testworld
+- generate_documentation: |
+ cd ~/.minetest/mods/advtrains/assets/manual
+ sed -E '5s/a4paper/a5paper/' manual.tex > a5manual.tex
+ for i in manual.tex a5manual.tex; do
+ for run in {1..2}; do
+ pdflatex -interaction=nonstopmode -halt-on-error -output-format=pdf $i
+ done
+ done
+ make4ht -f 'html5+tidy' manual.tex
+ for i in acceleration-distance.ps; do
+ ps2pdf $i
+ done
+ cd ..
+ find ./manual -name '*.pdf' -o -name '*.svg' -o -name '*.html' -o -name '*.css' | tar -cJf manuals.tar.xz -T -