|Y. Wang 74cde540c1 Support the doc_identifier mod||2 months ago|
|ci||9 months ago|
|locale||2 months ago|
|.dir-locals.el||10 months ago|
|.luacheckrc||2 months ago|
|LICENSE||11 months ago|
|README.md||2 months ago|
|init.lua||2 months ago|
|mod.conf||2 months ago|
This mod integrates Advtrains with the doc mod.
/helpform command can be used as usual.
This mod adds the "Wagons" category that contains information related to the wagons. It also adds adds certain Advtrains-related properties to certain nodes.
Please keep in mind that, while this mod attempts to provide accurate information, its accuracy, especially for information related to liveries, is limited by various factors. Refer the source code of the relevant mods for authoritative information.
Wagon mods can add a description to the
_doc_wagon_longdesc field of
the wagon prototype; adding
advtrains_doc_integration as an optional
dependency is not needed.
If you use Mineunit, you can copy (or add a symlink to) this directory into the fixtures directory of your mod and then using (for exmaple) the code below to generate wagon datasheets.
require "mineunit" mineunit "core" fixture "advtrains_doc_integration/ci/init" sourcefile "init"
If you do not use Mineunit, the following functions are available in
write_wagon_info_as_latex, which exports the datasheet of a single type of wagon as LaTeX, and
write_all_wagons_as_latex, which exports all wagon datasheets as LaTeX.
It is also possible to export wagon datasheets using the
command in Minetest.
The datasheets are exported to the world directory (or, for Mineunit, the fixtures directory). Note that the result of generating datasheets from Minetest and from CI may differ for various reasons.