summaryrefslogtreecommitdiff
path: root/docs/conf.py
diff options
context:
space:
mode:
authorChris McDonough <chrism@plope.com>2011-11-28 12:34:01 -0500
committerChris McDonough <chrism@plope.com>2011-11-28 12:34:01 -0500
commit69d09d906230c9f22699075c1ea07970b21e8ab4 (patch)
treed9f1f65280b75503cad0c5f58809e38aa0864b44 /docs/conf.py
parent0c1c39b02f1e0348d8e317972601e2db514db103 (diff)
parentfd685bae73933434b4c4fd0689898407fd4f9058 (diff)
downloadpyramid-69d09d906230c9f22699075c1ea07970b21e8ab4.tar.gz
pyramid-69d09d906230c9f22699075c1ea07970b21e8ab4.tar.bz2
pyramid-69d09d906230c9f22699075c1ea07970b21e8ab4.zip
resolve conflict
Diffstat (limited to 'docs/conf.py')
-rw-r--r--docs/conf.py36
1 files changed, 22 insertions, 14 deletions
diff --git a/docs/conf.py b/docs/conf.py
index 4a39f5d64..530703e14 100644
--- a/docs/conf.py
+++ b/docs/conf.py
@@ -38,7 +38,6 @@ LaTeXTranslator.visit_inline = nothing
LaTeXTranslator.depart_inline = nothing
book = os.environ.get('BOOK')
-rtd = os.environ.get('READTHEDOCS', None) == 'True'
# If your extensions are in another directory, add it here. If the directory
# is relative to the documentation root, use os.path.abspath to make it
@@ -48,11 +47,6 @@ sys.path.append(os.path.abspath(parent))
wd = os.getcwd()
os.chdir(parent)
os.system('%s setup.py test -q' % sys.executable)
-if rtd:
- from subprocess import Popen, PIPE
- p = Popen('which git', shell=True, stdout=PIPE)
- git = p.stdout.read().strip()
- os.system('{0} submodule update --init; {0} submodule foreach git pull origin master;'.format(git))
os.chdir(wd)
for item in os.listdir(parent):
@@ -147,15 +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',
- 'in_progress': True
-}
-
+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.
@@ -468,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'
@@ -485,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.