diff --git a/industry/docgen/economy.py b/industry/docgen/economy.py index cde647eb..f824f646 100644 --- a/industry/docgen/economy.py +++ b/industry/docgen/economy.py @@ -36,7 +36,8 @@ def gen_economy_doc(all_economies, string_manager): --- # Flowchart ```mermaid -flowchart LR;""", +flowchart LR; +classDef cargo stroke:none;""", file=f, ) collapsed_cargos = economy.collapsed_cargos @@ -49,7 +50,7 @@ def gen_economy_doc(all_economies, string_manager): if cargo in collapsed_cargos: extra_desc.append(f"Produces {cargo.name(string_manager)}") desc = "\n".join([industry.name(string_manager)] + extra_desc) - print(f'INDUSTRY_{industry.translation_name}["`{desc}`"];', file=f) + print(f'INDUSTRY_{industry.translation_name}:::cargo["`{desc}`"];', file=f) for cargo in economy.cargos: if cargo not in collapsed_cargos: print(f"CARGO_{cargo.label.decode()}(({cargo.name(string_manager)}));", file=f)