Skip to content

Commit 8d5a14b

Browse files
authored
Add overrides for banner showing not viewing latest version (#360)
1 parent a183d60 commit 8d5a14b

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
@@ -283,6 +283,7 @@ nav:
283283

284284
theme:
285285
name: material
286+
custom_dir: overrides
286287
favicon: assets/images/favicon.ico
287288
logo: assets/images/hops-logo.png
288289
icon:
@@ -302,6 +303,7 @@ extra:
302303
hopsworks_version: dev
303304
version:
304305
provider: mike
306+
default: latest
305307
generator: false
306308
social:
307309
- icon: fontawesome/brands/twitter
@@ -367,5 +369,5 @@ markdown_extensions:
367369
- markdown_include.include:
368370
base_path: docs
369371
- pymdownx.emoji:
370-
emoji_index: !!python/name:materialx.emoji.twemoji
371-
emoji_generator: !!python/name:materialx.emoji.to_svg
372+
emoji_index: !!python/name:material.extensions.emoji.twemoji
373+
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)