-
Notifications
You must be signed in to change notification settings - Fork 49
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
Publish the website to sonatype/maven #317
base: main
Are you sure you want to change the base?
Conversation
This is a surprisingly low amount of code to get it running, neat. I like that the docs would be an immutable artifact along with the code artifacts. Do you know off hand if this addresses any of the remaining checklist items?
|
Thanks! Yes, all credit to Laika again for already doing the right thing with Good question, let me actually go through Ross's entire checklist: Table Stakes
Nice to have
Extra credit
|
Gah, I'm not happy with anything after a953d7a. Everything got much more entangled and complicated, hmm. |
Another strategy for #100. /cc @rossabaker
The idea is simple, and inspired by the success we've had publishing unidocs. In this case, we package up the Laika-generated website as a Javadoc artifact and publish it. Then, stable versions can be browsed at javadoc.io (with their handy version-picker!) and snapshots via Sonatype's own hosting infrastructure, like so:
https://s01.oss.sonatype.org/service/local/repositories/snapshots/archive/org/typelevel/sbt-typelevel-website_2.12/0.4.12-20-fb939ca-SNAPSHOT/sbt-typelevel-website_2.12-0.4.12-20-fb939ca-SNAPSHOT-javadoc.jar/!/index.html
The motivation is that setting up and maintaining versioned documentation is hard, even with Laika's integrated support for this. It's a lot of overhead for smaller projects that probably have only one active version at a time, but want to keep old documentation available as well.
Now, we have a stable destination to host these old versions of the site. Meanwhile, the current, live version of the site can be hosted on GH pages.
Thoughts?