fix latex generation regression; verify latex in CI
This commit is contained in:
parent
716a56dd36
commit
db5202280f
@ -13,6 +13,17 @@ steps:
|
||||
- git clone --depth 1 https://codeberg.org/Wuzzy/minetest_doc test/worldmods/doc
|
||||
- git clone --depth 1 https://git.bananach.space/advtrains.git test/worldmods/advtrains
|
||||
- git clone --depth 1 https://git.bananach.space/basic_trains.git test/worldmods/basic_trains
|
||||
- git clone --depth 1 https://git.bananach.space/JR_E231series_modpack.git test/worldmods/E231
|
||||
- git clone --depth 1 https://github.com/Marnack/dlxtrains_modpack test/worldmods/dlxtrains
|
||||
- git clone --depth 1 https://github.com/Marnack/advtrains_livery_tools test/worldmods/advtrains_livery_tools
|
||||
- git clone --depth 1 https://github.com/Marnack/classic_coaches test/worldmods/classic_coaches
|
||||
- git clone --depth 1 https://github.com/Marnack/classic_coaches_generic_livery_pack test/worldmods/classic_coaches_livery
|
||||
- git clone --depth 1 https://gitlab.com/h2mm/bike test/worldmods/bike
|
||||
- git clone --depth 1 https://github.com/mt-mods/display_modpack test/worldmods/display_modpack
|
||||
- git clone --depth 1 https://invent.kde.org/davidhurka/doxy_mini_tram test/worldmods/doxy_mini_tram
|
||||
- rm -rf test/worldmods/doxy_mini_tram/LICENSES
|
||||
- rm -rf test/worldmods/doxy_mini_tram/screenshots
|
||||
- rm -rf test/worldmods/doxy_mini_tram/.reuse
|
||||
- ln -s ../../ test/worldmods/advtrains_doc_integration
|
||||
- chmod -R 777 .
|
||||
mtt:
|
||||
@ -22,3 +33,8 @@ steps:
|
||||
- MINETEST_USER_PATH=test
|
||||
commands:
|
||||
- minetestserver --config test/minetest.conf --world test --logfile ''
|
||||
latex-verify:
|
||||
depends_on: mtt
|
||||
image: bscpm/latex
|
||||
commands:
|
||||
- for i in test/atdoc_wagon_*.tex; do latexmk -pdf -interaction=batchmode $i; done
|
||||
|
3
init.lua
3
init.lua
@ -661,7 +661,7 @@ end
|
||||
|
||||
function advtrains_doc_integration.write_wagon_info_as_latex(itemname)
|
||||
local filename = string.format("%satdoc_wagon_%s.tex", worldpath, itemname:gsub(":", "_"))
|
||||
local prototype = adjust_wagon_prototype(advtrains.wagon_prototypes[itemname])
|
||||
local prototype = adjust_wagon_prototype(itemname, advtrains.wagon_prototypes[itemname])
|
||||
local wname = ItemStack(itemname):get_short_description()
|
||||
local st = {string.format([[
|
||||
\documentclass{article}
|
||||
@ -974,6 +974,7 @@ if minetest.get_modpath("mtt") then
|
||||
mtt.register("wagon information formspec", function(cb)
|
||||
local player = mtt.join_player("singleplayer")
|
||||
for k in pairs(prototype_cache) do
|
||||
print("Found wagon prototype: " .. k)
|
||||
doc.show_entry("singleplayer", "advtrains_wagons", k, true)
|
||||
end
|
||||
player:leave()
|
||||
|
Loading…
x
Reference in New Issue
Block a user