You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am currently integrating documentation in my project using sbt-paradox and following alpakka's https://doc.akka.io/docs/alpakka/current/index.html documentation as a rough guide and I ended up using sbt-paradox-project-info. When integrating sbt-paradox-project-info when using levels (which is currently a mandatory setting) I noticed that the generated documentation includes hardocded links to lightbends website (i.e. https://developer.lightbend.com/docs/introduction/#community-driven).
Obviously in my case I don't want my project to reference lightbend since it has nothing to do with lightbend but currently that configuration is hardcoded here
s"${glossary("eol", "End-of-Life")}, it is not recommended to use this project any more."
}
deffromString(s: String):ReadinessLevel= s match {
case"Supported"=>Supported
case"Certified"=>Certified
case"Incubating"=>Incubating
case"CommunityDriven"=>CommunityDriven
case"EndOfLife"=>EndOfLife
case other =>thrownewIllegalArgumentException(s"unknown readiness level: $other")
}
}
.
Ideally the actual values for ReadinessLevel should be configured either in build.sbt or the project/project-info.conf and by default they shouldn't have any reference to lightbend. I guess specifically in lightbend/akkas case you can then create a sbt-lightbend-paradox plugin which includes sbt-paradox-project-info and sets the various lightbend related values there. https://github.com/akka/akka-paradox is another option to use however my impressions is that project is specifically for the praadox theme
The text was updated successfully, but these errors were encountered:
mdedetrich
changed the title
Remove hardcoded references to Lightbend for ReadinessLevel
Make hardcoded references to Lightbend for ReadinessLevel configurable
Mar 10, 2022
Great that you find this structured way to have standardised project information useful.
I guess the simplest solution would be to change the readiness level to optional. That wouldn't change anything for the current use in our Akka projects.
I still think that design wise it should be configurable but for our use case making it optional would at least unblock us from using sbt-paradox-project-info
I am currently integrating documentation in my project using sbt-paradox and following alpakka's https://doc.akka.io/docs/alpakka/current/index.html documentation as a rough guide and I ended up using sbt-paradox-project-info. When integrating sbt-paradox-project-info when using
levels
(which is currently a mandatory setting) I noticed that the generated documentation includes hardocded links to lightbends website (i.e. https://developer.lightbend.com/docs/introduction/#community-driven).Obviously in my case I don't want my project to reference lightbend since it has nothing to do with lightbend but currently that configuration is hardcoded here
sbt-paradox-project-info/src/main/scala/com/lightbend/paradox/projectinfo/model.scala
Lines 36 to 68 in 65c5213
Ideally the actual values for
ReadinessLevel
should be configured either inbuild.sbt
or theproject/project-info.conf
and by default they shouldn't have any reference to lightbend. I guess specifically in lightbend/akkas case you can then create asbt-lightbend-paradox
plugin which includessbt-paradox-project-info
and sets the various lightbend related values there. https://github.com/akka/akka-paradox is another option to use however my impressions is that project is specifically for the praadox themeThe text was updated successfully, but these errors were encountered: