Skip to content

Commit

Permalink
Notebook download version
Browse files Browse the repository at this point in the history
  • Loading branch information
kylebarron committed Jun 25, 2024
1 parent 9cb60be commit 3e32051
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
14 changes: 14 additions & 0 deletions docs/overrides/main.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{% extends "base.html" %} {% block content %} {% if page.nb_url %}
<a
href="{{ page.nb_url }}"
title="Download Notebook"
class="md-content__button md-icon"
>
{% include ".icons/material/download.svg" %}
</a>
{% endif %} {{ super() }} {% endblock content %} {% block outdated %} You're not
viewing the latest version.
<a href="{{ '../' ~ base_url }}">
<strong>Click here to go to latest.</strong>
</a>
{% endblock %}
1 change: 1 addition & 0 deletions mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ watch:

theme:
name: material
custom_dir: docs/overrides
palette:
# Palette toggle for automatic mode
- media: "(prefers-color-scheme)"
Expand Down

0 comments on commit 3e32051

Please sign in to comment.