docs: Simplify javascript link modification for external references
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
This commit is contained in:
@@ -121,8 +121,7 @@
|
|||||||
|
|
||||||
<!-- Javascript to automatically fix links to files outside docs/ -->
|
<!-- Javascript to automatically fix links to files outside docs/ -->
|
||||||
<script>
|
<script>
|
||||||
$("a[href^='../']")
|
$('.markdown-body').find('a[href^="../"]').each(function() {
|
||||||
.each(function () {
|
|
||||||
this.href = $(this).attr("href").replace(/^\.\./, "https://github.com/KevinOConnor/klipper/blob/master");
|
this.href = $(this).attr("href").replace(/^\.\./, "https://github.com/KevinOConnor/klipper/blob/master");
|
||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
|
|||||||
Reference in New Issue
Block a user