docs: Add 'confval' object type to Sphinx

This commit is contained in:
Stein Magnus Jodal 2013-04-08 23:36:37 +02:00
parent 423b7a326a
commit 5be8fa347f

View File

@ -266,3 +266,12 @@ latex_documents = [
needs_sphinx = '1.0'
extlinks = {'issue': ('https://github.com/mopidy/mopidy/issues/%s', '#')}
def setup(app):
from sphinx.ext.autodoc import cut_lines
app.connect(b'autodoc-process-docstring', cut_lines(4, what=['module']))
app.add_object_type(
b'confval', 'confval',
objname='configuration value',
indextemplate='pair: %s; configuration value')