docs: Simplify javascript link modification for external references

Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
This commit is contained in:
Kevin O'Connor 2020-12-03 18:44:31 -05:00
parent 14952ccef5
commit 1f9516ad7f
1 changed files with 3 additions and 4 deletions

View File

@ -121,8 +121,7 @@
<!-- Javascript to automatically fix links to files outside docs/ -->
<script>
$("a[href^='../']")
.each(function () {
$('.markdown-body').find('a[href^="../"]').each(function() {
this.href = $(this).attr("href").replace(/^\.\./, "https://github.com/KevinOConnor/klipper/blob/master");
});
</script>