Skip to content

Commit

Permalink
Add overrides for banner showing not viewing latest version (#360)
Browse files Browse the repository at this point in the history
  • Loading branch information
vatj authored and SirOibaf committed Apr 10, 2024
1 parent a6bfb01 commit 791a2ed
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
6 changes: 4 additions & 2 deletions mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -281,6 +281,7 @@ nav:

theme:
name: material
custom_dir: overrides
favicon: assets/images/favicon.ico
logo: assets/images/hops-logo.png
icon:
Expand All @@ -300,6 +301,7 @@ extra:
hopsworks_version: 3.7
version:
provider: mike
default: latest
generator: false
social:
- icon: fontawesome/brands/twitter
Expand Down Expand Up @@ -364,5 +366,5 @@ markdown_extensions:
- markdown_include.include:
base_path: docs
- pymdownx.emoji:
emoji_index: !!python/name:materialx.emoji.twemoji
emoji_generator: !!python/name:materialx.emoji.to_svg
emoji_index: !!python/name:material.extensions.emoji.twemoji
emoji_generator: !!python/name:material.extensions.emoji.to_svg
8 changes: 8 additions & 0 deletions overrides/main.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{% extends "base.html" %}

{% block outdated %}
You're not viewing the latest version of the documentation.
<a href="{{ '../' ~ base_url }}">
<strong>Click here to go to latest.</strong>
</a>
{% endblock %}

0 comments on commit 791a2ed

Please sign in to comment.