How to change javadoc default stylesheet?

Is there a command line option to modify the stylesheet file created by javadoc? I would like to use my own css file. Blue blue is boring by default. I tried the -stylesheet option, but it is not supported.

+6
source share
1 answer

Yes, it is possible and actually quite simple. If you look, for example, at the Mockito javadoc:

If you are using Maven, you can do this by adding some configuration to the maven-javadoc-plugin:

If you are using ant, there is a way to insert this parameter into the javadoc tool:

For more information, there are several discussion topics in the stackoverflow section: JavaDoc Style Sheets

+3
source

All Articles