diff --git a/make/Docs.gmk b/make/Docs.gmk index 4be03afdb99..295cf7d9119 100644 --- a/make/Docs.gmk +++ b/make/Docs.gmk @@ -261,6 +261,7 @@ endef # SHORT_NAME - The short name of this documentation collection # LONG_NAME - The long name of this documentation collection # TARGET_DIR - Where to store the output +# OTHER_VERSIONS - URL for other page listing versions # SetupApiDocsGeneration = $(NamedParamsMacroTemplate) define SetupApiDocsGenerationBody @@ -297,10 +298,16 @@ define SetupApiDocsGenerationBody # Ignore the doclint warnings in the W3C DOM package $1_OPTIONS += -Xdoclint/package:-org.w3c.* + ifneq ($$($1_OTHER_VERSIONS), ) + $1_LINKED_SHORT_NAME = $$($1_SHORT_NAME) + else + $1_LINKED_SHORT_NAME = $$($1_SHORT_NAME) + endif + $1_DOC_TITLE := $$($1_LONG_NAME)
Version $$(VERSION_SPECIFICATION) API \ Specification $1_WINDOW_TITLE := $$(subst &,&,$$($1_SHORT_NAME))$$(DRAFT_MARKER_TITLE) - $1_HEADER_TITLE :=
$$($1_SHORT_NAME) \ + $1_HEADER_TITLE :=
$$($1_LINKED_SHORT_NAME) \ $$(DRAFT_MARKER_STR)
$1_OPTIONS += -doctitle '$$($1_DOC_TITLE)' @@ -438,6 +445,7 @@ $(eval $(call SetupApiDocsGeneration, JDK_API, \ SHORT_NAME := $(JDK_SHORT_NAME), \ LONG_NAME := $(JDK_LONG_NAME), \ TARGET_DIR := $(DOCS_OUTPUTDIR)/api, \ + OTHER_VERSIONS := $(OTHER_JDK_VERSIONS_URL), \ )) # Targets generated are returned in JDK_API_JAVADOC_TARGETS and diff --git a/make/conf/javadoc.conf b/make/conf/javadoc.conf index df25452533a..6c92e40329a 100644 --- a/make/conf/javadoc.conf +++ b/make/conf/javadoc.conf @@ -28,3 +28,4 @@ BUG_SUBMIT_URL=https://bugreport.java.com/bugreport/ COPYRIGHT_URL=legal/copyright.html LICENSE_URL=https://www.oracle.com/java/javase/terms/license/java$(VERSION_NUMBER)speclicense.html REDISTRIBUTION_URL=https://www.oracle.com/technetwork/java/redist-137594.html +OTHER_JDK_VERSIONS_URL=https://docs.oracle.com/en/java/javase/index.html