Browse Source

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

Jan Holthuis 5 năm trước cách đây
mục cha
commit
d7e72669d5
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  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