From 619a85f2f2b652d9839af1f3cf07e20d805a9cde Mon Sep 17 00:00:00 2001 From: Mahmoud Ben Hassine Date: Tue, 6 Feb 2018 10:37:35 +0100 Subject: [PATCH] BATCH-2679: Add "Back to index" link in the sidebar of the documentation --- spring-batch-docs/asciidoc/docinfo-footer.html | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/spring-batch-docs/asciidoc/docinfo-footer.html b/spring-batch-docs/asciidoc/docinfo-footer.html index 7bfec657f..b49f7602b 100644 --- a/spring-batch-docs/asciidoc/docinfo-footer.html +++ b/spring-batch-docs/asciidoc/docinfo-footer.html @@ -36,4 +36,14 @@ window.addEventListener('resize', handleTocOnResize); window.addEventListener('tocRefresh', handleTocRefresh); handleTocOnResize(); + + var link = document.createElement("a"); + link.setAttribute("href", "index.html"); + link.innerHTML = "  Back to index"; + var p = document.createElement("p"); + p.setAttribute("id", "backToIndex"); + p.appendChild(link); + var toc = document.getElementById('toc'); + toc.insertBefore(p, toctitle); +