Commit 22dcd6e1 authored by Chris McDonough's avatar Chris McDonough

apparently _themes is a submodule

parent 92c83408
...@@ -19,17 +19,6 @@ ...@@ -19,17 +19,6 @@
import sys, os import sys, os
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))
# General configuration # General configuration
# --------------------- # ---------------------
...@@ -93,31 +82,23 @@ today_fmt = '%B %d, %Y' ...@@ -93,31 +82,23 @@ today_fmt = '%B %d, %Y'
pygments_style = 'sphinx' pygments_style = 'sphinx'
# Add and use Pylons theme # Add and use Pylons theme
if 'sphinx-build' in ' '.join(sys.argv): # protect against dumb importers if 'sphinx-build' in ' '.join(sys.argv): # protect against dumb importers
from subprocess import call, Popen, PIPE from subprocess import call, Popen, PIPE
p = Popen('which git', shell=True, stdout=PIPE) p = Popen('which git', shell=True, stdout=PIPE)
git = p.stdout.read().strip() wd = os.getcwd()
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__)) parent = os.path.dirname(os.path.dirname(__file__))
sys.path.append(os.path.abspath(parent)) sys.path.append(os.path.abspath(parent))
wd = os.getcwd() sys.path.append(os.path.abspath('_themes'))
os.chdir(parent) os.chdir(parent)
sys.path.append(parent) git = p.stdout.read().strip()
call([git, 'submodule', 'update', '--init', 'docs/_themes'])
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))
# Options for HTML output # Options for HTML output
# ----------------------- # -----------------------
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment