From a6055238986bc7afcac8be4c7d284ef30a26d43e Mon Sep 17 00:00:00 2001 From: haoliu-casia <64404175+haoliu-casia@users.noreply.github.com> Date: Mon, 27 Apr 2020 16:51:13 +0800 Subject: [PATCH] update conf.py fix readthedocs generate error --- source/conf.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/source/conf.py b/source/conf.py index 48bfbfb..cc694f9 100644 --- a/source/conf.py +++ b/source/conf.py @@ -16,8 +16,8 @@ # If extensions (or modules to document with autodoc) are in another directory, # 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. -sys.path.insert(0, os.path.abspath('exts')) - +#sys.path.insert(0, os.path.abspath('exts')) +sys.path.append(os.path.abspath('exts/toggle')) # -- General configuration ----------------------------------------------------- # If your documentation needs a minimal Sphinx version, state it here. @@ -25,7 +25,7 @@ # Add any Sphinx extension module names here, as strings. They can be extensions # coming with Sphinx (named 'sphinx.ext.*') or your custom ones. -extensions = ['sphinx.ext.todo', 'sphinx.ext.mathjax', 'sphinx.ext.ifconfig', 'toggle'] +extensions = ['sphinx.ext.todo', 'sphinx.ext.mathjax', 'sphinx.ext.ifconfig', 'ToggleDirective'] todo_include_todos=True # Add any paths that contain templates here, relative to this directory.