From 537969e34dca1a58f42ce4103e52d07897308cf7 Mon Sep 17 00:00:00 2001 From: Sebastian Wilzbach Date: Fri, 9 Feb 2018 12:03:44 +0100 Subject: [PATCH] Use LINK2 instead of direct a href for REF macros --- dlang.org.ddoc | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/dlang.org.ddoc b/dlang.org.ddoc index 03d494123a..54d11529bc 100644 --- a/dlang.org.ddoc +++ b/dlang.org.ddoc @@ -237,9 +237,9 @@ MULTICOL_CELL=$+ MULTICOL_HEADER=$+ MULTICOLS=$+ MULTIROW_HEADER=$+ -MREF=$(D $1$(DOT_PREFIXED $+)) -MREF_ALTTEXT=$1 -MREF1=$(D $1) +MREF=$(LINK2 $(PHOBOS_PATH)$1$(UNDERSCORE_PREFIXED $+).html, $(D $1$(DOT_PREFIXED $+))) +MREF_ALTTEXT=$(LINK2 $(PHOBOS_PATH)$2$(UNDERSCORE_PREFIXED_SKIP $+).html, $1) +MREF1=$(LINK2 $(PHOBOS_PATH)$1.html, $(D $1)) _= @@ -364,8 +364,8 @@ $(COMMENT The generated href will be "phobos/std_container_array.html#.Array.back" (the phobos path can be different, of course). ) -REF=$(D $2$(DOT_PREFIXED_SKIP $+, $1)) -REF1=$(D $1) +REF=$(LINK2 $(PHOBOS_PATH)$2$(UNDERSCORE_PREFIXED_SKIP $+).html#.$1, $(D $2$(DOT_PREFIXED_SKIP $+, $1))) +REF1=$(LINK2 $(PHOBOS_PATH)$2.html#.$1", $(D $1)) _= $(COMMENT @@ -377,8 +377,8 @@ $(COMMENT generates a link like this: the 'back' method ) -REF_ALTTEXT=$1 -REF1_ALTTEXT=$1 +REF_ALTTEXT=$(LINK2 $(PHOBOS_PATH)$3$(UNDERSCORE_PREFIXED_SKIP2 $+).html#.$2, $1) +REF1_ALTTEXT=$(LINK2 $(PHOBOS_PATH)$3.html#.$2", $1) _= $(COMMENT