Skip to content

Commit

Permalink
Improve how Project & Editor Settings look in online docs
Browse files Browse the repository at this point in the history
  • Loading branch information
Mickeon committed Nov 20, 2024
1 parent 9e60984 commit e4e07a4
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions doc/tools/make_rst.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit e4e07a4

Please sign in to comment.