Skip to content

Commit

Permalink
replace template_path with template_paths
Browse files Browse the repository at this point in the history
  • Loading branch information
demotu committed Sep 29, 2020
1 parent 54ab29d commit c4cf36a
Show file tree
Hide file tree
Showing 8 changed files with 76 additions and 6 deletions.
8 changes: 8 additions & 0 deletions .idea/.gitignore

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

17 changes: 17 additions & 0 deletions .idea/inspectionProfiles/Project_Default.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions .idea/inspectionProfiles/profiles_settings.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

21 changes: 21 additions & 0 deletions .idea/jupyter_latex_envs.iml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions .idea/misc.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions .idea/modules.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions .idea/vcs.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 6 additions & 6 deletions src/latex_envs/latex_envs.py
Original file line number Diff line number Diff line change
Expand Up @@ -301,12 +301,12 @@ def default_config(self):
)
c.merge(super(LenvsHTMLExporter, self).default_config)
if os.path.isdir(os.path.join(os.path.dirname(__file__), 'templates')):
c.TemplateExporter.template_path = ['.',
c.TemplateExporter.template_paths = ['.',
os.path.join(os.path.dirname(__file__), 'templates')]
else:
from jupyter_contrib_nbextensions.nbconvert_support import (
templates_directory)
c.TemplateExporter.template_path = ['.', templates_directory()]
c.TemplateExporter.template_paths = ['.', templates_directory()]

return c

Expand Down Expand Up @@ -364,12 +364,12 @@ def default_config(self):
)
c.merge(super(LenvsSlidesExporter, self).default_config)
if os.path.isdir(os.path.join(os.path.dirname(__file__), 'templates')):
c.TemplateExporter.template_path = ['.',
c.TemplateExporter.template_paths = ['.',
os.path.join(os.path.dirname(__file__), 'templates')]
else:
from jupyter_contrib_nbextensions.nbconvert_support import (
templates_directory)
c.TemplateExporter.template_path = ['.', templates_directory()]
c.TemplateExporter.template_paths = ['.', templates_directory()]

return c

Expand Down Expand Up @@ -483,12 +483,12 @@ def default_config(self):
c.merge(super(LenvsLatexExporter, self).default_config)

if os.path.isdir(os.path.join(os.path.dirname(__file__), 'templates')):
c.TemplateExporter.template_path = ['.',
c.TemplateExporter.template_paths = ['.',
os.path.join(os.path.dirname(__file__), 'templates')]
else:
from jupyter_contrib_nbextensions.nbconvert_support import (
templates_directory)
c.TemplateExporter.template_path = ['.', templates_directory()]
c.TemplateExporter.template_paths = ['.', templates_directory()]
return c

def tocrefrm(self, text):
Expand Down

0 comments on commit c4cf36a

Please sign in to comment.