Skip to content

Commit 4393212

Browse files
one column for game
1 parent 2868d5f commit 4393212

1 file changed

Lines changed: 6 additions & 7 deletions

File tree

build_support/catalog/update.py

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -16,20 +16,24 @@ def generate_rst_table(df: pd.DataFrame, rst_path: Path):
1616
with open(rst_path, "w", encoding="utf-8") as f:
1717
f.write(".. list-table::\n")
1818
f.write(" :header-rows: 1\n")
19-
f.write(" :widths: 15 45 30 10\n")
19+
f.write(" :widths: 35 45 20\n")
2020
f.write(" :class: tight-table\n")
2121
f.write("\n")
2222

2323
f.write(" * - **Game**\n")
2424
f.write(" - **Description**\n")
25-
f.write(" - **Visualization**\n")
2625
f.write(" - **Download**\n")
2726

2827
for _, row in df.iterrows():
2928
g = gbt.catalog.load(row["Game"])
3029
tikz = draw_tree(g, color_scheme="gambit")
3130

3231
f.write(f" * - {row['Game']}\n")
32+
f.write(" \n")
33+
f.write(f" .. tikz:: {row['Game']}\n")
34+
f.write(" \n")
35+
for line in tikz.splitlines():
36+
f.write(f" {line}\n")
3337

3438
description_cell_lines = []
3539
title = str(row.get("Title", "")).strip()
@@ -46,11 +50,6 @@ def generate_rst_table(df: pd.DataFrame, rst_path: Path):
4650
for line in description_cell_lines[1:]:
4751
f.write(f" {line}\n")
4852

49-
f.write(f" - .. tikz:: {row['Game']}\n")
50-
f.write(" \n")
51-
for line in tikz.splitlines():
52-
f.write(f" {line}\n")
53-
5453
f.write(f" - {row['Download']}\n")
5554

5655

0 commit comments

Comments
 (0)