summaryrefslogtreecommitdiffstats
path: root/native_client_sdk
diff options
context:
space:
mode:
authorsbc@chromium.org <sbc@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-06-13 19:40:45 +0000
committersbc@chromium.org <sbc@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-06-13 19:40:45 +0000
commitf7661be812a72fc1d2e35d5708382e2fc4c77861 (patch)
tree4a6a87e4f20dea8975ea126cb4385bd76d450711 /native_client_sdk
parent468953b3ef45522178b43b82cbf8d2229aad7249 (diff)
downloadchromium_src-f7661be812a72fc1d2e35d5708382e2fc4c77861.zip
chromium_src-f7661be812a72fc1d2e35d5708382e2fc4c77861.tar.gz
chromium_src-f7661be812a72fc1d2e35d5708382e2fc4c77861.tar.bz2
[NaCl SDK] docs: Bring back support for plain html generator.
Make our sphyix project at least builtable with the regular html generator. This keeps us honest IMHO. I'm also playing around with adding our docs to https://readthedocs.org/. R=binji@chromium.org Review URL: https://codereview.chromium.org/337583003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@277074 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'native_client_sdk')
-rw-r--r--native_client_sdk/src/doc/Makefile6
-rw-r--r--native_client_sdk/src/doc/_sphinxext/chromesite_builder.py2
-rw-r--r--native_client_sdk/src/doc/conf.py2
3 files changed, 8 insertions, 2 deletions
diff --git a/native_client_sdk/src/doc/Makefile b/native_client_sdk/src/doc/Makefile
index 1b9f28b..04876d5 100644
--- a/native_client_sdk/src/doc/Makefile
+++ b/native_client_sdk/src/doc/Makefile
@@ -21,6 +21,7 @@ all: chromesite
help:
@echo "Please use \`make <target>' where <target> is one of"
+ @echo " html to make standalone HTML files"
@echo " chromesite build docs for developer.chrome.com"
@echo " chromesite_rst only build .rst docs; no doxygen"
@echo " serve start python web server for chromesite docs"
@@ -31,6 +32,11 @@ help:
clean:
rm -rf $(BUILDDIR)/*
+html:
+ $(SPHINXBUILD) -b html $(ALLSPHINXOPTS) $(BUILDDIR)/html
+ @echo
+ @echo "Build finished. The HTML pages are in $(BUILDDIR)/html."
+
linkcheck:
$(SPHINXBUILD) -b linkcheck $(ALLSPHINXOPTS) $(BUILDDIR)/linkcheck
@echo
diff --git a/native_client_sdk/src/doc/_sphinxext/chromesite_builder.py b/native_client_sdk/src/doc/_sphinxext/chromesite_builder.py
index a212e1e..c44b3f7 100644
--- a/native_client_sdk/src/doc/_sphinxext/chromesite_builder.py
+++ b/native_client_sdk/src/doc/_sphinxext/chromesite_builder.py
@@ -177,6 +177,8 @@ class ChromesiteBuilder(StandaloneHTMLBuilder):
add_permalinks = False
def init(self):
+ self.config.html_translator_class = \
+ 'chromesite_builder.ChromesiteHTMLTranslator'
self.chromesite_kill_internal_links = \
int(self.config.chromesite_kill_internal_links) == 1
self.info("----> Chromesite builder")
diff --git a/native_client_sdk/src/doc/conf.py b/native_client_sdk/src/doc/conf.py
index 4b071c9..6ebf067 100644
--- a/native_client_sdk/src/doc/conf.py
+++ b/native_client_sdk/src/doc/conf.py
@@ -94,8 +94,6 @@ exclude_patterns = ['_build', '**/.#*']
# a list of builtin themes.
html_theme = 'default'
-html_translator_class = 'chromesite_builder.ChromesiteHTMLTranslator'
-
# Theme options are theme-specific and customize the look and feel of a theme
# further. For a list of options available for each theme, see the
# documentation.