//----- Project variables ----- #import "theme/variables.typ": ravenous, resolve-table-theme, theme, theme-var #import "core/limits.typ": hunbal #import "/data/gen/build_info.typ": build_info #import "build_config.typ" as build_config //----- Imports ----- #import "models/document.typ" as model #import "core/macros.typ" as macros #import "theme/symbols.typ" as symbols #import "theme/tables.typ" as st #import "generation/csv-table.typ" as csv_import #import "generation/radar_graphs.typ" as radar #import "craft_recipes.typ" as craft_recipes //----- Re-expose shared project data ----- #let ravenous = ravenous #let theme = theme #let theme-var = theme-var #let build_info = build_info #let build-config = build_config.build-config #let max-tier-exclusive = build_config.max-tier-exclusive #let chapter-enabled = build_config.chapter-enabled #let player-chapter-enabled = build_config.player-chapter-enabled #let origin-enabled = build_config.origin-enabled #let school-enabled = build_config.school-enabled #let gls = model.gls #let gls-description = model.gls-description #let macros = macros #let ddlvl = macros.ddlvl #let marques = macros.marques #let thresholds = macros.thresholds #let aoe_thresholds = macros.aoe_thresholds #let weapon-pill = macros.weapon-pill #let symbols = symbols #let hunbal = hunbal #let bigscope = macros.bigscope #let csv-table = csv_import.csv-table #let craft-table = csv_import.craft-table #let recipe = craft_recipes.recipe #let radar-fields = radar.radar-fields #let radar-graph = radar.radar-graph #let balancing-totals = radar.balancing-totals #let all-balancing-totals = radar.all-balancing-totals #let kw(c) = [* #c *] //----- Public template for class presentations ----- #let school_presentation = model.school_presentation //----- Alias for the project's help box ----- #let ravhelp = macros.memo_box #let inline_help = macros.inline_help #let illustrated = macros.illustrated #let craft-legend = macros.craft-legend #let reference = macros.reference //----- Configure warnings for the project namespace ----- #import "@preview/uniwarn:0.1.1" as uwarn #let ns = "transfer_warnings" #uwarn.register-namespace(ns) // will panic if already registered by another package //----- Define project-specific warning helpers ----- #let nogls = uwarn.warning.with(namespace: ns, prefix: "[glos] ") // #let ravhelp = uwarn.warning.with(namespace: ns, prefix: "[hlpb] ") #let warn = uwarn.warning.with(namespace: ns, prefix: "[warn] ") #let comment = uwarn.warning.with(namespace: ns, prefix: "[info] ") //----- Enable or disable project warnings ----- #let disable-warnings = uwarn.disable-warnings.with(ns) #let enable-warnings = uwarn.enable-warnings.with(ns) //----- Apply the Ravenous model to the main document ----- #let config_main(document, variables: ravenous, master-only: build-config.master-only) = { show: model.model( ravenous, document, theme, theme-var, include-master-glossary: master-only, ) }