Fix missing heading in translated online class reference
This commit is contained in:
parent
2f73a059ce
commit
9c83d3db5b
|
@ -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")
|
f.write(".. _doc_class_reference:\n\n")
|
||||||
|
|
||||||
main_title = translate("All classes")
|
f.write(make_heading("All classes", "="))
|
||||||
f.write(f"{main_title}\n")
|
|
||||||
f.write(f"{'=' * len(main_title)}\n\n")
|
|
||||||
|
|
||||||
for group_name in CLASS_GROUPS:
|
for group_name in CLASS_GROUPS:
|
||||||
if group_name in grouped_classes:
|
if group_name in grouped_classes:
|
||||||
group_title = translate(CLASS_GROUPS[group_name])
|
f.write(make_heading(CLASS_GROUPS[group_name], "="))
|
||||||
|
|
||||||
f.write(f"{group_title}\n")
|
|
||||||
f.write(f"{'=' * len(group_title)}\n\n")
|
|
||||||
|
|
||||||
f.write(".. toctree::\n")
|
f.write(".. toctree::\n")
|
||||||
f.write(" :maxdepth: 1\n")
|
f.write(" :maxdepth: 1\n")
|
||||||
|
|
Loading…
Reference in New Issue