1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-09 12:50:35 +00:00

Merge pull request #36960 from pycbouh/docs-improve-shortcuts

Improve shortcut formatting in docs
This commit is contained in:
Rémi Verschelde
2020-04-29 09:40:52 +02:00
committed by GitHub
13 changed files with 63 additions and 40 deletions

View File

@@ -901,6 +901,12 @@ def rstize_text(text, state): # type: (str, State) -> str
tag_text = "``"
tag_depth += 1
inside_code = True
elif cmd == "kbd":
tag_text = ":kbd:`"
tag_depth += 1
elif cmd == "/kbd":
tag_text = "`"
tag_depth -= 1
elif cmd.startswith("enum "):
tag_text = make_enum(cmd[5:], state)
escape_post = True