From f4ebf8c80f437520231960b9517d60b21796abd5 Mon Sep 17 00:00:00 2001 From: Phillip Webb Date: Tue, 18 Mar 2014 09:08:35 -0700 Subject: [PATCH] Add clickable anchors to HTML docs Fixes gh-525 --- .../src/main/docbook/css/manual.css | 28 +++++++++++++++++++ .../src/main/docbook/xsl/html.xsl | 23 +++++++++++++++ 2 files changed, 51 insertions(+) diff --git a/spring-boot-docs/src/main/docbook/css/manual.css b/spring-boot-docs/src/main/docbook/css/manual.css index f8a520e0674..e442411eee4 100644 --- a/spring-boot-docs/src/main/docbook/css/manual.css +++ b/spring-boot-docs/src/main/docbook/css/manual.css @@ -311,3 +311,31 @@ div.navheader { div.navfooter { border-top: 1px solid #CCCCCC; } + +.title { + margin-left: -1em; + padding-left: 1em; +} + +.title>a { + position: absolute; + visibility: hidden; + display: block; + font-size: 0.85em; + margin-top: 0.05em; + margin-left: -1em; + vertical-align: text-top; + color: black; +} + +.title>a:before { + content: "\00A7"; +} + +.title:hover>a,.title>a:hover,.title:hover>a:hover { + visibility: visible; +} + +.title:focus>a,.title>a:focus,.title:focus>a:focus { + outline: 0; +} diff --git a/spring-boot-docs/src/main/docbook/xsl/html.xsl b/spring-boot-docs/src/main/docbook/xsl/html.xsl index 64a0f577869..c12d2cec3dc 100644 --- a/spring-boot-docs/src/main/docbook/xsl/html.xsl +++ b/spring-boot-docs/src/main/docbook/xsl/html.xsl @@ -114,4 +114,27 @@ under the License. + + + + + + + + + + + + + + + + + # + + + + + +