HexCasting/doc/properties.toml
2023-09-10 11:48:00 -04:00

61 lines
1.6 KiB
TOML

modid = "hexcasting"
book = "hexcasting:thehexbook"
fallback_url = "https://gamma-delta.github.io/HexMod"
default_lang = "en_us"
_export_root = "src/hexdoc/_export"
resource_dirs = [ # top takes priority
{ path="{^_export_root}/resources", reexport=false },
"{_common.src}/main/resources",
"{_common.src}/generated/resources",
"{_fabric.src}/main/resources",
"{_fabric.src}/generated/resources",
"{_forge.src}/main/resources",
"{_forge.src}/generated/resources",
]
export_dir = "{_export_root}/generated"
# NOTE: "!Raw" means "don't apply variable interpolation to this value"
_pattern_regex = { "!Raw"='make\(\s*"(?P<name>[a-zA-Z0-9_\/]+)",\s*(?:new )?(?:ActionRegistryEntry|OperationAction)\(\s*HexPattern\.fromAngles\(\s*"(?P<signature>[aqweds]+)",\s*HexDir.(?P<startdir>\w+)\)' }
[[pattern_stubs]]
path = "{^_common.package}/common/lib/hex/HexActions.java"
regex = "{^_pattern_regex}"
[[pattern_stubs]]
path = "{^_fabric.package}/FabricHexInitializer.kt"
regex = "{^_pattern_regex}"
[base_asset_urls]
hexcasting = "https://raw.githubusercontent.com/gamma-delta/HexMod/main/Common/src/main/resources"
[template]
main = "main.html.jinja"
static_dir = "static"
packages = [
"hexdoc",
]
[template.args]
mod_name = "Hex Casting"
author = "petrak@, Alwinfy"
icon_href = "logo.png"
show_landing_text = true
# platforms
[_common]
src = "../Common/src"
package = "{src}/main/java/at/petrak/hexcasting"
[_fabric]
src = "../Fabric/src"
package = "{src}/main/java/at/petrak/hexcasting/fabric"
[_forge]
src = "../Forge/src"
package = "{src}/main/java/at/petrak/hexcasting/forge"