forked from pool/python-venusian
46 lines
1.4 KiB
Diff
46 lines
1.4 KiB
Diff
|
Index: b/docs/conf.py
|
||
|
===================================================================
|
||
|
--- a/docs/conf.py
|
||
|
+++ b/docs/conf.py
|
||
|
@@ -17,38 +17,10 @@ import os
|
||
|
import datetime
|
||
|
import pkg_resources
|
||
|
|
||
|
-# Add and use Pylons theme
|
||
|
-if 'sphinx-build' in ' '.join(sys.argv): # protect against dumb importers
|
||
|
- from subprocess import call, Popen, PIPE
|
||
|
+import pylons_sphinx_themes
|
||
|
|
||
|
- p = Popen('which git', shell=True, stdout=PIPE)
|
||
|
- git = p.stdout.read().strip()
|
||
|
- cwd = os.getcwd()
|
||
|
- _themes = os.path.join(cwd, '_themes')
|
||
|
-
|
||
|
- if not os.path.isdir(_themes):
|
||
|
- call([git, 'clone', 'git://github.com/Pylons/pylons_sphinx_theme.git',
|
||
|
- '_themes'])
|
||
|
- else:
|
||
|
- os.chdir(_themes)
|
||
|
- call([git, 'checkout', 'master'])
|
||
|
- call([git, 'pull'])
|
||
|
- os.chdir(cwd)
|
||
|
-
|
||
|
- sys.path.append(os.path.abspath('_themes'))
|
||
|
-
|
||
|
- parent = os.path.dirname(os.path.dirname(__file__))
|
||
|
- sys.path.append(os.path.abspath(parent))
|
||
|
- wd = os.getcwd()
|
||
|
- os.chdir(parent)
|
||
|
- sys.path.append(parent)
|
||
|
-
|
||
|
-# Options for HTML output
|
||
|
-# -----------------------
|
||
|
-
|
||
|
-sys.path.append(os.path.abspath('_themes'))
|
||
|
-html_theme_path = ['_themes']
|
||
|
html_theme = 'pylons'
|
||
|
+html_theme_path = pylons_sphinx_themes.get_html_themes_path()
|
||
|
html_theme_options = dict(github_url='https://github.com/Pylons/venusian')
|
||
|
|
||
|
# If your extensions are in another directory, add it here. If the
|