* Change doc build to reST exclusively * Rewrite Intro doc in reST; create toctree * Update parameter and contribute * Convert tutorials to reST * Convert Python tutorials to reST * Convert CLI and Julia docs to reST * Enable markdown for R vignettes * Done migrating to reST * Add guzzle_sphinx_theme to requirements * Add breathe to requirements * Fix search bar * Add link to user forum
17 lines
472 B
Python
17 lines
472 B
Python
# -*- coding: utf-8 -*-
|
|
"""Helper utilty function for customization."""
|
|
import sys
|
|
import os
|
|
import docutils
|
|
import subprocess
|
|
|
|
READTHEDOCS_BUILD = (os.environ.get('READTHEDOCS', None) is not None)
|
|
|
|
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.stderr.write('READTHEDOCS=%s\n' % (READTHEDOCS_BUILD))
|