缺少 Javadocs 的 iFrame 视图 JDK 11+
Missing iFrame view for Javadocs JDK 11+
我一直在使用 JavaDocs for JDK 11
但我注意到 iFrame 视图似乎不再可用。
我环顾四周,但看不到任何关于为什么这样做的细节,如果有的话,还有什么替代方案?谁能提供更多细节?
查看 JDK 10
查看 JDK 11
如果其他人有相同的查询,默认情况下不再生成框架。
中对此进行了介绍
In times past, to allow for navigation within API documentation, the standard doclet presented indexes in frames on the left side of the window to allow classes, packages and (more recently) modules to be selected for display in the main body of the window.
More recently, the doclet now supports a "search" feature, which provides a more versatile way of finding items to view. Separately, the doclet is moving towards using HTML 5 (only), and the basic support for frames in HTML 5 is less than it was in HTML 4.
和JDK-8187794等等
Update the javadoc/doclet to generate no frames as a default. A warning should be generated if "--frames" option is specified to generate frames. The support for frames will be removed from a future release.
看来,如果您真的想使用框架,您可以从 JDK src 生成自己的框架并遇到警告,但这会在某个时候被完全删除。
综上所述,习惯了搜索功能,框架javadocs即将淘汰!
我创建了 JANITOR – Java API Navigation Is The Only Rescue 其中:
Inserts a navigation tree for modules, packages and types (interfaces, classes, enums, exceptions, errors, annotations) into the Javadoc pages of Java 11+.
如果您更喜欢 Java 10 和更早版本的 API 文档布局,以及 HTML iframe,那么您可能需要检查一下:https://github.com/climber09/Javadoc-Frames-Generator .这是一项正在进行的工作,所以我欢迎任何反馈。
我一直在使用 JavaDocs for JDK 11
但我注意到 iFrame 视图似乎不再可用。 我环顾四周,但看不到任何关于为什么这样做的细节,如果有的话,还有什么替代方案?谁能提供更多细节?
查看 JDK 10
查看 JDK 11
如果其他人有相同的查询,默认情况下不再生成框架。
中对此进行了介绍In times past, to allow for navigation within API documentation, the standard doclet presented indexes in frames on the left side of the window to allow classes, packages and (more recently) modules to be selected for display in the main body of the window.
More recently, the doclet now supports a "search" feature, which provides a more versatile way of finding items to view. Separately, the doclet is moving towards using HTML 5 (only), and the basic support for frames in HTML 5 is less than it was in HTML 4.
和JDK-8187794等等
Update the javadoc/doclet to generate no frames as a default. A warning should be generated if "--frames" option is specified to generate frames. The support for frames will be removed from a future release.
看来,如果您真的想使用框架,您可以从 JDK src 生成自己的框架并遇到警告,但这会在某个时候被完全删除。
综上所述,习惯了搜索功能,框架javadocs即将淘汰!
我创建了 JANITOR – Java API Navigation Is The Only Rescue 其中:
Inserts a navigation tree for modules, packages and types (interfaces, classes, enums, exceptions, errors, annotations) into the Javadoc pages of Java 11+.
如果您更喜欢 Java 10 和更早版本的 API 文档布局,以及 HTML iframe,那么您可能需要检查一下:https://github.com/climber09/Javadoc-Frames-Generator .这是一项正在进行的工作,所以我欢迎任何反馈。