You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
30 lines
1.1 KiB
30 lines
1.1 KiB
2 years ago
|
{%- extends 'nbextensions.tpl' -%}
|
||
|
|
||
|
|
||
|
{%- block header -%}
|
||
|
{{ super() }}
|
||
|
|
||
|
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/jqueryui/1.12.1/jquery-ui.css">
|
||
|
|
||
|
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/jqueryui/1.9.1/jquery-ui.min.js"></script>
|
||
|
|
||
|
<link rel="stylesheet" type="text/css" href="https://rawgit.com/ipython-contrib/jupyter_contrib_nbextensions/master/src/jupyter_contrib_nbextensions/nbextensions/toc2/main.css">
|
||
|
|
||
|
<link rel="stylesheet" type="text/css" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
|
||
|
|
||
|
<script src="https://rawgit.com/ipython-contrib/jupyter_contrib_nbextensions/master/src/jupyter_contrib_nbextensions/nbextensions/toc2/toc2.js"></script>
|
||
|
|
||
|
<script>
|
||
|
$( document ).ready(function(){
|
||
|
|
||
|
var cfg = {{ nb.get('metadata', {}).get('toc', {})|tojson|safe }};
|
||
|
|
||
|
// fire the main function with these parameters
|
||
|
require(['nbextensions/toc2/toc2'], function (toc2) {
|
||
|
toc2.table_of_contents(cfg);
|
||
|
});
|
||
|
});
|
||
|
</script>
|
||
|
|
||
|
{%- endblock header -%}
|