Skip to content

Commit

Permalink
(Aegis) fix docgen
Browse files Browse the repository at this point in the history
  • Loading branch information
ahyangyi committed Nov 21, 2023
1 parent 90a3888 commit 5b77962
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions industry/docgen/economy.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ def gen_economy_doc(all_economies, string_manager):
# Flowchart
```mermaid
flowchart LR;
classDef cargo stroke:none;""",
classDef cargo fill:none,stroke:none;""",
file=f,
)
collapsed_cargos = economy.collapsed_cargos
Expand All @@ -50,10 +50,10 @@ 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}:::cargo["`{desc}`"];', file=f)
print(f'INDUSTRY_{industry.translation_name}["`{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)
print(f"CARGO_{cargo.label.decode()}({cargo.name(string_manager)}):::cargo;", file=f)
for industry, flow in economy.graph.items():
for cargo in flow.accepts:
if cargo not in collapsed_cargos:
Expand Down

0 comments on commit 5b77962

Please sign in to comment.