If a project is named foo
, I want to publish Javadocs for different versions separate directories, like:
me.github.io/foo/1.0/apidocs/
me.github.io/foo/2.0/apidocs/
The similar problem is discussed here: https://github.com/github/maven-plugins/issues/22 but it doesn't seem that the problem is solved
I use javadoc.io for hosting javadoc for my open source projects on Github, and then link to that from the readme.md and github pages (e.g. here is the javdoc for the latest version of one of my projects : http://www.javadoc.io/doc/com.aol.simplereact/simple-react/0.99.2).
It's simple enough to set up. Once you've released to Maven Central or bintray (including your sources) browse to
http://www.javadoc.io/doc/<group id>/<artefact id>/<version>
That will get your library added to the system and it should download the javadoc and add it to the site within a day (sometimes immediately).
It's better than managing the process yourself, and it is guaranteed to match the actual version of the code that people are using (and the source they'll see in their IDEs), as it is downloaded from the same version repo in Maven Central. (If you manage your own, the possibility of uploading subtely different versions to Maven Central and your hosting site emerges).
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With