diff options
| author | Chris McDonough <chrism@plope.com> | 2011-11-27 00:01:02 -0500 |
|---|---|---|
| committer | Chris McDonough <chrism@plope.com> | 2011-11-27 00:01:02 -0500 |
| commit | fc7f0262a0a54e8eef75b371e2504b1f979761ea (patch) | |
| tree | 983f5af00301a9bfb15e7ee7cc19ae4719c2ec72 /docs | |
| parent | 38e4c7d6b0a51a92747e6c928599a7d651362c6c (diff) | |
| parent | 9396b476bab8a2fb885c65791b2150d74ceac122 (diff) | |
| download | pyramid-fc7f0262a0a54e8eef75b371e2504b1f979761ea.tar.gz pyramid-fc7f0262a0a54e8eef75b371e2504b1f979761ea.tar.bz2 pyramid-fc7f0262a0a54e8eef75b371e2504b1f979761ea.zip | |
Merge branch 'master' of github.com:Pylons/pyramid
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/conf.py | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/docs/conf.py b/docs/conf.py index 20236842b..4a39f5d64 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -38,6 +38,7 @@ 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 @@ -47,6 +48,11 @@ 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): @@ -146,7 +152,8 @@ html_theme_path = ['_themes'] html_theme = 'pyramid' html_theme_options = { - 'github_url': 'https://github.com/Pylons/pyramid' + '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 |
