Merge pull request #10251 from tetrapod00/custom-role

Add custom Sphinx roles for editor UI
This commit is contained in:
Matthew
2025-07-15 06:51:03 -04:00
committed by GitHub
4 changed files with 162 additions and 24 deletions

17
conf.py
View File

@@ -231,6 +231,23 @@ linkcheck_anchors = False
linkcheck_timeout = 10
# -- Custom Sphinx roles for UI -------------------------------------------
rst_prolog = """
.. role:: button
:class: role-button role-ui
.. role:: menu
:class: role-menu role-ui
.. role:: inspector
:class: role-ui
.. role:: ui
:class: role-ui
"""
# -- I18n settings --------------------------------------------------------
# Godot localization is handled via https://github.com/godotengine/godot-docs-l10n