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 39 40 41 42 43 44 45 46 47 48 49
|
From 6151b858384f82248920ec8df0982a8ae1132f23 Mon Sep 17 00:00:00 2001
From: Jan Dittberner <jandd@debian.org>
Date: Thu, 8 Oct 2015 09:25:42 -0700
Subject: disable Sphinx extensions not available in Debian or requiring remote
access
Patch-Name: disable-unsupported-sphinx-extension.patch
---
docs/source/conf.py | 19 +------------------
1 file changed, 1 insertion(+), 18 deletions(-)
diff --git a/docs/source/conf.py b/docs/source/conf.py
index 8be2120..ea9c64b 100644
--- a/docs/source/conf.py
+++ b/docs/source/conf.py
@@ -19,24 +19,11 @@ import sys, os
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 @@ latex_documents = [
# 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}
|