summaryrefslogtreecommitdiff
path: root/doc/tools
diff options
context:
space:
mode:
authorYuri Sizov <yuris@humnom.net>2020-03-10 13:41:36 +0300
committerYuri Sizov <yuris@humnom.net>2020-04-10 18:42:11 +0300
commit1ea7295bd21748ac34755cdb96fcba385a206240 (patch)
treef1d3b63c8f117115b57ecfab53bddf76caad2c16 /doc/tools
parent35c8ec065c00666c68d68964c2753a99ffa20b38 (diff)
Improve shortcut formatting in docs
Diffstat (limited to 'doc/tools')
-rwxr-xr-xdoc/tools/makerst.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/doc/tools/makerst.py b/doc/tools/makerst.py
index c6c6cae6c0..629a041a68 100755
--- a/doc/tools/makerst.py
+++ b/doc/tools/makerst.py
@@ -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