mirror of
https://github.com/jupyter/notebook.git
synced 2024-12-21 04:10:17 +08:00
21 lines
543 B
Smarty
21 lines
543 B
Smarty
{%- extends 'rst.tpl' -%}
|
|
|
|
{% macro notebooklink() -%}
|
|
|
|
`View the original notebook on nbviewer <http://nbviewer.jupyter.org/github/jupyter/notebook/blob/master/docs/{{ resources['metadata']['path'] }}/{{ resources['metadata']['name'] | replace(' ', '%20') }}.ipynb>`__
|
|
|
|
|
|
{%- endmacro %}
|
|
|
|
{%- block header %}
|
|
{{ notebooklink() }}
|
|
{% endblock header -%}
|
|
|
|
{%- block footer %}
|
|
{{ notebooklink() }}
|
|
{% endblock footer -%}
|
|
|
|
{% block markdowncell scoped %}
|
|
{{ cell.source | markdown2rst | replace(".ipynb>", ".html>") }}
|
|
{% endblock markdowncell %}
|