-
Notifications
You must be signed in to change notification settings - Fork 365
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Rework documentation with JVM based site generator and mdoc #2529
Comments
A couple months back I did a quick experiment and converted RSTs and the site to markdown and docusaurus: https://new-scala-native-website.surge.sh/ Usage of mdoc will be complicated by the fact that SN will need a special modifier, and a couple of hacks (adding dependency on the SN libs) to make it compile-only. Execution of mdoc snippets will be difficult as you need to link, execute, embed output etc. I'm all for a face lift for the site (my vote is for docusaurus because it integrates better with Algolia for search) and making it easier to build. Really really like the look of ScalaCenter's AoC site: https://scalacenter.github.io/scala-advent-of-code/ |
My heard that Akka also uses Algolia for search as well - https://akka.io/docs/ I was hoping that no dependencies would need to be installed so it would be easy for contributors, that Is why I was thinking of a Scala/Java/sbt solution. |
For completeness, there's always the option of doing your own thing with scalatags or scalatex. (Or Twirl...) I wonder if mdoc exposes its core functionality as a function that you can pass a block of code with modifiers and get back the result. Laika looks like the most hackable and "hookable" (i.e. if you need something it doesn't provide, easiest to add on top of it rather than having to wait for someone to merge a PR or create a kludgy workaround). My experience with Paradox has been slightly disappointing. But really, I could give better advice if you could someone make a list of requirements or a wishlist of what you need to be able to do in the site |
One issue with Paradox is that it uses Parboiled which on newer JVMs has Jigsaw issues, so you have to add But if you add that to your So now running CI across JVM versions is tricky. (The simplest solution is to build the docs under Java 8.) |
Here's another major one I hit: lightbend/paradox#458 |
I "solved" it... https://github.com/slick/slick/blob/dbb46ac190c7fc10bf39350f2ebe1fe2239fac4d/project/Docs.scala#L116-L128 |
|
@nafg Sorry to hear that. Can we find someone willing to maintain Ornate? |
Sorry this was user error lightbend/paradox#505 |
can you or could the build simply (haha, yes I know, "simply") require JDK 11+, or even require 17+? it's getting to be time to consign Java 8 to the dustbin of history |
🎉 |
Hello, I found scaladoc in dotty has SSG. I think it helps keep build/maintenance simple though It seems we need to wait for it to be stable for a while. |
Said by @keynmol
I think if the setup is really easy and it changes us to markdown then I think this is a win - I am not sure if rst is a great tech or just what was available. Do you know what Scala.js uses? I think we should do something for |
Maybe we could consider the new scaladoc? https://www.tooling-talks.com/episode-15 |
We could use this to combine the separate API docs together? https://github.com/sbt/sbt-unidoc |
The idea here is to make it as easy as working on the project using sbt to build the site - can have better integration than the current site which is hard to get configured.
Some Notes:
Would be combined with
mdoc
for checked code.Paradox with mdoc* - https://tpolecat.github.io/doobie/
Pamflet - https://www.scala-sbt.org/1.x/docs/
Docusaurus with mdoc sites - https://scalameta.org/mdoc/docs/docusaurus.html
Other references:
https://twitter.com/posco/status/1297224648988401664
The text was updated successfully, but these errors were encountered: