summaryrefslogtreecommitdiffstats
path: root/doc/tools/make_rst.py
diff options
context:
space:
mode:
authorRémi Verschelde <rverschelde@gmail.com>2024-03-06 09:49:53 +0100
committerRémi Verschelde <rverschelde@gmail.com>2024-03-06 09:49:53 +0100
commit0acc4276b6825d872648fddfbd74c00c63d36741 (patch)
treefe2d3b4be44638e2d455d84ab974891cb107fda1 /doc/tools/make_rst.py
parent1b2e0b32d727ceab387afcabba422f994038e439 (diff)
parent882441a0ad00fed66bf5d0859e36e7f369d9d509 (diff)
downloadredot-engine-0acc4276b6825d872648fddfbd74c00c63d36741.tar.gz
Merge pull request #82952 from AbelToy/gds-export-array
Allow `@export`ed Arrays to set property hints for their elements
Diffstat (limited to 'doc/tools/make_rst.py')
-rwxr-xr-xdoc/tools/make_rst.py8
1 files changed, 7 insertions, 1 deletions
diff --git a/doc/tools/make_rst.py b/doc/tools/make_rst.py
index 4e735039f7..f711038fdf 100755
--- a/doc/tools/make_rst.py
+++ b/doc/tools/make_rst.py
@@ -1737,7 +1737,7 @@ def make_rst_index(grouped_classes: Dict[str, List[str]], dry_run: bool, output_
# Formatting helpers.
-RESERVED_FORMATTING_TAGS = ["i", "b", "u", "code", "kbd", "center", "url", "br"]
+RESERVED_FORMATTING_TAGS = ["i", "b", "u", "lb", "rb", "code", "kbd", "center", "url", "br"]
RESERVED_LAYOUT_TAGS = ["codeblocks"]
RESERVED_CODEBLOCK_TAGS = ["codeblock", "gdscript", "csharp"]
RESERVED_CROSSLINK_TAGS = [
@@ -2311,6 +2311,12 @@ def format_text_block(
escape_pre = True
tag_text = ""
+ elif tag_state.name == "lb":
+ tag_text = "\\["
+
+ elif tag_state.name == "rb":
+ tag_text = "\\]"
+
elif tag_state.name == "kbd":
tag_text = "`"
if tag_state.closing: