Including images in javadocs

后端 未结 7 1950
北海茫月
北海茫月 2020-12-14 16:26

I work with a lot of sample test cases that are visual. Is there any convenient way to include them in my Java source and link them in Javadocs, so my IDE can automatically

7条回答
  •  遥遥无期
    2020-12-14 17:08

    As you didn't show any sources, I can only do a glass-ball guess ...

    For any files which are needed for documentation purposes, one should put them in a subdirectory named doc-files of your package directories. These will then be simply copied by Javadoc to the output directory. Then use a relative path in the element.

    I'm not sure if your IDE's Javadoc renderer will do the same, but it is worth a try.

提交回复
热议问题