forked from pool/python-pyramid
- Set license to SDPX style - Simplified macro usage OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pyramid?expand=0&rev=2
49 lines
1.6 KiB
Diff
49 lines
1.6 KiB
Diff
diff -ru a/docs/conf.py b/docs/conf.py
|
|
--- a/docs/conf.py 2012-01-20 16:52:28.000000000 +0100
|
|
+++ b/docs/conf.py 2012-02-01 10:40:34.727766925 +0100
|
|
@@ -127,43 +127,6 @@
|
|
# 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
|
|
-
|
|
- 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)
|
|
- os.system('%s setup.py test -q' % sys.executable)
|
|
- os.chdir(wd)
|
|
-
|
|
- for item in os.listdir(parent):
|
|
- if item.endswith('.egg'):
|
|
- sys.path.append(os.path.join(parent, item))
|
|
-
|
|
-html_theme_path = ['_themes']
|
|
-html_theme = 'pyramid'
|
|
-html_theme_options = dict(
|
|
- github_url='https://github.com/Pylons/pyramid',
|
|
-# in_progress='true'
|
|
- )
|
|
# The style sheet to use for HTML and HTML Help pages. A file of that name
|
|
# must exist either in Sphinx' static/ path, or in one of the custom paths
|
|
# given in html_static_path.
|
|
Only in b/docs: .conf.py.swp
|