Skip to content

Commit e18b4b1

Browse files
committed
Add outdated version warning
1 parent 99d9e3f commit e18b4b1

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

mkdocs.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ site_name: PyScript
22

33
theme:
44
name: material
5+
custom_dir: overrides
56

67
logo: assets/images/pyscript-black.svg
78

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="{{ config.site_url or '../' }}">
6+
<strong>Click here to go to latest.</strong>
7+
</a>
8+
{% endblock %}

0 commit comments

Comments
 (0)