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 df2c1d2b4feac411a696beb2303c48712ca8d88c..23da7a5239950a38bbce3cc53dcf67d67f937028 100644 |
--- a/native_client_sdk/src/doc/_sphinxext/devsite_builder.py |
+++ b/native_client_sdk/src/doc/_sphinxext/devsite_builder.py |
@@ -48,7 +48,7 @@ ${doc_body} |
'''.lstrip()) |
DEVSITE_PREFIX = r''' |
-{% setvar pepperversion %}pepper''' + PEPPER_VERSION + ''' {% endsetvar %} |
+{% setvar pepperversion %}pepper''' + PEPPER_VERSION + '''{% endsetvar %} |
{% include "native-client/_local_variables.html" %}''' |
DEVSITE_BUTTERBAR = '{{butterbar}}' |
@@ -253,8 +253,16 @@ class DevsiteBuilder(StandaloneHTMLBuilder): |
def finish(self): |
super(DevsiteBuilder, self).finish() |
- self.info(bold('generating YAML table-of-contents files... ')) |
- create_toc_yaml_files(self.app) |
Sam Clegg
2013/11/04 21:47:26
Do this function doesn't exist at HEAD right now?
eliben
2013/11/04 21:53:02
It still exists - i do think it will be used at so
Sam Clegg
2013/11/04 22:01:59
If its really not used then I would remove it yes.
|
+ self.info(bold('generating YAML table-of-contents... ')) |
Sam Clegg
2013/11/04 21:47:26
Put this inside the condition below?
eliben
2013/11/04 21:53:02
Done.
|
+ if self.devsite_production_mode: |
+ print('foo') |
Sam Clegg
2013/11/04 21:47:26
remove?
eliben
2013/11/04 21:53:02
Done.
|
+ subs = { |
+ 'version': PEPPER_VERSION, |
+ 'folder': self.config.devsite_foldername or ''} |
+ with open(os.path.join(self.env.srcdir, '_book.yaml')) as in_f: |
+ with open(os.path.join(self.outdir, '_book.yaml'), 'w') as out_f: |
+ out_f.write(string.Template(in_f.read()).substitute(subs)) |
+ self.info() |
def dump_inventory(self): |
# We don't want an inventory file when building for devsite |