From a8c2c0eadd6cdbe9853558200a0c1dd3bc4a9833 Mon Sep 17 00:00:00 2001 From: Mandy Chung Date: Tue, 13 Jun 2017 10:44:11 -0700 Subject: [PATCH] 8182029: Make the top-level docs index.html to a HTML-level redirect to the API overview page Reviewed-by: alanb, erikj, ihse --- make/Docs.gmk | 24 ++++++++++-------------- 1 file changed, 10 insertions(+), 14 deletions(-) diff --git a/make/Docs.gmk b/make/Docs.gmk index d75398272d0..1e5a582a794 100644 --- a/make/Docs.gmk +++ b/make/Docs.gmk @@ -168,11 +168,6 @@ JDK_LONG_NAME := Standard Edition Development Kit (JDK™) $(VERSION_SPECIFI JAVASE_SHORT_NAME := SE $(VERSION_SPECIFICATION) JAVASE_LONG_NAME := Standard Edition $(VERSION_SPECIFICATION) -################################################################################ -# Index page text titles/snippets - -JDK_INDEX_TITLE := $(JAVA_PLATFORM), $(JDK_LONG_NAME) Specification $(DRAFT_MARKER_TITLE) - ################################################################################ # Functions @@ -208,7 +203,6 @@ define create_overview_file # ifneq ($$($1_GROUPS),) $1_OVERVIEW_TEXT += \ -

For an overview of the full specification, grouped by usage, see the $$(JAVA_PLATFORM), $$($1_LONG_NAME) Specification.

\
\ # $1_OVERVIEW_TEXT += $$(foreach g, $$($1_GROUPS), \ @@ -442,15 +436,17 @@ $(eval $(call SetupApiDocsGeneration, JAVASE_API, \ ################################################################################ JDK_INDEX_HTML := $(DOCS_OUTPUTDIR)/index.html -JDK_INDEX_TOOLS_DIR := $(TOOLS_CLASSES_DIR)/build/tools/docs -$(JDK_INDEX_HTML): $(BUILD_JIGSAW_TOOLS) \ - $(JDK_INDEX_TOOLS_DIR)/docs-bundle-page.html \ - $(JDK_INDEX_TOOLS_DIR)/docs-module-groups.properties - $(call LogInfo, Generating docs bundle index page) - $(MKDIR) -p $(@D) - $(TOOL_GEN_DOCS_BUNDLE_PAGE) --title '$(JDK_INDEX_TITLE)' \ - --output $@ +JDK_INDEX_CONTENT := \ + \ + \ + \ + \ + \ + + +$(JDK_INDEX_HTML): + $(ECHO) '$(JDK_INDEX_CONTENT)' > $@ JDK_INDEX_TARGETS := $(JDK_INDEX_HTML)