You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mynewt.apache.org by ut...@apache.org on 2019/07/19 13:42:22 UTC
[mynewt-documentation] 02/04: Show warning when navigating older
versions docs
This is an automated email from the ASF dual-hosted git repository.
utzig pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/mynewt-documentation.git
commit 0b5180868508a1eb86a3fdb61fc46b70fd4a7d2b
Author: Fabio Utzig <ut...@apache.org>
AuthorDate: Thu Jul 18 15:20:59 2019 -0300
Show warning when navigating older versions docs
---
docs/themes/mynewt/layout.html | 10 ++++++++++
1 file changed, 10 insertions(+)
diff --git a/docs/themes/mynewt/layout.html b/docs/themes/mynewt/layout.html
index bbcb416..f805ac9 100644
--- a/docs/themes/mynewt/layout.html
+++ b/docs/themes/mynewt/layout.html
@@ -115,6 +115,16 @@ ga("send", "pageview");
{% include "sidebar.html" %}
<div class="col-xs-12 col-sm-9">
+ {% if cur_version != latest_version %}
+ <div class="alert alert-warning">
+ <p>
+ Version {{ cur_version }} is not the most recent version of the
+ Apache Mynewt documentation. Click <a href="/latest">here</a> to
+ read the latest version.
+ </p>
+ </div>
+ {% endif %}
+
{# PAGE CONTENT #}
<div class="">
<div class="rst-content">