Skip to Main Content

Java APIs

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Javadoc: including external HTML file that's rendered

605972cf-bada-492c-b1f2-ae4f313b7486Jun 13 2018 — edited Jun 14 2018

I have some long tables that I'd like to link to in the Javadoc, but I don't want them cluttering the main documentation. They are reference only.

I've formatted the tables in an external HTML file. I created a doc-files directory and placed the HTML file there. If I just link to it with an HTML a tag, I just see the HTML code. How can I get the Javadoc compiler to render it?

I know how to include images. I also created an overview.html file and got that to work. But I failed to figure out how to do this. The long tables would be inappropriate in the overview or package descriptions.

I did look at this, which made me think I could do it, but I was unable to figure it out:

https://docs.oracle.com/javase/1.5.0/docs/tooldocs/windows/javadoc.html#unprocessed

Maybe it can be done with JavaScript or a javadoc compiler argument? I tried the former but it didn't work for me -- maybe I did it incorrectly. More info:

bugs.eclipse.org/bugs/show_bug.cgi?id=228608

w3schools.com/howto/howto_html_include.asp

https://docs.oracle.com/javase/1.5.0/docs/tooldocs/windows/javadoc.html#options

I'm creating Javadoc in Eclipse and use ant to compile it. I'm using SE 1.7.

Thanks for any help you can provide.

This post has been answered by 605972cf-bada-492c-b1f2-ae4f313b7486 on Jun 14 2018
Jump to Answer

Comments

Answer

I made the mistake of creating the HTML file in TextEdit instead of another editor, like Xcode:

https://stackoverflow.com/questions/21066660/page-shows-code-not-rendering

https://support.apple.com/kb/ta20406?locale=en_US

That was the entire problem.

Marked as Answer by 605972cf-bada-492c-b1f2-ae4f313b7486 · Sep 27 2020
1 - 1
Locked Post
New comments cannot be posted to this locked post.

Post Details

Locked on Jul 12 2018
Added on Jun 13 2018
1 comment
214 views