Skip to content

Commit 7218b47

Browse files
authored
docs: add outdated message (#84)
Fixes #83
1 parent 5c8d034 commit 7218b47

2 files changed

Lines changed: 9 additions & 0 deletions

File tree

docs/mkdocs.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ nav:
2525

2626
theme:
2727
name: material
28+
custom_dir: src/overrides
2829
features:
2930
- content.action.edit
3031
- content.action.view

docs/src/overrides/main.html

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{% extends "base.html" %}
2+
3+
{% block outdated %}
4+
You're not viewing the latest version.
5+
<a href="{{ '../' ~ base_url }}">
6+
<strong>Click here to go to latest.</strong>
7+
</a>
8+
{% endblock %}

0 commit comments

Comments
 (0)