Skip to content

Commit e4eb1c8

Browse files
committed
Add banner for outdated versions
Signed-off-by: Federico Busetti <[email protected]>
1 parent f924464 commit e4eb1c8

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

mkdocs-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 %}

mkdocs.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ plugins:
1313

1414
theme:
1515
name: material
16+
custom_dir: mkdocs-overrides
1617
features:
1718
- navigation.expand
1819
- navigation.top
@@ -41,6 +42,7 @@ extra:
4142
link: https://www.linkedin.com/in/federico-b-a0b78232
4243
version:
4344
provider: mike
45+
default: stable
4446

4547
nav:
4648
- Home: index.md

0 commit comments

Comments
 (0)