Browse Source

sphinx: Fetch conf.py from confdir instead of srcdir in sphinx extension

Jan Holthuis 4 years ago
parent
commit
d7e72669d5
1 changed files with 1 additions and 1 deletions
  1. 1 1
      sphinx_multiversion/sphinx.py

+ 1 - 1
sphinx_multiversion/sphinx.py

@@ -171,7 +171,7 @@ def config_inited(app, config):
     app.connect("html-page-context", html_page_context)
 
     # Restore config values
-    old_config = sphinx_config.Config.read(app.srcdir)
+    old_config = sphinx_config.Config.read(app.confdir)
     old_config.pre_init_values()
     old_config.init_values()
     config.version = old_config.version