From dcf79c61c8fa89d04e99204227cd393802a9d667 Mon Sep 17 00:00:00 2001 From: haoliu-casia <64404175+haoliu-casia@users.noreply.github.com> Date: Mon, 27 Apr 2020 17:00:35 +0800 Subject: [PATCH] Update conf.py fix generating readthedocs error --- source/conf.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/conf.py b/source/conf.py index 48bfbfb..aa389e0 100644 --- a/source/conf.py +++ b/source/conf.py @@ -16,7 +16,7 @@ # 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.append(os.path.abspath('exts/toggle')) # -- General configuration ----------------------------------------------------- @@ -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.