Skip to content

Commit

Permalink
small fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
maartenbreddels committed Jul 24, 2019
1 parent 1076979 commit c3063c4
Show file tree
Hide file tree
Showing 9 changed files with 122 additions and 356 deletions.
54 changes: 0 additions & 54 deletions share/jupyter/voila/templates/default/base.tpl

This file was deleted.

87 changes: 55 additions & 32 deletions share/jupyter/voila/templates/default/index.html
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 %}

Loading

0 comments on commit c3063c4

Please sign in to comment.