summaryrefslogtreecommitdiff
path: root/docs/conf.py
diff options
context:
space:
mode:
authorChris McDonough <chrism@plope.com>2011-11-28 16:19:04 -0500
committerChris McDonough <chrism@plope.com>2011-11-28 16:19:04 -0500
commitdafb0b3271f525fb8552d155a4dd840ced1656c8 (patch)
tree786cccbf8f2287be8e2fa43afd33e503b5366739 /docs/conf.py
parent8786a5719950900ba7a8390323476076e737ac9e (diff)
parent14e5fa938b5354154f724101f444b1826b01aa3a (diff)
downloadpyramid-dafb0b3271f525fb8552d155a4dd840ced1656c8.tar.gz
pyramid-dafb0b3271f525fb8552d155a4dd840ced1656c8.tar.bz2
pyramid-dafb0b3271f525fb8552d155a4dd840ced1656c8.zip
merge master to feature.introspection
Diffstat (limited to 'docs/conf.py')
-rw-r--r--docs/conf.py29
1 files changed, 22 insertions, 7 deletions
diff --git a/docs/conf.py b/docs/conf.py
index 20236842b..530703e14 100644
--- a/docs/conf.py
+++ b/docs/conf.py
@@ -141,14 +141,29 @@ if book:
# -----------------------
# Add and use Pylons theme
+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'))
html_theme_path = ['_themes']
html_theme = 'pyramid'
-
-html_theme_options = {
- 'github_url': 'https://github.com/Pylons/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.
@@ -461,7 +476,7 @@ def resig(app, what, name, obj, options, signature, return_annotation):
# -- Options for Epub output ---------------------------------------------------
# Bibliographic Dublin Core info.
-epub_title = 'The Pyramid Web Application Development Framework, Version 1.2'
+epub_title = 'The Pyramid Web Application Development Framework, Version 1.3dev'
epub_author = 'Chris McDonough'
epub_publisher = 'Agendaless Consulting'
epub_copyright = '2008-2011'
@@ -478,7 +493,7 @@ epub_scheme = 'ISBN'
epub_identifier = '0615445675'
# A unique identification for the text.
-epub_uid = 'The Pyramid Web Application Development Framework, Version 1.2'
+epub_uid = 'The Pyramid Web Application Development Framework, Version 1.3dev'
# HTML files that should be inserted before the pages created by sphinx.
# The format is a list of tuples containing the path and title.