Skip to content

Commit

Permalink
Use basic ipynb template by default
Browse files Browse the repository at this point in the history
Signed-off-by: Chris Warrick <kwpolska@gmail.com>
  • Loading branch information
Kwpolska committed Apr 13, 2018
1 parent e86cb9e commit 9626e74
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions CHANGES.txt
Expand Up @@ -4,6 +4,8 @@ New in master
Features
--------

* Use basic ipynb template by default for slightly better apperance
and behavior
* Replace ``flowr.js`` with ``justified-layout.js`` by Flickr
(does not require jQuery!)
* ``bootblog4`` is the new default theme (Issue #2964)
Expand Down
2 changes: 2 additions & 0 deletions nikola/plugins/compile/ipynb.py
Expand Up @@ -59,6 +59,8 @@ def _compile_string(self, nb_json):
self._req_missing_ipynb()
c = Config(self.site.config['IPYNB_CONFIG'])
c.update(get_default_jupyter_config())
if 'template_file' not in self.site.config['IPYNB_CONFIG'].get('Exporter', {}):
c['Exporter']['template_file'] = 'basic.tpl' # not a typo
exportHtml = HTMLExporter(config=c)
body, _ = exportHtml.from_notebook_node(nb_json)
return body
Expand Down

0 comments on commit 9626e74

Please sign in to comment.