X-Git-Url: https://git.cworth.org/git?a=blobdiff_plain;f=doc%2Fconf.py;h=6afeac06e53d4da8d6123ecb7c3b1ac55d2ff891;hb=bd243b65a9709bfd61ba80e80cc41ae3a23ea524;hp=c7fd8f5acec84807e2738dfae00a0d3c709e8393;hpb=48b5263646bae2ce40e3ec17e0cfae26a7abc91f;p=notmuch diff --git a/doc/conf.py b/doc/conf.py index c7fd8f5a..6afeac06 100644 --- a/doc/conf.py +++ b/doc/conf.py @@ -14,7 +14,7 @@ master_doc = 'index' # General information about the project. project = u'notmuch' -copyright = u'2009-2021, Carl Worth and many others' +copyright = u'2009-2022, Carl Worth and many others' location = os.path.dirname(__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)