Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 619a85f

Browse files
fmbenhassinemminella
authored andcommitted
BATCH-2679: Add "Back to index" link in the sidebar of the documentation
1 parent daf0ecf commit 619a85f

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

spring-batch-docs/asciidoc/docinfo-footer.html

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,4 +36,14 @@
3636
window.addEventListener('resize', handleTocOnResize);
3737
window.addEventListener('tocRefresh', handleTocRefresh);
3838
handleTocOnResize();
39+
40+
var link = document.createElement("a");
41+
link.setAttribute("href", "index.html");
42+
link.innerHTML = "<i class=\"fa fa-chevron-left\"></i>&nbsp;&nbsp;Back to index";
43+
var p = document.createElement("p");
44+
p.setAttribute("id", "backToIndex");
45+
p.appendChild(link);
46+
var toc = document.getElementById('toc');
47+
toc.insertBefore(p, toctitle);
48+
3949
</script>

0 commit comments

Comments
 (0)