# HG changeset patch # User mr # Date 1497889242 -7200 # Node ID 88a3b10827779a4a216ff5b373125c17631584ff # Parent f21f9c907adfc6b2b08873890866ba111d126a3a 8182408: Simplify the API-specification overview page Reviewed-by: erikj, mchung, jrose, alanb diff -r f21f9c907adf -r 88a3b1082777 make/Docs.gmk --- a/make/Docs.gmk Sat Jun 17 08:02:30 2017 +0100 +++ b/make/Docs.gmk Mon Jun 19 18:20:42 2017 +0200 @@ -116,9 +116,9 @@ # General text snippets FULL_COMPANY_NAME := Oracle and/or its affiliates -COMPANY_ADDRESS := 500 Oracle Parkway
Redwood Shores, CA 94065 USA +COMPANY_ADDRESS := 500 Oracle Parkway, Redwood Shores, CA 94065 USA -JAVA_PLATFORM := Java™ Platform +JAVA_PLATFORM := Java Platform ifeq ($(IS_DRAFT), true) DRAFT_MARKER_STR :=
DRAFT $(VERSION_STRING) @@ -127,46 +127,44 @@ else DRAFT_MARKER_TITLE := [build $(VERSION_BUILD)] endif - DRAFT_TEXT := Please note that the specifications and other information \ - contained herein are not final and are subject to change. The \ - information is being made available to you solely for purpose of \ - evaluation. + DRAFT_TEXT := This specification is not final and is subject to change. \ + Use is subject to license terms. endif JAVADOC_BOTTOM := \ - \ - Submit a bug or feature
\ - For further API reference and developer documentation, see \ + Report a bug or suggest an enhancement
\ + For further API reference and developer documentation see the \ Java SE \ - Documentation. That documentation contains more detailed, \ - developer-targeted descriptions, with conceptual overviews, definitions \ + Documentation, which contains more detailed, \ + developer-targeted descriptions with conceptual overviews, definitions \ of terms, workarounds, and working code examples.
\ Java is a trademark or registered trademark of $(FULL_COMPANY_NAME) in \ the US and other countries.
\ Copyright \ - © 1993, $(COPYRIGHT_YEAR), $(FULL_COMPANY_NAME). \ - $(COMPANY_ADDRESS). All rights reserved. \ - Use is subject to license terms. Also see the \ + © 1993, $(COPYRIGHT_YEAR), $(FULL_COMPANY_NAME), \ + $(COMPANY_ADDRESS).
All rights reserved. \ + Use is subject to license terms and the \ documentation redistribution policy. \ - $(DRAFT_MARKER_STR)
+ $(DRAFT_MARKER_STR) + JAVADOC_TOP := \ -
$(DRAFT_TEXT)
+
$(DRAFT_TEXT)
################################################################################ # JDK javadoc titles/text snippets -JDK_SHORT_NAME := JDK™ $(VERSION_SPECIFICATION) -JDK_LONG_NAME := Standard Edition Development Kit (JDK™) $(VERSION_SPECIFICATION) +JDK_SHORT_NAME := Java SE $(VERSION_SPECIFICATION) & JDK $(VERSION_SPECIFICATION) +JDK_LONG_NAME := Java® Platform, Standard Edition \ + & Java Development Kit ################################################################################ # Java SE javadoc titles/text snippets -JAVASE_SHORT_NAME := SE $(VERSION_SPECIFICATION) -JAVASE_LONG_NAME := Standard Edition $(VERSION_SPECIFICATION) +JAVASE_SHORT_NAME := Java SE $(VERSION_SPECIFICATION) +JAVASE_LONG_NAME := Java® Platform, Standard Edition ################################################################################ # Functions @@ -199,23 +197,19 @@ $1_OVERVIEW_TEXT := \ \ \ -

This document is the API specification for $$($1_FULL_NAME).

\ # ifneq ($$($1_GROUPS),) $1_OVERVIEW_TEXT += \ -
\ - # +

This document is divided into \ + $$(subst 2,two,$$(subst 3,three,$$(words $$($1_GROUPS)))) sections:

\ +
\ + # $1_OVERVIEW_TEXT += $$(foreach g, $$($1_GROUPS), \ -
$$($$g_GROUP_NAME)
\ -
$$($$g_GROUP_DESCRIPTION) \ +
$$($$g_GROUP_NAME)
\ +
$$($$g_GROUP_DESCRIPTION) \ ) $1_OVERVIEW_TEXT += \ -
\ - # - endif - ifeq ($$(IS_DRAFT), true) - $1_OVERVIEW_TEXT += \ -

$$(DRAFT_TEXT)

\ +
\ # endif $1_OVERVIEW_TEXT += \ @@ -273,13 +267,16 @@ $1_OPTIONS += -Xdoclint:all,$$(call CommaList, $$(addprefix -, \ $$(JAVADOC_DISABLED_DOCLINT))) - $1_FULL_NAME := $$(JAVA_PLATFORM), $$($1_LONG_NAME) \ - $$(DRAFT_MARKER_TITLE) - $1_DOC_TITLE := $$($1_FULL_NAME)
API Specification - $1_WINDOW_TITLE := $$(subst ™,,$$(JAVA_PLATFORM) $$($1_SHORT_NAME)) \ + $1_DOC_TITLE := $$($1_LONG_NAME)
Version $$(VERSION_SPECIFICATION) API Specification + $1_WINDOW_TITLE := $$(subst &,&,$$($1_SHORT_NAME)) \ $$(DRAFT_MARKER_TITLE) - $1_HEADER_TITLE := $$(JAVA_PLATFORM)
$$($1_SHORT_NAME)
\ - $$(DRAFT_MARKER_STR) + ifeq ($(VERSION_IS_GA), true) # Workaround stylesheet bug + $1_HEADER_PAD := 14 + else + $1_HEADER_PAD := 9 + endif + $1_HEADER_TITLE :=
$$($1_SHORT_NAME) \ + $$(DRAFT_MARKER_STR)
$1_OPTIONS += -doctitle '$$($1_DOC_TITLE)' $1_OPTIONS += -windowtitle '$$($1_WINDOW_TITLE)' @@ -373,18 +370,18 @@ JavaSE_GROUP_MODULES := $(call ColonList, $(sort java.se.ee \ $(call FindTransitiveIndirectDepsForModules, java.se.ee))) JavaSE_GROUP_DESCRIPTION := \ - The Java Platform, Standard Edition ("Java SE") APIs define the core Java \ - platform for general-purpose computing. These APIs are in modules with \ - names starting with the string "java.". \ + The Java Platform, Standard Edition (Java SE) APIs define the core Java \ + platform for general-purpose computing. These APIs are in modules whose \ + names start with {@code java}. \ # JDK_GROUPS += JavaSE JDK_GROUP_NAME := JDK JDK_GROUP_MODULES := jdk.* JDK_GROUP_DESCRIPTION := \ - The Java Development Kit ("JDK") APIs define an implementation of the Java \ - SE Platform which may include platform-specific details. These APIs are in \ - modules with names starting with the string "jdk.". \ + The Java Development Kit (JDK) APIs are specific to the JDK and will not \ + necessarily be available in all implementations of the Java SE Platform. \ + These APIs are in modules whose names start with {@code jdk}. \ # JDK_GROUPS += JDK @@ -395,9 +392,9 @@ JavaFX_GROUP_NAME := JavaFX JavaFX_GROUP_MODULES := javafx.* JavaFX_GROUP_DESCRIPTION := \ - The JavaFX APIs define a set of user interface (UI) controls, graphics, \ + The JavaFX APIs define a set of user-interface controls, graphics, \ media, and web packages for developing rich client applications. These \ - APIs are in modules with names starting with the string "javafx.". \ + APIs are in modules whose names start with {@code javafx}. \ # JDK_GROUPS += JavaFX endif @@ -419,7 +416,7 @@ ################################################################################ # Setup generation of the Java SE API documentation (javadoc + modulegraph) -# The Java SE module scope is just java.se.ee and it's transitive indirect +# The Java SE module scope is just java.se.ee and its transitive indirect # exports. JAVASE_MODULES := java.se.ee