You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pekko.apache.org by fa...@apache.org on 2023/06/30 10:58:26 UTC

[incubator-pekko-site] branch main updated: latest paradox plugin

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

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


The following commit(s) were added to refs/heads/main by this push:
     new 2acb3f1c latest paradox plugin
2acb3f1c is described below

commit 2acb3f1c55ae3ac2a359e98654761f843c6d819f
Author: PJ Fanning <pj...@users.noreply.github.com>
AuthorDate: Fri Jun 30 11:58:19 2023 +0100

    latest paradox plugin
---
 content/assets/javascripts/groups.js               |  4 +--
 .../assets/javascripts/paradox-material-theme.js   |  2 +-
 content/assets/stylesheets/pekko-theme.css         | 39 ++++++++++++++++++++++
 project/build.properties                           |  2 +-
 project/plugins.sbt                                |  2 +-
 5 files changed, 44 insertions(+), 5 deletions(-)

diff --git a/content/assets/javascripts/groups.js b/content/assets/javascripts/groups.js
index 145ceaf8..ceaa4d5c 100644
--- a/content/assets/javascripts/groups.js
+++ b/content/assets/javascripts/groups.js
@@ -1,5 +1,5 @@
 /*!
- Adopted from original paradox generic theme to work with paradox-material-theme
+ Adapted from original paradox generic theme to work with paradox-material-theme
  https://github.com/lightbend/paradox/blob/8e30c341f1f8351a19b71599219d2f636ba68eb4/themes/generic/src/main/assets/js/groups.js
  licensed under Apache License 2.0.
 */
@@ -45,7 +45,7 @@ $(function() {
     return cookieAttr ? cookieAttr.split("=")[1] : "";
   }
 
-  $("dl").has("dt").each(function() {
+  $("dl").has("dt.mdc-tab").each(function() {
     var dl = $(this);
     dl.addClass("tabbed");
     var dts = dl.find("dt");
diff --git a/content/assets/javascripts/paradox-material-theme.js b/content/assets/javascripts/paradox-material-theme.js
index 550ae3b6..1854469a 100644
--- a/content/assets/javascripts/paradox-material-theme.js
+++ b/content/assets/javascripts/paradox-material-theme.js
@@ -1,5 +1,5 @@
 /*!
- Adopted from paradox-material-theme 0.6.0 to simplify switching to a tab.
+ Adapted from paradox-material-theme 0.6.0 to simplify switching to a tab.
 
  Paradox Material Theme
  Copyright (c) 2017 Jonas Fonseca
diff --git a/content/assets/stylesheets/pekko-theme.css b/content/assets/stylesheets/pekko-theme.css
index bdc90429..54cd2d84 100644
--- a/content/assets/stylesheets/pekko-theme.css
+++ b/content/assets/stylesheets/pekko-theme.css
@@ -21,3 +21,42 @@ ul.md-nav__links li a {
     padding:10px;
     width:380px
 }
+
+/* fix paradox snippet links to fit with material docs style */
+
+/* material docs brings its own copy button, remove ours */
+.snippet-button.copy-snippet { display: none; }
+
+/* style our "link to source" similar to material docs one */
+.snippet-button.go-to-source {
+  font-family: "Material Icons";
+  position: absolute;
+  top: 0.6rem;
+  right: 2.6rem;
+  width: 2.8rem;
+  height: 2.8rem;
+  border-radius: 0.2rem;
+  font-size: 1.6rem;
+  cursor: pointer;
+  z-index: 1;
+  -webkit-backface-visibility: hidden;
+          backface-visibility: hidden;
+}
+
+/* remove link text */
+.snippet-button.go-to-source span { display: none; }
+
+/* and replace with button similar to material copy one */
+.snippet-button.go-to-source::before {
+    transition: color   0.25s, opacity 0.25s;
+    color: rgba(0, 0, 0, 0.07);
+    content: "\E157";
+}
+
+pre:hover .snippet-button.go-to-source::before {
+      color: rgba(0, 0, 0, 0.54);
+}
+
+a.snippet-button.go-to-source:hover::before, .snippet-button.go-to-source:active::before {
+  color: #ff9100;
+}
diff --git a/project/build.properties b/project/build.properties
index 40b3b8e7..3c0b78a7 100644
--- a/project/build.properties
+++ b/project/build.properties
@@ -1 +1 @@
-sbt.version=1.9.0
+sbt.version=1.9.1
diff --git a/project/plugins.sbt b/project/plugins.sbt
index c96690b4..adcccaba 100644
--- a/project/plugins.sbt
+++ b/project/plugins.sbt
@@ -1,4 +1,4 @@
 // allow access to snapshots for pekko-sbt-paradox
 resolvers += "Apache Nexus Snapshots".at("https://repository.apache.org/content/repositories/snapshots/")
 
-addSbtPlugin("org.apache.pekko" % "pekko-sbt-paradox" % "0.0.0+38-68da3106-SNAPSHOT")
+addSbtPlugin("org.apache.pekko" % "pekko-sbt-paradox" % "0.0.0+43-d9643c78-SNAPSHOT")


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