Skip to content

Commit 3e32051

Browse files
committed
Notebook download version
1 parent 9cb60be commit 3e32051

File tree

2 files changed

+15
-0
lines changed

2 files changed

+15
-0
lines changed

docs/overrides/main.html

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
{% extends "base.html" %} {% block content %} {% if page.nb_url %}
2+
<a
3+
href="{{ page.nb_url }}"
4+
title="Download Notebook"
5+
class="md-content__button md-icon"
6+
>
7+
{% include ".icons/material/download.svg" %}
8+
</a>
9+
{% endif %} {{ super() }} {% endblock content %} {% block outdated %} You're not
10+
viewing the latest version.
11+
<a href="{{ '../' ~ base_url }}">
12+
<strong>Click here to go to latest.</strong>
13+
</a>
14+
{% endblock %}

mkdocs.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ watch:
3333

3434
theme:
3535
name: material
36+
custom_dir: docs/overrides
3637
palette:
3738
# Palette toggle for automatic mode
3839
- media: "(prefers-color-scheme)"

0 commit comments

Comments
 (0)