summaryrefslogtreecommitdiff
path: root/docs/conf.py
diff options
context:
space:
mode:
authorChris McDonough <chrism@plope.com>2015-04-24 06:52:55 -0400
committerChris McDonough <chrism@plope.com>2015-04-24 06:52:55 -0400
commitd2c49d66399e8caa0509822cab189c04d3f7ec35 (patch)
treef8f5663ca51ac47fb35732364b96990cd9cd42b4 /docs/conf.py
parentbedd5f21f6f2c7660824cf901c24a31cad8f737d (diff)
parent43857c97c5c5cf437b31be013c6540ffc536d803 (diff)
downloadpyramid-d2c49d66399e8caa0509822cab189c04d3f7ec35.tar.gz
pyramid-d2c49d66399e8caa0509822cab189c04d3f7ec35.tar.bz2
pyramid-d2c49d66399e8caa0509822cab189c04d3f7ec35.zip
Merge branch 'master' of github.com:Pylons/pyramid
Diffstat (limited to 'docs/conf.py')
-rw-r--r--docs/conf.py22
1 files changed, 2 insertions, 20 deletions
diff --git a/docs/conf.py b/docs/conf.py
index fa4578275..11e42c5f3 100644
--- a/docs/conf.py
+++ b/docs/conf.py
@@ -20,6 +20,7 @@ import warnings
warnings.simplefilter('ignore', DeprecationWarning)
import pkg_resources
+import pylons_sphinx_themes
# skip raw nodes
from sphinx.writers.text import TextTranslator
@@ -136,27 +137,8 @@ if book:
# Options for HTML output
# -----------------------
-# Add and use Pylons theme
-if 'sphinx-build' in ' '.join(sys.argv): # protect against dumb importers
- from subprocess import call, Popen, PIPE
- cwd = os.getcwd()
- p = Popen('which git', shell=True, stdout=PIPE)
- here = os.path.abspath(os.path.dirname(__file__))
- parent = os.path.abspath(os.path.dirname(here))
- _themes = os.path.join(here, '_themes')
- git = p.stdout.read().strip()
- try:
- os.chdir(parent)
- if not os.listdir(_themes):
- call([git, 'submodule', '--init'])
- else:
- call([git, 'submodule', 'update'])
- sys.path.append(_themes)
- finally:
- os.chdir(cwd)
-
-html_theme_path = ['_themes']
html_theme = 'pyramid'
+html_theme_path = pylons_sphinx_themes.get_html_themes_path()
html_theme_options = dict(
github_url='https://github.com/Pylons/pyramid',
in_progress='true',