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

Unified Diff: native_client_sdk/src/doc/_sphinxext/devsite_builder.py

Issue 25548007: [NaCl Docs] Add a new doc build configuration: devsite-staging. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 3 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
Index: native_client_sdk/src/doc/_sphinxext/devsite_builder.py
diff --git a/native_client_sdk/src/doc/_sphinxext/devsite_builder.py b/native_client_sdk/src/doc/_sphinxext/devsite_builder.py
index 0a7860b8c216deba061d48983ca9d80fd6872f4d..6d1cf5660d0d26ba21a09717d83f45ac53de0693 100644
--- a/native_client_sdk/src/doc/_sphinxext/devsite_builder.py
+++ b/native_client_sdk/src/doc/_sphinxext/devsite_builder.py
@@ -247,9 +247,7 @@ class DevsiteBuilder(StandaloneHTMLBuilder):
def get_target_uri(self, docname, typ=None):
if self.devsite_production_mode:
- # TODO(eliben): testrst here will have to be replaced with
- # {{pepperversion}}
- return '/native-client/testrst/%s' % docname
+ return '/native-client/%s/%s' % (self.config.devsite_foldername, docname)
eliben 2013/10/02 15:57:32 visit_image too Other paths relative to native-cl
Sam Clegg 2013/10/02 19:08:08 Done.
else:
return docname + self.link_suffix
@@ -323,5 +321,5 @@ def setup(app):
# "Production mode" for local testing vs. on-server documentation.
app.add_config_value('devsite_production_mode', default='1', rebuild='html')
-
app.add_config_value('kill_internal_links', default='0', rebuild='html')
+ app.add_config_value('devsite_foldername', default='dev', rebuild='html')

Powered by Google App Engine
This is Rietveld 408576698