You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pekko.apache.org by sa...@apache.org on 2024/02/28 13:19:36 UTC
(incubator-pekko-sbt-paradox) branch main updated: Overriding source.st excluding the data-md-source attribute. (#121)
This is an automated email from the ASF dual-hosted git repository.
samueler 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 5e25566 Overriding source.st excluding the data-md-source attribute. (#121)
5e25566 is described below
commit 5e25566b13fc4e7e844c0c706aa109750e91ae91
Author: Samuele Resca <sa...@gmail.com>
AuthorDate: Wed Feb 28 13:19:32 2024 +0000
Overriding source.st excluding the data-md-source attribute. (#121)
* Overriding source.st excluding the data-md-source attribute.
* Updating LICENSE file + Adding newline to source.st
---
LICENSE | 1 +
theme/src/main/assets/partials/source.st | 35 ++++++++++++++++++++++++++++++++
2 files changed, 36 insertions(+)
diff --git a/LICENSE b/LICENSE
index 059dd33..3a5d37f 100644
--- a/LICENSE
+++ b/LICENSE
@@ -209,6 +209,7 @@ which was released under an MIT license <https://github.com/sbt/sbt-paradox-mate
- theme/src/main/assets/assets/javascripts/paradox-material-theme.js
- theme/src/main/assets/partials/footer.st
- theme/src/main/assets/partials/nav.st
+- theme/src/main/assets/partials/source.st
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/source.st b/theme/src/main/assets/partials/source.st
new file mode 100644
index 0000000..067b279
--- /dev/null
+++ b/theme/src/main/assets/partials/source.st
@@ -0,0 +1,35 @@
+$!
+ 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.
+!$
+<!-- Adapted from sbt-paradox-material-theme version 0.6.0 -->
+<!-- https://github.com/sbt/sbt-paradox-material-theme/blob/2d57fe0567ea9fe7e8de14faef4fa777841d505a/theme/src/main/assets/partials/source.st -->
+<!-- It removes the data-md-source attribute so that we don't perform any 3rd party request to GH -->
+<a href="$page.properties.("material.repo")$"
+ title="Go to repository"
+ class="md-source">
+ <div class="md-source__icon">
+ <i class="fa fa-$page.properties.("material.repo.type")$"></i>
+ </div>
+ <div class="md-source__repository">
+ $page.properties.("material.repo.name"); null="'material.repo.name' not defined"$
+ </div>
+</a>
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@pekko.apache.org
For additional commands, e-mail: commits-help@pekko.apache.org