mirror of
https://github.com/godotengine/godot-docs.git
synced 2026-01-04 14:11:02 +03:00
Merge pull request #10251 from tetrapod00/custom-role
Add custom Sphinx roles for editor UI
This commit is contained in:
17
conf.py
17
conf.py
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user