This commit is contained in:
tqchen 2015-07-27 18:38:22 -07:00
parent 8f4839d1d9
commit 32e19558e6

View File

@ -155,10 +155,10 @@ source_parsers = {
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-customized", shell=True)
sys.path.insert(0, os.path.abspath('../recommonmark-customized'))
reload(recommonmark)
from recommonmark import parser
subprocess.call('cd ..; git clone https://github.com/tqchen/recommonmark recommonmark-customized;' +
'mv recomonmark-customized/recommonmark recom', shell=True)
sys.path.insert(0, os.path.abspath('..'))
from recom import parser
global source_parsers
source_parsers['.md'] = parser.CommonMarkParser