Improve how Project & Editor Settings look in online docs

This commit is contained in:
Micky 2024-11-20 17:31:24 +01:00
parent 9e6098432a
commit e4e07a433b

View File

@ -2263,6 +2263,13 @@ def format_text_block(
repl_text = target_name
if target_class_name != state.current_class:
repl_text = f"{target_class_name}.{target_name}"
if target_class_name == "ProjectSettings" or target_class_name == "EditorSettings":
repl_text = "(Editor)" if target_class_name == "EditorSettings" else ""
for section in target_name.split("/"):
repl_text += section.title() + " > "
return repl_text
tag_text = f":ref:`{repl_text}<class_{target_class_name}{ref_type}_{target_name}>`"
escape_pre = True
escape_post = True