From 448e2cb8060845fe1d6e28e74434475a375bd8ea Mon Sep 17 00:00:00 2001 From: Robert Göhler Date: Sun, 22 Dec 2019 19:33:07 +0100 Subject: Sphinx: add extention --- docs/conf.py | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) (limited to 'docs/conf.py') diff --git a/docs/conf.py b/docs/conf.py index 76293898..400235e9 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 ----------------------------------------------------- @@ -41,7 +41,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'] @@ -170,5 +172,6 @@ texinfo_documents = [ ] def setup(app): - 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') -- cgit v1.2.3 From fa0a2ec10cea60b438b67b8b7a7143cdcbb082b8 Mon Sep 17 00:00:00 2001 From: Robert Göhler Date: Sat, 4 Jan 2020 12:42:18 +0100 Subject: latex: add preamble for directive block --- docs/conf.py | 3 +++ 1 file changed, 3 insertions(+) (limited to 'docs/conf.py') diff --git a/docs/conf.py b/docs/conf.py index 400235e9..b5e67368 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -136,6 +136,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 -- cgit v1.2.3