Skip to content

Commit 383f477

Browse files
committed
Move HTML generation to newer-style templates
1 parent 0a2add1 commit 383f477

File tree

3 files changed

+9
-3
lines changed

3 files changed

+9
-3
lines changed

Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,8 @@ default: _site
3535
%.png: %.uml plantuml.jar Makefile
3636
java -Djava.awt.headless=true -jar plantuml.jar -p < $< > $@
3737

38-
%.html: %.nbconvert.ipynb Makefile jekyll.tpl
39-
jupyter nbconvert --to html --template jekyll.tpl --stdout $< > $@
38+
%.html: %.nbconvert.ipynb Makefile jekyll_template
39+
jupyter nbconvert --to html --template jekyll_template --stdout $< > $@
4040

4141
%.v2.ipynb: %.nbconvert.ipynb
4242
jupyter nbconvert --to notebook --nbformat 2 --stdout $< > $@

jekyll_template/conf.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"base_template": "basic",
3+
"mimetypes": {
4+
"text/html": true
5+
}
6+
}

jekyll.tpl renamed to jekyll_template/index.html.j2

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
{%- extends 'basic.tpl' -%}
1+
{%- extends 'basic/index.html.j2' -%}
22
{%- block header -%}
33
---
44
title: {% if 'jekyll' in nb['metadata'] %} {{nb['metadata']['jekyll']['display_name']}} {% endif %}

0 commit comments

Comments
 (0)