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/23 13:05:46 UTC

(mynewt-documentation) branch master updated (2a9e84f -> 6872622)

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

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


    from 2a9e84f  docs/tutorials: Update `Air Quality Sensor` tutorial
     new b33b434  themes/mynewt: Update footer
     new 6872622  docs/conf: Fix broken `slack_url` reference and set document language

The 2 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.


Summary of changes:
 docs/_static/css/custom.css    | 40 +++++++++++++++++++++++++++++++++++-----
 docs/conf.py                   |  6 ++++--
 docs/themes/mynewt/footer.html | 40 +++++++++++++++++++++++++++++++++++-----
 3 files changed, 74 insertions(+), 12 deletions(-)


(mynewt-documentation) 01/02: themes/mynewt: Update footer

Posted by ja...@apache.org.
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

commit b33b434c46968c6bb4d40e34cfc4367b7c17b8c8
Author: Wojciech Pietraszewski <wo...@codecoup.pl>
AuthorDate: Tue Aug 20 18:06:26 2024 +0200

    themes/mynewt: Update footer
    
    Adjusts the footer's layout to match
    the one in mynewt-site
---
 docs/_static/css/custom.css    | 40 +++++++++++++++++++++++++++++++++++-----
 docs/themes/mynewt/footer.html | 40 +++++++++++++++++++++++++++++++++++-----
 2 files changed, 70 insertions(+), 10 deletions(-)

diff --git a/docs/_static/css/custom.css b/docs/_static/css/custom.css
index e035c8b..2d07a54 100644
--- a/docs/_static/css/custom.css
+++ b/docs/_static/css/custom.css
@@ -63,6 +63,10 @@
 	.sidebar-top {
 		padding: 40px 0px 20px !important;
 	}
+
+	footer .logos {
+		flex-direction: column;
+	}
 }
 
 @media (max-width: 992px) {
@@ -163,12 +167,13 @@ div.col-md-2 {
 	padding-left: 0;
 }
 
-footer div.container div.row {
+footer {
 	background-color: #f7f8fa;
 	text-align: center;
 	padding-top: 10px;
 	padding-bottom: 10px;
 	border-top: double #42567e;
+	color: #333;
 }
 
 footer .copyright {
@@ -189,10 +194,12 @@ footer .logos {
 footer .logos img {
 	width: 200px;
 	flex-shrink: 0; /* Safari needs this */
+	margin: 10px 20px;
+	max-width: none;
 }
 
 footer .logos .footnote {
-	padding: 10px 40px;
+	padding: 10px 0;
 }
 
 .goal p {
@@ -383,10 +390,10 @@ ul.wy-breadcrumbs {
 
 .wy-breadcrumbs li a {
 	display: inline-block;
-	padding: 5 px;
+	padding: 5px;
 }
 
-.wy-breadcrumbs: first-child {
+.wy-breadcrumbs:first-child {
 	padding-left: 0;
 }
 
@@ -397,7 +404,7 @@ ul.wy-breadcrumbs {
 	display: inline-block;
 }
 
-@media screen and(max-width: 480 px) {
+@media screen and(max-width: 480px) {
 	.wy-breadcrumbs-extra {
 		display: none;
 	}
@@ -466,3 +473,26 @@ div.section > div.breathe-sectiondef.container {
 	width: auto;
 	padding: 0;
 }
+
+.button-footer-asf {
+	background-color: transparent;
+	border-radius: 5px;
+	border: 1px solid grey;
+	color: black;
+	padding: 2px 20px;
+	text-align: center;
+	text-decoration: none;
+	display: inline-block;
+	font-size: 12px;
+	margin-bottom: 4px;
+}
+
+#wrapper {
+	display: flex;
+	min-height: 100vh;
+	flex-direction: column;
+}
+
+#main-content {
+	flex-grow: 1;
+}
diff --git a/docs/themes/mynewt/footer.html b/docs/themes/mynewt/footer.html
index 94d26af..d0a7efc 100644
--- a/docs/themes/mynewt/footer.html
+++ b/docs/themes/mynewt/footer.html
@@ -8,11 +8,16 @@
       </div>
       <div class="col-xs-12">
           <div class="logos">
-              <img src="{{pathto("_static/img/asf_logo_wide_small.png", 1)}}" alt="Apache" title="Apache">
-              <small class="footnote">
-                Apache Mynewt, Mynewt, Apache, the Apache feather logo, and the Apache Mynewt project logo are either
-                registered trademarks or trademarks of the Apache Software Foundation in the United States and other countries.
-              </small>
+              <a href="https://www.apache.org">
+                  <img src="{{pathto("_static/img/asf_logo_wide_small.png", 1)}}" alt="Apache" title="Apache">
+              </a>
+              <p>
+                  Copyright © 2015-2024 The Apache Software Foundation.<br>
+                  <small class="footnote">
+                    Apache Mynewt, Mynewt, Apache, the Apache feather logo, and the Apache Mynewt project logo are either
+                    registered trademarks or trademarks of the Apache Software Foundation in the United States and other countries.
+                 </small>
+              </p>
               <a href="{{ slack_url }}">
                 <img src="{{pathto("_static/img/add_to_slack.png", 1)}}" alt="Slack Icon" title="Join our Slack Community" />
               </a>
@@ -20,4 +25,29 @@
       </div>
     </div>
   </div>
+    <a href="https://www.apache.org/licenses/">
+        <button class="button-footer-asf">
+            License
+        </button>
+    </a>
+    <a href="https://www.apache.org/foundation/sponsorship.html">
+        <button class="button-footer-asf">
+            Sponsorship
+        </button>
+    </a>
+    <a href="https://www.apache.org/foundation/thanks.html">
+        <button class="button-footer-asf">
+            Thanks
+        </button>
+    </a>
+    <a href="https://www.apache.org/security/">
+        <button class="button-footer-asf">
+            Security
+        </button>
+    </a>
+    <a href="https://apache.org/events/current-event">
+        <button class="button-footer-asf">
+            ASF Events
+        </button>
+    </a>
 </footer>


(mynewt-documentation) 02/02: docs/conf: Fix broken `slack_url` reference and set document language

Posted by ja...@apache.org.
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

commit 6872622d41f6ab3667a2a72ea735b60504d390e0
Author: Wojciech Pietraszewski <wo...@codecoup.pl>
AuthorDate: Thu Aug 22 16:13:12 2024 +0200

    docs/conf: Fix broken `slack_url` reference and set document language
    
    Fixes the broken `slack_url` reference that caused the Slack button
     in the footer to redirect to the home page.
    Specifies the document language as `en` in the Sphinx configuration.
---
 docs/conf.py | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/docs/conf.py b/docs/conf.py
index 58bf1e1..7440819 100644
--- a/docs/conf.py
+++ b/docs/conf.py
@@ -72,7 +72,7 @@ release = u'latest'
 #
 # This is also used if you do content translation via gettext catalogs.
 # Usually you set "language" from the command line for these cases.
-language = None
+language = 'en'
 
 # List of patterns, relative to source directory, that match files and
 # directories to ignore when looking for source files.
@@ -186,4 +186,6 @@ edit_on_github_projects = {
 }
 edit_on_github_branch = 'master'
 
-slack_url = 'https://join.slack.com/t/mynewt/shared_invite/enQtNjA1MTg0NzgyNzg3LTcyMmZiOGQzOGMxM2U4ODFmMTIwNjNmYTE5Y2UwYjQwZWIxNTE0MTUzY2JmMTEzOWFjYWZkNGM0YmM4MzAxNWQ'
+html_context = {
+    'slack_url': 'https://join.slack.com/t/mynewt/shared_invite/enQtNjA1MTg0NzgyNzg3LTcyMmZiOGQzOGMxM2U4ODFmMTIwNjNmYTE5Y2UwYjQwZWIxNTE0MTUzY2JmMTEzOWFjYWZkNGM0YmM4MzAxNWQ'
+}