]> git.notmuchmail.org Git - notmuch/blobdiff - doc/conf.py
doc: define and use semantic markup for configuration items
[notmuch] / doc / conf.py
index e46e1d4e47faa089c45553f747a6f95003dba9a4..6afeac06e53d4da8d6123ecb7c3b1ac55d2ff891 100644 (file)
@@ -200,3 +200,10 @@ texinfo_documents += [
         x[2],                          # description
         'Miscellaneous'                        # category
     ) for x in man_pages]
+
+def setup(app):
+    import docutils.nodes
+    # define nmconfig role and directive for config items.
+    app.add_object_type('nmconfig','nmconfig',
+                        indextemplate='pair: configuration item; %s',
+                        ref_nodeclass=docutils.nodes.generated)