Skip to content

Commit

Permalink
(Aegis) bring cargo-class in mermaid again
Browse files Browse the repository at this point in the history
  • Loading branch information
ahyangyi committed Nov 21, 2023
1 parent 36be21c commit 90a3888
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions industry/docgen/economy.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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)
Expand Down

0 comments on commit 90a3888

Please sign in to comment.