You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mynewt.apache.org by ja...@apache.org on 2024/08/19 10:09:27 UTC

(mynewt-documentation) branch master updated: documentation: add `master` as a selectable version

This is an automated email from the ASF dual-hosted git repository.

janc pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/mynewt-documentation.git


The following commit(s) were added to refs/heads/master by this push:
     new 983a6bf  documentation: add `master` as a selectable version
983a6bf is described below

commit 983a6bf4f815632bee6be9d87bdded94ef71a3c9
Author: Wojciech Pietraszewski <wo...@codecoup.pl>
AuthorDate: Wed Aug 14 20:18:17 2024 +0200

    documentation: add `master` as a selectable version
    
    Adds the master branch documentation as an option to choose
    from the drop-down list in the `Documentation` section.
---
 docs/themes/mynewt/layout.html   | 12 +++++++++++-
 docs/themes/mynewt/versions.html |  5 ++++-
 2 files changed, 15 insertions(+), 2 deletions(-)

diff --git a/docs/themes/mynewt/layout.html b/docs/themes/mynewt/layout.html
index 73c2ad9..8d9c50b 100644
--- a/docs/themes/mynewt/layout.html
+++ b/docs/themes/mynewt/layout.html
@@ -115,7 +115,17 @@ ga("send", "pageview");
             {% include "sidebar.html" %}
 
             <div class="col-xs-12 col-sm-9">
-              {% if cur_version != latest_version %}
+
+              {% if cur_version == "master" %}
+                <div class="alert alert-warning">
+                  <p>
+                    Version {{ cur_version }} is the development version of the
+                    Apache Mynewt documentation. Click <a href="/latest">here</a> to
+                    read the latest released version.
+                  </p>
+                </div>
+
+              {% elif cur_version != latest_version %}
                 <div class="alert alert-warning">
                   <p>
                     Version {{ cur_version }} is not the most recent version of the
diff --git a/docs/themes/mynewt/versions.html b/docs/themes/mynewt/versions.html
index fcc7eaf..ca4016e 100644
--- a/docs/themes/mynewt/versions.html
+++ b/docs/themes/mynewt/versions.html
@@ -3,7 +3,10 @@
   <option value="/latest" selected>
     Version: latest
   </option>
-  <option value="/v1_12_0" {% if cur_version == "1.12.0" %}selected="selected" {% endif %}>
+  <option value="/master" {% if cur_version == "master" %}selected="selected" {% endif %}>
+    Version: master
+  </option>
+ <option value="/v1_12_0" {% if cur_version == "1.12.0" %}selected="selected" {% endif %}>
     Version: 1.12.0
   </option>
   <option value="/v1_11_0" {% if cur_version == "1.11.0" %}selected="selected" {% endif %}>