You've already forked godot
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user