From 548cd6bfdb7d59c589c38a991ac981f9c3e044bb Mon Sep 17 00:00:00 2001
From: Jarmil <jarmil.halamicek@seznam.cz>
Date: Tue, 15 Sep 2020 10:16:05 +0200
Subject: [PATCH] Jupyter: prehozeni templates

---
 uniweb/{jupyter-templates => templates/jupyter}/basic.tpl    | 0
 uniweb/{jupyter-templates => templates/jupyter}/celltags.tpl | 0
 uniweb/{jupyter-templates => templates/jupyter}/mathjax.tpl  | 0
 uniweb/{jupyter-templates => templates/jupyter}/my.tpl       | 0
 uniweb/templatetags/uniweb_filters.py                        | 2 +-
 5 files changed, 1 insertion(+), 1 deletion(-)
 rename uniweb/{jupyter-templates => templates/jupyter}/basic.tpl (100%)
 rename uniweb/{jupyter-templates => templates/jupyter}/celltags.tpl (100%)
 rename uniweb/{jupyter-templates => templates/jupyter}/mathjax.tpl (100%)
 rename uniweb/{jupyter-templates => templates/jupyter}/my.tpl (100%)

diff --git a/uniweb/jupyter-templates/basic.tpl b/uniweb/templates/jupyter/basic.tpl
similarity index 100%
rename from uniweb/jupyter-templates/basic.tpl
rename to uniweb/templates/jupyter/basic.tpl
diff --git a/uniweb/jupyter-templates/celltags.tpl b/uniweb/templates/jupyter/celltags.tpl
similarity index 100%
rename from uniweb/jupyter-templates/celltags.tpl
rename to uniweb/templates/jupyter/celltags.tpl
diff --git a/uniweb/jupyter-templates/mathjax.tpl b/uniweb/templates/jupyter/mathjax.tpl
similarity index 100%
rename from uniweb/jupyter-templates/mathjax.tpl
rename to uniweb/templates/jupyter/mathjax.tpl
diff --git a/uniweb/jupyter-templates/my.tpl b/uniweb/templates/jupyter/my.tpl
similarity index 100%
rename from uniweb/jupyter-templates/my.tpl
rename to uniweb/templates/jupyter/my.tpl
diff --git a/uniweb/templatetags/uniweb_filters.py b/uniweb/templatetags/uniweb_filters.py
index 7350ba5d..4dd5f402 100644
--- a/uniweb/templatetags/uniweb_filters.py
+++ b/uniweb/templatetags/uniweb_filters.py
@@ -28,7 +28,7 @@ def jupyterize(value):
     c.preprocessors = ["TagRemovePreprocessor"]
 
     nb_body, _ = nbconvert.TemplateExporter(
-        config=c, template_file="uniweb/jupyter-templates/my.tpl"
+        config=c, template_file="uniweb/templates/jupyter/my.tpl"
     ).from_filename(filename)
 
     # HACK: fucking ugly. Ale netusim kde se to tam bere, asi nekde v hloubi notebookovskych templates
-- 
GitLab