From c5f06930d89bb37718235b9669360d1287bb16d8 Mon Sep 17 00:00:00 2001 From: rebortg Date: Tue, 30 Jun 2020 21:49:03 +0200 Subject: Sphinx: backport cfgcmd and opcmd directives to crux --- docs/conf.py | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) (limited to 'docs/conf.py') diff --git a/docs/conf.py b/docs/conf.py index d8f35063..e2a059f2 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -12,9 +12,9 @@ # 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. # -# import os -# import sys -# sys.path.insert(0, os.path.abspath('.')) +import os +import sys +sys.path.append(os.path.abspath("./_ext")) # -- Project information ----------------------------------------------------- @@ -40,7 +40,9 @@ release = u'1.2.x (crux)' # ones. extensions = ['sphinx.ext.intersphinx', 'sphinx.ext.todo', - 'sphinx.ext.ifconfig'] + 'sphinx.ext.ifconfig', + 'vyos' + ] # Add any paths that contain templates here, relative to this directory. templates_path = ['_templates'] @@ -169,5 +171,4 @@ texinfo_documents = [ ] def setup(app): - app.add_object_type('opcmd', 'opcmd') - app.add_object_type('cfcmd', 'cfcmd') + pass -- cgit v1.2.3