Sphinx: add extention

This commit is contained in:
Robert Göhler 2019-12-22 19:33:07 +01:00
parent a8a16fbd09
commit 448e2cb806

View File

@ -12,9 +12,9 @@
# add these directories to sys.path here. If the directory is relative to the # add these directories to sys.path here. If the directory is relative to the
# documentation root, use os.path.abspath to make it absolute, like shown here. # documentation root, use os.path.abspath to make it absolute, like shown here.
# #
# import os import os
# import sys import sys
# sys.path.insert(0, os.path.abspath('.')) sys.path.append(os.path.abspath("./_ext"))
# -- Project information ----------------------------------------------------- # -- Project information -----------------------------------------------------
@ -41,7 +41,9 @@ release = u'1.3.x (equuleus)'
extensions = ['sphinx.ext.intersphinx', extensions = ['sphinx.ext.intersphinx',
'sphinx.ext.todo', 'sphinx.ext.todo',
'sphinx.ext.ifconfig', 'sphinx.ext.ifconfig',
'sphinx.ext.graphviz'] 'sphinx.ext.graphviz',
'vyos'
]
# Add any paths that contain templates here, relative to this directory. # Add any paths that contain templates here, relative to this directory.
templates_path = ['_templates'] templates_path = ['_templates']
@ -170,5 +172,6 @@ texinfo_documents = [
] ]
def setup(app): def setup(app):
app.add_object_type('opcmd', 'opcmd') pass
app.add_object_type('cfgcmd', 'cfgcmd') #app.add_object_type('opcmd', 'opcmd')
#app.add_object_type('cfgcmd', 'cfgcmd')