[DOC] Update R doc

This commit is contained in:
tqchen
2016-01-16 11:46:23 -08:00
parent e7d8ed71d6
commit 8e7f2679d5
16 changed files with 1402 additions and 156 deletions

View File

@@ -5,11 +5,24 @@ import os
import docutils
import subprocess
if os.environ.get('READTHEDOCS', None) == 'True':
READTHEDOCS_BUILD = (os.environ.get('READTHEDOCS', None) is not None)
if not os.path.exists('../recommonmark'):
subprocess.call('cd ..; rm -rf recommonmark;' +
'git clone https://github.com/tqchen/recommonmark', shell=True)
'git clone https://github.com/tqchen/recommonmark', shell = True)
else:
subprocess.call('cd ../recommonmark/; git pull', shell=True)
if not os.path.exists('web-data'):
subprocess.call('rm -rf web-data;' +
'git clone https://github.com/dmlc/web-data', shell = True)
else:
subprocess.call('cd web-data; git pull', shell=True)
sys.path.insert(0, os.path.abspath('../recommonmark/'))
sys.stderr.write('READTHEDOCS=%s\n' % (READTHEDOCS_BUILD))
from recommonmark import parser, transform