Bug 777068 - Move simplejson to python/; r=glandium
This commit is contained in:
17
python/simplejson-2.1.1/scripts/make_docs.py
Normal file
17
python/simplejson-2.1.1/scripts/make_docs.py
Normal file
@@ -0,0 +1,17 @@
|
||||
#!/usr/bin/env python
|
||||
import os
|
||||
import subprocess
|
||||
import shutil
|
||||
|
||||
SPHINX_BUILD = 'sphinx-build'
|
||||
|
||||
DOCTREES_DIR = 'build/doctrees'
|
||||
HTML_DIR = 'docs'
|
||||
for dirname in DOCTREES_DIR, HTML_DIR:
|
||||
if not os.path.exists(dirname):
|
||||
os.makedirs(dirname)
|
||||
|
||||
res = subprocess.call([
|
||||
SPHINX_BUILD, '-d', DOCTREES_DIR, '-b', 'html', '.', 'docs',
|
||||
])
|
||||
raise SystemExit(res)
|
||||
Reference in New Issue
Block a user