Skip to content

Commit 791a2ed

Browse files
vatjSirOibaf
authored andcommitted
Add overrides for banner showing not viewing latest version (#360)
1 parent a6bfb01 commit 791a2ed

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
@@ -281,6 +281,7 @@ nav:
281281

282282
theme:
283283
name: material
284+
custom_dir: overrides
284285
favicon: assets/images/favicon.ico
285286
logo: assets/images/hops-logo.png
286287
icon:
@@ -300,6 +301,7 @@ extra:
300301
hopsworks_version: 3.7
301302
version:
302303
provider: mike
304+
default: latest
303305
generator: false
304306
social:
305307
- icon: fontawesome/brands/twitter
@@ -364,5 +366,5 @@ markdown_extensions:
364366
- markdown_include.include:
365367
base_path: docs
366368
- pymdownx.emoji:
367-
emoji_index: !!python/name:materialx.emoji.twemoji
368-
emoji_generator: !!python/name:materialx.emoji.to_svg
369+
emoji_index: !!python/name:material.extensions.emoji.twemoji
370+
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)