Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

javadoc @docRoot

Tags:

java

javadoc

Can anyone show me an example of that javadoc tag?

I don't understand very well how to use it in the code

like image 456
xdevel2000 Avatar asked Feb 05 '26 22:02

xdevel2000


1 Answers

The javadoc documentation has a couple good examples. It always points to the root of the documentation, so if there's something you want to include on every page, you use it to find the javadoc root, since a relative path would be different from page to page

For example, to include your company's logo at the top of every generated documentation page, you might put logo.png in the root of the documentation and then add:

<img src="{@docRoot}/logo.png">

to the javadoc header

like image 145
Michael Mrozek Avatar answered Feb 07 '26 12:02

Michael Mrozek



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!