summaryrefslogtreecommitdiffstats
path: root/scripts/dox_to_sphinx.py
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2021-03-23 12:42:43 -0400
committerDavid Robillard <d@drobilla.net>2021-03-23 12:42:43 -0400
commit91945867cfee9e92df50149311d98eda41b16a60 (patch)
tree5e7d89d9762f7272cc910b8a94fbcf74bf81332e /scripts/dox_to_sphinx.py
parentea02e3d48e3ff4ce6bea8de559efbec64da9b161 (diff)
downloadsratom-91945867cfee9e92df50149311d98eda41b16a60.tar.gz
sratom-91945867cfee9e92df50149311d98eda41b16a60.tar.bz2
sratom-91945867cfee9e92df50149311d98eda41b16a60.zip
WIP
Diffstat (limited to 'scripts/dox_to_sphinx.py')
-rwxr-xr-xscripts/dox_to_sphinx.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/scripts/dox_to_sphinx.py b/scripts/dox_to_sphinx.py
index c9d401c..f0dcd2c 100755
--- a/scripts/dox_to_sphinx.py
+++ b/scripts/dox_to_sphinx.py
@@ -322,6 +322,9 @@ def dox_to_rst(index, lang, node):
if node.tag == "ulink":
return "`%s <%s>`_" % (node.text, node.get("url"))
+ if node.tag == "verbatim":
+ return "::\n\n" + indent(plain_text(node), 1)
+
raise RuntimeError("Unknown documentation command: %s" % node.tag)