Search code examples
javaformattingjavadoc

Javadoc formatting hyperlinks


I can't seem to find out how to format my javadoc to show to show up with links to String rather than the whole path. I've gone through several different guides with no luck.

enter image description here

I was hoping to make it look more in line with how documents at oracle look.


Solution

  • You can run javadoc with the -link or -linkoffline parameter and point it to Oracle's javadoc:

    > javadoc -link https://docs.oracle.com/javase/8/docs/api/ src/*