mirror of
https://github.com/jupyter/notebook.git
synced 2025-04-06 13:50:29 +08:00
* Add webpack config for prod * add optimization * rename top package * Add HtmlWebpackPlugin - rough draft * Move templates and ignore generated html * Use loop to create HtmlWebpackPlugins * Remove bundle.js from ensured-targets --------- Co-authored-by: Jeremy Tuloup <jeremy.tuloup@gmail.com>
46 lines
1.4 KiB
HTML
46 lines
1.4 KiB
HTML
<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
<meta charset="utf-8" />
|
|
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
|
<title>{{page_config['appName'] | e}} - Console</title>
|
|
{% block favicon %}
|
|
<link
|
|
rel="icon"
|
|
type="image/x-icon"
|
|
href="{{ page_config['fullStaticUrl'] | e }}/favicons/favicon-console.ico"
|
|
class="favicon"
|
|
/>
|
|
{% endblock %} {% if custom_css %}
|
|
<link
|
|
rel="stylesheet"
|
|
type="text/css"
|
|
href="{{ base_url | escape }}custom/custom.css"
|
|
/>
|
|
{% endif %}
|
|
</head>
|
|
<body class="jp-ThemedContainer">
|
|
{# Copy so we do not modify the page_config with updates. #} {% set
|
|
page_config_full = page_config.copy() %} {# Set a dummy variable - we just
|
|
want the side effect of the update. #} {% set _ =
|
|
page_config_full.update(baseUrl=base_url, wsUrl=ws_url) %} {# Sentinel value
|
|
to say that we are on the tree page #} {% set _ =
|
|
page_config_full.update(notebookPage='consoles') %}
|
|
|
|
<script id="jupyter-config-data" type="application/json">
|
|
{{ page_config_full | tojson }}
|
|
</script>
|
|
|
|
<script type="text/javascript">
|
|
/* Remove token from URL. */
|
|
(function () {
|
|
var parsedUrl = new URL(window.location.href);
|
|
if (parsedUrl.searchParams.get('token')) {
|
|
parsedUrl.searchParams.delete('token');
|
|
window.history.replaceState({}, '', parsedUrl.href);
|
|
}
|
|
})();
|
|
</script>
|
|
</body>
|
|
</html>
|