Skip to content

Commit

Permalink
use pekko theme (#26)
Browse files Browse the repository at this point in the history
  • Loading branch information
pjfanning authored Dec 18, 2023
1 parent 80fe42e commit 35bafae
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 14 deletions.
5 changes: 4 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Pekko Connectors samples
# Apache Pekko Connectors samples

Samples for [Pekko Connectors](https://pekko.apache.org/docs/pekko-connectors/current/).

The samples should run with Java 8 or above. If you are building the docs using [Paradox](https://developer.lightbend.com/docs/paradox/current/index.html)
then you will need to use Java 11.
27 changes: 17 additions & 10 deletions docs/build.sbt
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@

ThisBuild / scalaVersion := "2.13.12"

enablePlugins(AkkaParadoxPlugin, ParadoxSitePlugin)
resolvers += Resolver.ApacheMavenSnapshotsRepo

enablePlugins(ParadoxPlugin, PekkoParadoxPlugin, ParadoxSitePlugin)

name := "Pekko Connectors Samples"
previewFixedPort := Some(8085)
Expand All @@ -14,10 +16,15 @@ version := {
}
isSnapshot := true

pekkoParadoxGithub := Some("https://github.com/apache/incubator-pekko-site")

// disabled display versioning, in other words: hidden unnecessary version.
paradoxProperties += ("disabled.versioning.display" -> "true")

val FtpToFile = config("ftp-to-file")
ParadoxPlugin.paradoxSettings(FtpToFile)
ParadoxSitePlugin.paradoxSettings(FtpToFile)
AkkaParadoxPlugin.akkaParadoxSettings(FtpToFile)
PekkoParadoxPlugin.pekkoParadoxSettings(FtpToFile)
FtpToFile / siteSubdirName := FtpToFile.name
FtpToFile / paradox / sourceDirectory := baseDirectory.value / ".." / s"pekko-connectors-sample-${FtpToFile.name}" / "docs" / "src" / "main" / "paradox"
FtpToFile / paradoxProperties ++= Map(
Expand All @@ -39,7 +46,7 @@ FtpToFile / paradoxGroups := Map("Language" -> Seq("Java", "Scala"))
val HttpCsvToKafka = config("http-csv-to-kafka")
ParadoxPlugin.paradoxSettings(HttpCsvToKafka)
ParadoxSitePlugin.paradoxSettings(HttpCsvToKafka)
AkkaParadoxPlugin.akkaParadoxSettings(HttpCsvToKafka)
PekkoParadoxPlugin.pekkoParadoxSettings(HttpCsvToKafka)
HttpCsvToKafka / siteSubdirName := HttpCsvToKafka.name
HttpCsvToKafka / paradox / sourceDirectory := baseDirectory.value / ".." / s"pekko-connectors-sample-${HttpCsvToKafka.name}" / "docs" / "src" / "main" / "paradox"
HttpCsvToKafka / paradoxProperties ++= Map(
Expand Down Expand Up @@ -69,7 +76,7 @@ HttpCsvToKafka / paradoxGroups := Map("Language" -> Seq("Java", "Scala"))
val JdbcToElasticsearch = config("jdbc-to-elasticsearch")
ParadoxPlugin.paradoxSettings(JdbcToElasticsearch)
ParadoxSitePlugin.paradoxSettings(JdbcToElasticsearch)
AkkaParadoxPlugin.akkaParadoxSettings(JdbcToElasticsearch)
PekkoParadoxPlugin.pekkoParadoxSettings(JdbcToElasticsearch)
JdbcToElasticsearch / siteSubdirName := JdbcToElasticsearch.name
JdbcToElasticsearch / paradox / sourceDirectory := baseDirectory.value / ".." / s"pekko-connectors-sample-${JdbcToElasticsearch.name}" / "docs" / "src" / "main" / "paradox"
JdbcToElasticsearch / paradoxProperties ++= Map(
Expand All @@ -90,7 +97,7 @@ JdbcToElasticsearch / paradoxGroups := Map("Language" -> Seq("Java", "Scala"))
val Jms = config("jms")
ParadoxPlugin.paradoxSettings(Jms)
ParadoxSitePlugin.paradoxSettings(Jms)
AkkaParadoxPlugin.akkaParadoxSettings(Jms)
PekkoParadoxPlugin.pekkoParadoxSettings(Jms)
Jms / siteSubdirName := Jms.name
Jms / paradox / sourceDirectory := baseDirectory.value / ".." / s"pekko-connectors-sample-${Jms.name}" / "docs" / "src" / "main" / "paradox"
Jms / paradoxProperties ++= Map(
Expand All @@ -117,7 +124,7 @@ Jms / paradoxGroups := Map("Language" -> Seq("Java", "Scala"))
val KafkaToElasticsearch = config("kafka-to-elasticsearch")
ParadoxPlugin.paradoxSettings(KafkaToElasticsearch)
ParadoxSitePlugin.paradoxSettings(KafkaToElasticsearch)
AkkaParadoxPlugin.akkaParadoxSettings(KafkaToElasticsearch)
PekkoParadoxPlugin.pekkoParadoxSettings(KafkaToElasticsearch)
KafkaToElasticsearch / siteSubdirName := KafkaToElasticsearch.name
KafkaToElasticsearch / paradox / sourceDirectory := baseDirectory.value / ".." / s"pekko-connectors-sample-${KafkaToElasticsearch.name}" / "docs" / "src" / "main" / "paradox"
KafkaToElasticsearch / paradoxProperties ++= Map(
Expand All @@ -143,7 +150,7 @@ KafkaToElasticsearch / paradoxGroups := Map("Language" -> Seq("Java", "Scala"))
val KafkaToWebsocketClients = config("kafka-to-websocket-clients")
ParadoxPlugin.paradoxSettings(KafkaToWebsocketClients)
ParadoxSitePlugin.paradoxSettings(KafkaToWebsocketClients)
AkkaParadoxPlugin.akkaParadoxSettings(KafkaToWebsocketClients)
PekkoParadoxPlugin.pekkoParadoxSettings(KafkaToWebsocketClients)
KafkaToWebsocketClients / siteSubdirName := KafkaToWebsocketClients.name
KafkaToWebsocketClients / paradox / sourceDirectory := baseDirectory.value / ".." / s"pekko-connectors-sample-${KafkaToWebsocketClients.name}" / "docs" / "src" / "main" / "paradox"
KafkaToWebsocketClients / paradoxProperties ++= Map(
Expand All @@ -169,7 +176,7 @@ KafkaToWebsocketClients / paradoxGroups := Map("Language" -> Seq("Java", "Scala"
val MqttToKafka = config("mqtt-to-kafka")
ParadoxPlugin.paradoxSettings(MqttToKafka)
ParadoxSitePlugin.paradoxSettings(MqttToKafka)
AkkaParadoxPlugin.akkaParadoxSettings(MqttToKafka)
PekkoParadoxPlugin.pekkoParadoxSettings(MqttToKafka)
MqttToKafka / siteSubdirName := MqttToKafka.name
MqttToKafka / paradox / sourceDirectory := baseDirectory.value / ".." / s"pekko-connectors-sample-${MqttToKafka.name}" / "docs" / "src" / "main" / "paradox"
MqttToKafka / paradoxProperties ++= Map(
Expand All @@ -196,7 +203,7 @@ MqttToKafka / paradoxGroups := Map("Language" -> Seq("Java", "Scala"))
val FileToElasticsearch = config("file-to-elasticsearch")
ParadoxPlugin.paradoxSettings(FileToElasticsearch)
ParadoxSitePlugin.paradoxSettings(FileToElasticsearch)
AkkaParadoxPlugin.akkaParadoxSettings(FileToElasticsearch)
PekkoParadoxPlugin.pekkoParadoxSettings(FileToElasticsearch)
FileToElasticsearch / siteSubdirName := FileToElasticsearch.name
FileToElasticsearch / paradox / sourceDirectory := baseDirectory.value / ".." / s"pekko-connectors-sample-${FileToElasticsearch.name}" / "docs" / "src" / "main" / "paradox"
FileToElasticsearch / paradoxProperties ++= Map(
Expand All @@ -218,7 +225,7 @@ FileToElasticsearch / paradoxGroups := Map("Language" -> Seq("Java", "Scala"))
val RotateLogsToFtp = config("rotate-logs-to-ftp")
ParadoxPlugin.paradoxSettings(RotateLogsToFtp)
ParadoxSitePlugin.paradoxSettings(RotateLogsToFtp)
AkkaParadoxPlugin.akkaParadoxSettings(RotateLogsToFtp)
PekkoParadoxPlugin.pekkoParadoxSettings(RotateLogsToFtp)
RotateLogsToFtp / siteSubdirName := RotateLogsToFtp.name
RotateLogsToFtp / paradox / sourceDirectory := baseDirectory.value / ".." / s"pekko-connectors-sample-${RotateLogsToFtp.name}" / "docs" / "src" / "main" / "paradox"
RotateLogsToFtp / paradoxProperties ++= Map(
Expand Down
8 changes: 5 additions & 3 deletions docs/project/plugins.sbt
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
addSbtPlugin("com.lightbend.akka" % "sbt-paradox-akka" % "0.44")
addSbtPlugin("com.typesafe.sbt" % "sbt-site" % "1.4.1")

dependencyOverrides += "org.scala-lang.modules" %% "scala-xml" % "2.2.0"
libraryDependencies += "org.scalameta" %% "scalameta" % "4.4.6"

resolvers += Resolver.ApacheMavenSnapshotsRepo

addSbtPlugin("org.apache.pekko" % "pekko-sbt-paradox" % "1.0.0+8-1d350942-SNAPSHOT")
addSbtPlugin("com.typesafe.sbt" % "sbt-site" % "1.4.1")

0 comments on commit 35bafae

Please sign in to comment.