summaryrefslogtreecommitdiff
path: root/docs/conf.py
diff options
context:
space:
mode:
authorRobert Göhler <github@ghlr.de>2020-01-04 12:54:56 +0100
committerRobert Göhler <github@ghlr.de>2020-01-04 12:54:56 +0100
commita4fbdcf4b01c8a1806576bcd62a6f166b5645dc6 (patch)
treefae4ca09d51149d4333852aa1d8edca040ab6b3f /docs/conf.py
parent57913db57a4172988eb02c8d75062d36cdb6aa81 (diff)
parentd2159df64738df01474b248f572c23b735d9ed0e (diff)
downloadvyos-documentation-a4fbdcf4b01c8a1806576bcd62a6f166b5645dc6.tar.gz
vyos-documentation-a4fbdcf4b01c8a1806576bcd62a6f166b5645dc6.zip
Merge branch 'newdirectives'
Diffstat (limited to 'docs/conf.py')
-rw-r--r--docs/conf.py23
1 files changed, 12 insertions, 11 deletions
diff --git a/docs/conf.py b/docs/conf.py
index 539f828d..4c8989ef 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,6 @@ 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
+ #app.add_object_type('opcmd', 'opcmd')
+ #app.add_object_type('cfgcmd', 'cfgcmd')