Search code examples
javadocgithub-pages

how to link to latest version of a class/method on javadoc.io


I want to link my github-java-project-wiki pages to methods of the javadoc of the lib via http://javadoc.io

The project wiki is about geo uri dataformats which should be linked to class-methods uesd to process the format.

Example there should be a link between

My problem: the link to class/method contains a version-number "1.1.4"

My question: Is it possible to have a link to the latest version instead of a concrete version?

On artifact level i can link to

which will redirect to the latest version

But i donot know how to do this on class level

Alternativly is there something like a placeholder-variable in github-wiki so i can write

http://static.javadoc.io/com.github.k3b/k3b-geoHelper/${VERSIONNUMBER}/de/k3b/geo/api/IGeoPointInfo.html#getLatitude()

Solution

  • I contacted the owners of javadoc.io and they just deployed the new feature. You link like this: http://javadoc.io/page/org.mockito/mockito-all/latest/org/mockito/Mockito.html

    I use this feature in Mockito framework to avoid hosting docs in gh-pages and simplify greatly Mockito's automated release process.

    javadoc.io is fantastic!