-
Notifications
You must be signed in to change notification settings - Fork 505
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
1076979
commit c3063c4
Showing
9 changed files
with
122 additions
and
356 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,40 +1,63 @@ | ||
{%- extends 'base.tpl' -%} | ||
{% from 'mathjax.tpl' import mathjax %} | ||
{%- extends 'nbconvert/templates/default/index.html' -%} | ||
|
||
|
||
|
||
{%- block html_head_js -%} | ||
{%- block html_head_js_jquery -%} | ||
{%- endblock html_head_js_jquery -%} | ||
{%- endblock html_head_js -%} | ||
|
||
|
||
{%- block html_head_css -%} | ||
<link rel="stylesheet" type="text/css" href="{{resources.base_url}}voila/static/index.css"></link> | ||
|
||
{% if resources.theme == 'dark' %} | ||
<link rel="stylesheet" type="text/css" href="{{resources.base_url}}voila/static/theme-dark.css"></link> | ||
{% else %} | ||
<link rel="stylesheet" type="text/css" href="{{resources.base_url}}voila/static/theme-light.css"></link> | ||
{% endif %} | ||
|
||
{% for css in resources.inlining.css %} | ||
<style type="text/css"> | ||
{{ css }} | ||
</style> | ||
{% endfor %} | ||
|
||
<style> | ||
a.anchor-link { | ||
display: none; | ||
} | ||
.highlight { | ||
margin: 0.4em; | ||
} | ||
</style> | ||
|
||
{{ mathjax() }} | ||
<link rel="stylesheet" href="https://unpkg.com/font-awesome@4.5.0/css/font-awesome.min.css" type="text/css" /> | ||
{{ super() }} | ||
{%- endblock html_head_css -%} | ||
|
||
|
||
|
||
{% block custom_css %} | ||
{% endblock %} | ||
|
||
|
||
|
||
{% block ipywidgets %} | ||
<script id="jupyter-config-data" type="application/json"> | ||
{ | ||
"baseUrl": "{{resources.base_url}}", | ||
"kernelId": "{{resources.kernel_id}}" | ||
} | ||
</script> | ||
{% endblock ipywidgets %} | ||
|
||
|
||
|
||
{%- block body -%} | ||
{% if resources.theme == 'dark' %} | ||
<body class="jp-Notebook theme-dark" data-base-url="{{resources.base_url}}voila/"> | ||
{% else %} | ||
<body class="jp-Notebook theme-light" data-base-url="{{resources.base_url}}voila/"> | ||
{% endif %} | ||
{{ super() }} | ||
<body data-base-url="{{resources.base_url}}voila/"> | ||
{%- block body_content -%} | ||
{{ super() }} | ||
{%- endblock body_content -%} | ||
</body> | ||
{%- endblock body -%} | ||
|
||
|
||
|
||
|
||
{% block footer_js %} | ||
<script | ||
src="{{resources.base_url}}voila/static/require.min.js" | ||
integrity="sha256-Ae2Vz/4ePdIu6ZyI/5ZGsYnb+m0JlOmKPjt6XZ9JJkA=" | ||
crossorigin="anonymous"> | ||
</script> | ||
<script> | ||
requirejs.config({ baseUrl: '{{resources.base_url}}voila/', waitSeconds: 30}) | ||
requirejs( | ||
[ | ||
"static/main", | ||
{% for ext in resources.nbextensions -%} | ||
"{{resources.base_url}}voila/nbextensions/{{ ext }}.js", | ||
{% endfor %} | ||
] | ||
) | ||
</script> | ||
{% endblock footer_js %} | ||
|
Oops, something went wrong.