From edab97a3e464b17a0cfc0895759413819d2f2e0b Mon Sep 17 00:00:00 2001 From: Jay Bryant Date: Tue, 17 Aug 2021 11:09:40 -0500 Subject: [PATCH] Only link to other formats from each format of the ref docs See gh-27737 --- .../spring-boot-docs/src/docs/asciidoc/index.adoc | 3 +-- .../spring-boot-docs/src/docs/asciidoc/index.singleadoc | 8 ++++++-- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/spring-boot-project/spring-boot-docs/src/docs/asciidoc/index.adoc b/spring-boot-project/spring-boot-docs/src/docs/asciidoc/index.adoc index 461d3a3114..579edab6f5 100644 --- a/spring-boot-project/spring-boot-docs/src/docs/asciidoc/index.adoc +++ b/spring-boot-project/spring-boot-docs/src/docs/asciidoc/index.adoc @@ -4,8 +4,7 @@ include::authors.adoc[] v{spring-boot-version} include::attributes.adoc[] -This document is also available as {spring-boot-docs}/html/[Multi-page HTML], {spring-boot-docs}/htmlsingle/[Single page HTML] and {spring-boot-docs}/pdf/spring-boot-reference.pdf[PDF]. - +This document is also available as {spring-boot-docs}/htmlsingle/[a single HTML page] and as {spring-boot-docs}/pdf/spring-boot-reference.pdf[PDF]. The reference documentation consists of the following sections: diff --git a/spring-boot-project/spring-boot-docs/src/docs/asciidoc/index.singleadoc b/spring-boot-project/spring-boot-docs/src/docs/asciidoc/index.singleadoc index 3763f21d43..c33da74deb 100644 --- a/spring-boot-project/spring-boot-docs/src/docs/asciidoc/index.singleadoc +++ b/spring-boot-project/spring-boot-docs/src/docs/asciidoc/index.singleadoc @@ -4,8 +4,12 @@ include::authors.adoc[] v{spring-boot-version} include::attributes.adoc[] -This document is also available as {spring-boot-docs}/html/[Multi-page HTML], {spring-boot-docs}/htmlsingle/[Single page HTML] and {spring-boot-docs}/pdf/spring-boot-reference.pdf[PDF]. - +ifdef::backend-html5[] +This document is also available as {spring-boot-docs}/html/[multiple HTML pages] and as {spring-boot-docs}/pdf/spring-boot-reference.pdf[PDF]. +endif::[] +ifdef::backend-pdf[] +This document is also available as {spring-boot-docs}/html/[multiple HTML pages] and as {spring-boot-docs}/htmlsingle/[a single HTML page]. +endif::[] include::legal.adoc[leveloffset=+1]