Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(249)

Unified Diff: third_party/simplejson/scripts/make_docs.py

Issue 159607: Extension docs build script, gyp target and PRESUBMIT.PY check (Closed)
Patch Set: remove build step on mac Created 11 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « third_party/simplejson/index.rst ('k') | third_party/simplejson/setup.cfg » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/simplejson/scripts/make_docs.py
diff --git a/third_party/simplejson/scripts/make_docs.py b/third_party/simplejson/scripts/make_docs.py
new file mode 100755
index 0000000000000000000000000000000000000000..d046c1a6d9ab5d7b1166f47f4bb0be36bea0ed3b
--- /dev/null
+++ b/third_party/simplejson/scripts/make_docs.py
@@ -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)
« no previous file with comments | « third_party/simplejson/index.rst ('k') | third_party/simplejson/setup.cfg » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698