Skip to content

Commit

Permalink
DOC: Adds warning banner if not browsing the latest version of docs.
Browse files Browse the repository at this point in the history
  • Loading branch information
gethvi committed Jan 8, 2024
1 parent 3aebcce commit d569bf9
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
11 changes: 11 additions & 0 deletions docs/_overrides/main.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{#SPDX-FileCopyrightText: 2023 Filip Pokorný#}
{#SPDX-License-Identifier: AGPL-3.0-or-later#}

{% extends "base.html" %}

{% block outdated %}
You're not viewing the latest version.
<a href="{{ '../' ~ base_url }}" style="color: black">
<strong>Click here to go to latest.</strong>
</a>
{% endblock %}
1 change: 1 addition & 0 deletions mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ site_dir: docs_build
theme:
name: material
logo: static/images/Logo_Intel_MQ.svg
custom_dir: docs/_overrides
palette:
# Palette toggle for light mode
- scheme: default
Expand Down

0 comments on commit d569bf9

Please sign in to comment.