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 :=