Răsfoiți Sursa

doc: Fix `make_rst.py` hyperlinks for theme items

Fixup to #55092.
Rémi Verschelde 3 ani în urmă
părinte
comite
1a9e3d581b
1 a modificat fișierele cu 1 adăugiri și 1 ștergeri
  1. 1 1
      doc/tools/make_rst.py

+ 1 - 1
doc/tools/make_rst.py

@@ -947,7 +947,7 @@ def rstize_text(text, state):  # type: (str, State) -> str
                             print_error(
                                 "Unresolved theme item '{}', file: {}".format(param, state.current_class), state
                             )
-                        ref_type = "_theme_item"
+                        ref_type = "_theme_{}".format(class_def.theme_items[method_param].data_name)
 
                     elif cmd.startswith("signal"):
                         if method_param not in class_def.signals: