You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pekko.apache.org by jr...@apache.org on 2023/03/01 12:12:31 UTC

[incubator-pekko-sbt-paradox] branch main updated: added some general apache links to the nav bar (#40)

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

jrudolph pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/incubator-pekko-sbt-paradox.git


The following commit(s) were added to refs/heads/main by this push:
     new 8bee46d  added some general apache links to the nav bar (#40)
8bee46d is described below

commit 8bee46d0db0a8992db3fa73b8558e728d533e789
Author: Johannes Rudolph <jo...@gmail.com>
AuthorDate: Wed Mar 1 13:12:26 2023 +0100

    added some general apache links to the nav bar (#40)
---
 .../main/assets/assets/stylesheets/pekko-theme.css |  7 +++
 theme/src/main/assets/page.st                      |  2 +-
 theme/src/main/assets/partials/extra_nav_links.st  |  7 +++
 theme/src/main/assets/partials/nav.st              | 61 ++++++++++++++++++++++
 4 files changed, 76 insertions(+), 1 deletion(-)

diff --git a/theme/src/main/assets/assets/stylesheets/pekko-theme.css b/theme/src/main/assets/assets/stylesheets/pekko-theme.css
index e2079ce..813a6c5 100644
--- a/theme/src/main/assets/assets/stylesheets/pekko-theme.css
+++ b/theme/src/main/assets/assets/stylesheets/pekko-theme.css
@@ -5,3 +5,10 @@ select.supergroup {
     margin: 1rem;
     padding: 0.5rem;
 }
+
+ul.md-nav__links li {
+    display: inline;
+}
+ul.md-nav__links li a {
+    display: inline;
+}
diff --git a/theme/src/main/assets/page.st b/theme/src/main/assets/page.st
index c319f21..d49bdaf 100644
--- a/theme/src/main/assets/page.st
+++ b/theme/src/main/assets/page.st
@@ -1,5 +1,5 @@
 $!
-  Adopted from paradox-material-theme version 0.6.0 to include more scripts.
+  Adapted from paradox-material-theme version 0.6.0 to include more scripts.
 
   Copyright (c) 2016-2018 Martin Donath <ma...@squidfunk.com>
   Copyright (c) 2017-2018 Jonas Fonseca <jo...@gmail.com>
diff --git a/theme/src/main/assets/partials/extra_nav_links.st b/theme/src/main/assets/partials/extra_nav_links.st
new file mode 100644
index 0000000..049e75b
--- /dev/null
+++ b/theme/src/main/assets/partials/extra_nav_links.st
@@ -0,0 +1,7 @@
+<ul class="md-nav__list md-nav__links">
+      <li class="md-nav__item"><a href="https://apache.org"><i class="md-icon">link</i> Apache Software Foundation</a></li>
+      <li class="md-nav__item"><a href="https://apache.org/licenses/"><i class="md-icon">link</i>&nbsp;License</a></li>
+      <li class="md-nav__item"><a href="https://apache.org/security/"><i class="md-icon">link</i>&nbsp;Security</a></li>
+      <li class="md-nav__item"><a href="https://www.apache.org/foundation/sponsorship.html"><i class="md-icon">link</i>&nbsp;Donate</a></li>
+      <li class="md-nav__item"><a href="https://www.apache.org/foundation/thanks.html"><i class="md-icon">link</i>&nbsp;Thanks</a></li>
+</ul>
diff --git a/theme/src/main/assets/partials/nav.st b/theme/src/main/assets/partials/nav.st
new file mode 100644
index 0000000..a30fdac
--- /dev/null
+++ b/theme/src/main/assets/partials/nav.st
@@ -0,0 +1,61 @@
+$!
+  Adapted from paradox-material-theme version 0.6.0
+
+  Copyright (c) 2016-2018 Martin Donath <ma...@squidfunk.com>
+  Copyright (c) 2017-2018 Jonas Fonseca <jo...@gmail.com>
+
+  Permission is hereby granted, free of charge, to any person obtaining a copy
+  of this software and associated documentation files (the "Software"), to
+  deal in the Software without restriction, including without limitation the
+  rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
+  sell copies of the Software, and to permit persons to whom the Software is
+  furnished to do so, subject to the following conditions:
+
+  The above copyright notice and this permission notice shall be included in
+  all copies or substantial portions of the Software.
+
+  THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+  IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+  FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE
+  AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+  LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
+  FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
+  IN THE SOFTWARE.
+!$
+<nav class="md-nav md-nav--primary" data-md-level="0" style="visibility: hidden">
+  <label class="md-nav__title md-nav__title--site" for="drawer">
+    <a href="$page.home.href$" title="$page.home.title$" class="md-nav__button md-logo">
+    <span class="md-nav__button md-logo">
+      $ if (page.properties.("material.logo.icon")) $
+        <i class="md-icon">$page.properties.("material.logo.icon")$</i>
+      $ else $
+        $ if (page.properties.("material.logo.uri")) $
+          <img src="$page.properties.("material.logo.uri")$" width="24" height="24">
+        $ else $
+          <img src="$page.base$$page.properties.("material.logo")$" width="24" height="24">
+        $endif$
+      $endif$
+    </a>
+    <a href="$page.home.href$" title="$page.home.title$">
+      $page.home.title$
+    </a>
+  </label>
+  $ if (page.properties.("material.repo")) $
+    <div class="md-nav__source">
+      $source()$
+    </div>
+  $ endif $
+  $page.groups$
+  $page.navigation$
+
+  $toc()$
+
+  $extra_nav_links()$
+</nav>
+<ul style="display: none">
+  <li class="md-nav__item md-version" id="project.version">
+    <label class="md-nav__link" for="__version">
+      <i class="md-icon" title="Version">label_outline</i> $page.properties.("project.version.short")$
+    </label>
+  </li>
+</ul>


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@pekko.apache.org
For additional commands, e-mail: commits-help@pekko.apache.org