diff options
author | Christian Poessinger <christian@poessinger.com> | 2020-01-04 14:54:38 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-01-04 14:54:38 +0100 |
commit | 8b52f2042487b0bac0be51509f2e1d23029041e3 (patch) | |
tree | 7a34340a607c4de7c7a343b3da1109d43a7af005 /docs/conf.py | |
parent | 57913db57a4172988eb02c8d75062d36cdb6aa81 (diff) | |
parent | 1d7328e3b701b12a4613c9dc91f4688220b577b2 (diff) | |
download | vyos-documentation-8b52f2042487b0bac0be51509f2e1d23029041e3.tar.gz vyos-documentation-8b52f2042487b0bac0be51509f2e1d23029041e3.zip |
Merge pull request #173 from rebortg/vyosextension
vyosextension
Diffstat (limited to 'docs/conf.py')
-rw-r--r-- | docs/conf.py | 21 |
1 files changed, 10 insertions, 11 deletions
diff --git a/docs/conf.py b/docs/conf.py index 539f828d..d82f292c 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")) from docutils import nodes, utils from docutils.parsers.rst.roles import set_classes @@ -43,7 +43,9 @@ release = u'1.3.x (equuleus)' extensions = ['sphinx.ext.intersphinx', 'sphinx.ext.todo', 'sphinx.ext.ifconfig', - 'sphinx.ext.graphviz'] + 'sphinx.ext.graphviz', + 'vyos' +] # Add any paths that contain templates here, relative to this directory. templates_path = ['_templates'] @@ -136,6 +138,9 @@ latex_elements = { # Latex figure (float) alignment # # 'figure_align': 'htbp', + 'preamble': r'''\def\changemargin#1#2{\list{}{\rightmargin#2\leftmargin#1}\item[]} +\let\endchangemargin=\endlist''', + } # Grouping the document tree into LaTeX files. List of tuples @@ -183,10 +188,4 @@ def vytask_role(name, rawtext, text, lineno, inliner, options={}, content=[]): def setup(app): - app.add_config_value( - 'vyos_phabricator_url', - 'https://phabricator.vyos.net/', '' - ) - app.add_role('vytask', vytask_role) - app.add_object_type('opcmd', 'opcmd') - app.add_object_type('cfgcmd', 'cfgcmd') + pass |