Skip to content

Commit 993671b

Browse files
committed
add: initial support for banner to latest version
1 parent e93db69 commit 993671b

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

docs/overrides/main.html

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,14 @@
33
-#}
44
{% extends "base.html" %}
55

6+
{% block outdated %}
7+
You're not viewing the latest version.
8+
<a href="{{ '../' ~ 'latest' }}">
9+
<strong>Click here to go to latest.</strong>
10+
</a>
11+
{% endblock %}
12+
13+
614
<!-- Custom front matter -->
715
{% block extrahead %}
816

@@ -43,7 +51,7 @@
4351

4452
{% endblock %}
4553

46-
54+
4755

4856
<!-- Content -->
4957
{% block content %}

mkdocs.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,3 +71,4 @@ extra:
7171
version:
7272
provider: mike
7373
alias: true
74+
default: latest

0 commit comments

Comments
 (0)