From b525702a2741e67d701438448b940aa27ee60780 Mon Sep 17 00:00:00 2001 From: genedan Date: Sun, 2 Aug 2020 20:45:56 -0500 Subject: [PATCH] tweak sphinx configuration --- docs/conf.py | 19 ++++++++----------- 1 file changed, 8 insertions(+), 11 deletions(-) diff --git a/docs/conf.py b/docs/conf.py index fade3c5..7c9358c 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -10,10 +10,10 @@ # 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 +from os.path import relpath, dirname +import sys +sys.path.insert(0, os.path.abspath('..')) # -- Project information ----------------------------------------------------- @@ -29,14 +29,7 @@ # ones. import sphinx_rtd_theme -import os -from os.path import relpath, dirname -import sys import inspect - - -sys.path.insert(0, os.path.abspath('..')) -print(sys.path) import tmval extensions = [ @@ -140,3 +133,7 @@ def linkcode_resolve(domain, info): imgmath_latex_preamble = r''' \usepackage{actuarialsymbol} ''' + +latex_elements = { + 'preamble': '\\usepackage{actuarialsymbol}' +}