From 90a3888f918b5be853556f0dbae83f36f9a982c1 Mon Sep 17 00:00:00 2001 From: "Yi Yang @ Aquamarine" Date: Tue, 21 Nov 2023 15:59:01 +0800 Subject: [PATCH] (Aegis) bring cargo-class in mermaid again --- industry/docgen/economy.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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)