summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHaoyu Qiu <timothyqiu32@gmail.com>2023-12-07 11:35:06 +0800
committerHaoyu Qiu <timothyqiu32@gmail.com>2023-12-07 11:35:06 +0800
commit9c83d3db5b02d0c554e9a0a958b6c52ea0d6dc05 (patch)
tree9eded9c1b6d20b1e6497f9ecb80ce32d77f9140c
parent2f73a059cefadcd944b6874f2557ec82e46a562d (diff)
downloadredot-engine-9c83d3db5b02d0c554e9a0a958b6c52ea0d6dc05.tar.gz
Fix missing heading in translated online class reference
-rwxr-xr-xdoc/tools/make_rst.py9
1 files changed, 2 insertions, 7 deletions
diff --git a/doc/tools/make_rst.py b/doc/tools/make_rst.py
index 89308b1ee1..c3a21f3d7b 100755
--- a/doc/tools/make_rst.py
+++ b/doc/tools/make_rst.py
@@ -1552,16 +1552,11 @@ def make_rst_index(grouped_classes: Dict[str, List[str]], dry_run: bool, output_
f.write(".. _doc_class_reference:\n\n")
- main_title = translate("All classes")
- f.write(f"{main_title}\n")
- f.write(f"{'=' * len(main_title)}\n\n")
+ f.write(make_heading("All classes", "="))
for group_name in CLASS_GROUPS:
if group_name in grouped_classes:
- group_title = translate(CLASS_GROUPS[group_name])
-
- f.write(f"{group_title}\n")
- f.write(f"{'=' * len(group_title)}\n\n")
+ f.write(make_heading(CLASS_GROUPS[group_name], "="))
f.write(".. toctree::\n")
f.write(" :maxdepth: 1\n")