aboutsummaryrefslogtreecommitdiff
path: root/doc/conf.py
diff options
context:
space:
mode:
authorDavid Bremner <david@tethera.net>2022-07-01 07:40:39 -0300
committerDavid Bremner <david@tethera.net>2022-07-15 12:37:24 -0400
commit9b4aa9a3e6de1101f3c9443a4b5aabe404d8072e (patch)
treec850998db0223a31300de6057f8dcba1809b087f /doc/conf.py
parentc527358794977aa9b891b765fdb07d88d0d42f10 (diff)
doc/emacs: define and use emacsvar and emacscmd markup
This makes it easier to navigate the merged index of all of the notmuch documentation.
Diffstat (limited to 'doc/conf.py')
-rw-r--r--doc/conf.py9
1 files changed, 9 insertions, 0 deletions
diff --git a/doc/conf.py b/doc/conf.py
index 8cb65060..11896b50 100644
--- a/doc/conf.py
+++ b/doc/conf.py
@@ -222,3 +222,12 @@ def setup(app):
indextemplate='pair: configuration item; %s',
ref_nodeclass=docutils.nodes.generated,
objname='config item' )
+ app.add_object_type('emacsvar','emacsvar',
+ indextemplate='pair: Emacs variable; %s',
+ ref_nodeclass=docutils.nodes.generated,
+ objname='Emacs variable')
+ app.add_object_type('emacscmd','emacscmd',
+ indextemplate='pair: Emacs command; %s',
+ ref_nodeclass=docutils.nodes.generated,
+ objname='Emacs command')
+