diff options
| author | Blaise Laflamme <blaise@laflamme.org> | 2012-05-06 19:56:21 -0400 |
|---|---|---|
| committer | Blaise Laflamme <blaise@laflamme.org> | 2012-05-06 19:56:21 -0400 |
| commit | eba3b0763cf4fa3aa4b099adb2e10c53c6d99e74 (patch) | |
| tree | ff653da5484455762cffb3c5c9897c69de2dfbd5 /docs/conf.py | |
| parent | 1252ab764fda606003aa23a0e3bfa89ba948e3f1 (diff) | |
| download | pyramid-eba3b0763cf4fa3aa4b099adb2e10c53c6d99e74.tar.gz pyramid-eba3b0763cf4fa3aa4b099adb2e10c53c6d99e74.tar.bz2 pyramid-eba3b0763cf4fa3aa4b099adb2e10c53c6d99e74.zip | |
added sphinx theme as submodule, added rtd hack to update theme
Diffstat (limited to 'docs/conf.py')
| -rw-r--r-- | docs/conf.py | 15 |
1 files changed, 6 insertions, 9 deletions
diff --git a/docs/conf.py b/docs/conf.py index db972261d..fc3d184ed 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -132,18 +132,15 @@ 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']) + p = Popen('which git', shell=True, stdout=PIPE) + git = p.stdout.read().strip() + if not os.listdir(_themes): + call([git, 'submodule', '--init']) else: - os.chdir(_themes) - call([git, 'checkout', 'master']) - call([git, 'pull']) - os.chdir(cwd) + call([git, 'submodule', 'update']) sys.path.append(os.path.abspath('_themes')) |
