aboutsummaryrefslogtreecommitdiffstats
path: root/docs/_layouts
diff options
context:
space:
mode:
authorKevin O'Connor <kevin@koconnor.net>2020-12-03 18:44:31 -0500
committerKevin O'Connor <kevin@koconnor.net>2020-12-03 18:44:31 -0500
commit1f9516ad7f3cdcd942ab5dbc1c9d41e766b45645 (patch)
tree5807fc80a720dba3d739895d2429ac372b82f0cc /docs/_layouts
parent14952ccef5b932751b38077b1dd949c330a64b7d (diff)
downloadkutter-1f9516ad7f3cdcd942ab5dbc1c9d41e766b45645.tar.gz
kutter-1f9516ad7f3cdcd942ab5dbc1c9d41e766b45645.tar.xz
kutter-1f9516ad7f3cdcd942ab5dbc1c9d41e766b45645.zip
docs: Simplify javascript link modification for external references
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
Diffstat (limited to 'docs/_layouts')
-rw-r--r--docs/_layouts/default.html7
1 files changed, 3 insertions, 4 deletions
diff --git a/docs/_layouts/default.html b/docs/_layouts/default.html
index b672ef67..b6bfee68 100644
--- a/docs/_layouts/default.html
+++ b/docs/_layouts/default.html
@@ -121,10 +121,9 @@
<!-- Javascript to automatically fix links to files outside docs/ -->
<script>
- $("a[href^='../']")
- .each(function () {
- this.href = $(this).attr("href").replace(/^\.\./, "https://github.com/KevinOConnor/klipper/blob/master");
- });
+ $('.markdown-body').find('a[href^="../"]').each(function() {
+ this.href = $(this).attr("href").replace(/^\.\./, "https://github.com/KevinOConnor/klipper/blob/master");
+ });
</script>
</body>
</html>