This commit is contained in:
tqchen 2015-07-27 17:59:22 -07:00
parent c1cdc194e9
commit dd011849b7

View File

@ -157,8 +157,8 @@ def generate_doxygen_xml(app):
def setup_path(app):
read_the_docs_build = os.environ.get('READTHEDOCS', None) == 'True'
if read_the_docs_build:
subprocess.call("cd ..; git clone https://github.com/tqchen/recommonmark recommonmark-tqchen", shell=True)
sys.path.insert(0, os.path.abspath('../recommonmark-tqchen'))
subprocess.call("cd ..; rm -rf recommonmark; git clone https://github.com/tqchen/recommonmark", shell=True)
sys.path.insert(0, os.path.abspath('../recommonmark'))
def setup(app):
# Add hook for building doxygen xml when needed