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 f243b6d add settings for some customization options (#19)
f243b6d is described below
commit f243b6df1e04456479a88fc65064f9b07c29ea05
Author: Johannes Rudolph <[email protected]>
AuthorDate: Fri Feb 10 09:51:48 2023 +0100
add settings for some customization options (#19)
Fixes https://github.com/apache/incubator-pekko-sbt-paradox/issues/13
---
.../org/apache/pekko/PekkoParadoxPlugin.scala | 26 ++++++++++++++--------
1 file changed, 17 insertions(+), 9 deletions(-)
diff --git a/plugin/src/main/scala/org/apache/pekko/PekkoParadoxPlugin.scala
b/plugin/src/main/scala/org/apache/pekko/PekkoParadoxPlugin.scala
index 8a60bc4..9fa2fe5 100644
--- a/plugin/src/main/scala/org/apache/pekko/PekkoParadoxPlugin.scala
+++ b/plugin/src/main/scala/org/apache/pekko/PekkoParadoxPlugin.scala
@@ -11,6 +11,12 @@ object PekkoParadoxPlugin extends AutoPlugin {
import ParadoxPlugin.autoImport._
+ object autoImport {
+ val pekkoParadoxCopyright = settingKey[String]("Copyright text to use in
docs footer")
+ val pekkoParadoxGithub = settingKey[String]("Link to Github repository")
+ }
+ import autoImport._
+
val version = ParadoxPlugin.readProperty("pekko-paradox.properties",
"pekko.paradox.version")
override def requires = ParadoxPlugin
@@ -25,18 +31,20 @@ object PekkoParadoxPlugin extends AutoPlugin {
paradoxNavigationDepth := 1,
paradoxNavigationExpandDepth := Some(1),
paradoxNavigationIncludeHeaders := true,
- Compile / paradoxMaterialTheme ~= {
- _
+ pekkoParadoxCopyright in Global :=
+ """Copyright © 2022, 2023 <a href="https://apache.org">The Apache
Software Foundation</a>, Licensed under the Apache License, Version 2.0.
+ | This product contains significant parts that were originally based
on software from Lightbend (<a href="https://akka.io/">Akka</a>).
+ | Copyright (C) 2009-2022 Lightbend Inc.
<https://www.lightbend.com> Apache Pekko is derived from Akka 2.6.x,
+ | the last version that was distributed under the Apache License,
Version 2.0 License.""".stripMargin,
+ Compile / paradoxMaterialTheme := {
+ (Compile / paradoxMaterialTheme).value
.withLogo("assets/images/pekko_logo.png")
.withFavicon("assets/images/pekko_favicon.png")
- .withCopyright(
- """Copyright © 2022, 2023 <a href="https://apache.org">The Apache
Software Foundation</a>, Licensed under the Apache License, Version 2.0.
- | This product contains significant parts that were originally
based on software from Lightbend (<a href="https://akka.io/">Akka</a>).
- | Copyright (C) 2009-2022 Lightbend Inc.
<https://www.lightbend.com> Apache Pekko is derived from Akka 2.6.x,
- | the last version that was distributed under the Apache License,
Version 2.0 License.""".stripMargin) // FIXME: figure out exact text
+ .withCopyright(pekkoParadoxCopyright.value)
+ .withRepository(uri(pekkoParadoxGithub.value))
})
def pekkoParadoxSettings(config: Configuration): Seq[Setting[_]] =
pekkoParadoxGlobalSettings ++ inConfig(config)(Seq(
- managedSourceDirectories in paradoxTheme +=
- (WebKeys.webJarsDirectory in Assets).value / (WebKeys.webModulesLib in
Assets).value / "paradox-material-theme"))
+ paradoxTheme / managedSourceDirectories +=
+ (Assets / WebKeys.webJarsDirectory).value / (Assets /
WebKeys.webModulesLib).value / "paradox-material-theme"))
}
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]