Skip to content

Commit

Permalink
Make template system backward compatible
Browse files Browse the repository at this point in the history
  • Loading branch information
maartenbreddels committed Jan 21, 2020
1 parent 16d696b commit 5d11027
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 0 deletions.
3 changes: 3 additions & 0 deletions nbconvert/exporters/templateexporter.py
Original file line number Diff line number Diff line change
Expand Up @@ -479,6 +479,9 @@ def get_template_paths(self, prune=False, root_dirs=None):
base_dir = os.path.join(root_dir, 'nbconvert', 'templates')
paths.append(base_dir)

compatibility_dir = os.path.join(root_dir, 'nbconvert', 'templates', 'compatibility')
paths.append(compatibility_dir)

additional_paths = self.template_data_paths
for path in additional_paths:
try:
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{%- extends 'base/display_priority.j2' -%}
1 change: 1 addition & 0 deletions share/jupyter/nbconvert/templates/compatibility/rst.tpl
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{%- extends 'rst/index.rst.j2' -%}

0 comments on commit 5d11027

Please sign in to comment.