Skip to content

Commit

Permalink
docs: fix fragment links
Browse files Browse the repository at this point in the history
(cherry picked from commit 4dd67a7fdfc0b7c3a2d806cfd763294141ce7fd8)
  • Loading branch information
jrudolph committed Jul 23, 2020
1 parent 213d409 commit 6abf0ed
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions docs/src/main/paradox/_template/projectSpecificFooter.st
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
<script type="text/javascript" src="$page.base$assets/js/warnOldDocs.js"></script>
<script type="text/javascript" src="$page.base$assets/js/scrollToFragment.js"></script>
5 changes: 5 additions & 0 deletions docs/src/main/paradox/assets/js/scrollToFragment.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
$(document).ready(function() {
if(window.location.hash.length > 0) {
window.scrollTo(0, $(window.location.hash).offset().top);
}
});

0 comments on commit 6abf0ed

Please sign in to comment.