1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38
|
Author: Jan Dittberner <jandd@debian.org>
Subject: disable Sphinx extensions not available in Debian or requiring remote access
--- a/docs/source/conf.py
+++ b/docs/source/conf.py
@@ -19,24 +19,11 @@
sys.path.insert(0, os.path.abspath(os.path.join('..', '..')))
import jsonpickle
-sys.path.insert(1, os.path.abspath(os.path.join('..', '..', 'thirdparty', 'sphinx-to-github')))
-try:
- import sphinxtogithub
- sphinxtogithub # import side-effects
-except ImportError, e:
- raise ImportError('Could not import sphinxtogithub\n'
- 'Is the git submodule populated at thirdparty/sphinx-to-github?\n'
- 'At the project root run:\n'
- '\tgit submodule init\n'
- '\tgit submodule update')
-
# -- General configuration -----------------------------------------------------
# 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.autodoc', 'sphinx.ext.doctest', 'sphinx.ext.intersphinx', 'sphinx.ext.todo', 'sphinx.ext.coverage', 'sphinxtogithub']
-
-sphinx_to_github = True
+extensions = ['sphinx.ext.autodoc', 'sphinx.ext.doctest', 'sphinx.ext.todo', 'sphinx.ext.coverage']
# Add any paths that contain templates here, relative to this directory.
templates_path = ['_templates']
@@ -206,7 +193,3 @@
# If false, no module index is generated.
#latex_use_modindex = True
-
-
-# Example configuration for intersphinx: refer to the Python standard library.
-intersphinx_mapping = {'http://docs.python.org/': None}
|