Skip to content

Commit a426150

Browse files
committed
Add overrides for banner showing not viewing latest version (logicalclocks#360)
1 parent da08226 commit a426150

File tree

2 files changed

+12
-2
lines changed

2 files changed

+12
-2
lines changed

mkdocs.yml

+4-2
Original file line numberDiff line numberDiff line change
@@ -261,6 +261,7 @@ nav:
261261

262262
theme:
263263
name: material
264+
custom_dir: overrides
264265
favicon: assets/images/favicon.ico
265266
logo: assets/images/hops-logo.png
266267
icon:
@@ -280,6 +281,7 @@ extra:
280281
hopsworks_version: 3.5
281282
version:
282283
provider: mike
284+
default: latest
283285
generator: false
284286
social:
285287
- icon: fontawesome/brands/twitter
@@ -344,5 +346,5 @@ markdown_extensions:
344346
- markdown_include.include:
345347
base_path: docs
346348
- pymdownx.emoji:
347-
emoji_index: !!python/name:materialx.emoji.twemoji
348-
emoji_generator: !!python/name:materialx.emoji.to_svg
349+
emoji_index: !!python/name:material.extensions.emoji.twemoji
350+
emoji_generator: !!python/name:material.extensions.emoji.to_svg

overrides/main.html

+8
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 of the documentation.
5+
<a href="{{ '../' ~ base_url }}">
6+
<strong>Click here to go to latest.</strong>
7+
</a>
8+
{% endblock %}

0 commit comments

Comments
 (0)