maxcellent / javadoc.io

Apache License 2.0
98 stars 27 forks source link

Feature request: support publishing Maven plugin documentation #190

Open ascopes opened 3 weeks ago

ascopes commented 3 weeks ago

Not sure if this is the right forum or whether this is already supported. I was hoping to raise this as a discussion rather than an issue but it appears that the tab is disabled for that here.

I have developed a Maven plugin. Right now, I have only got GitHub pages available to host the site generated by ./mvnw site. This is mostly fine but means I cannot easily publish older versions of my documentation permanently.

I am wondering if it would be possible to potentially support me uploading my Maven site within a JAR to Maven Central similar to how JavaDocs are uploaded to there, or failing that allow some kind of API endpoint I can POST a generated site to so that I can make use of javadoc.io to publish the Maven plugin documentation.

Would this be considered reasonable, do you think?

maxcellent commented 3 weeks ago

hi, the maven plugin you are using, is it for central maven repo? If that's the case it is automatically sync to javadoc.io already

ascopes commented 3 weeks ago

yep it is! Do I just visit the URL matching the GAV in that case, or do I need to configure the site artifacts?

Thanks for the quick response

maxcellent commented 3 weeks ago

yes, I believe visiting the URL is enough. Please let me know if this is not the case

ascopes commented 3 weeks ago

So I've just double checked... it appears to be pointing at the JavaDocs themselves rather than the output of ./mvnw site, which was what I was mostly expecting.

Is there a way to publish that output in place of this?