diff options
author | Kevin O'Connor <kevin@koconnor.net> | 2020-12-03 18:44:31 -0500 |
---|---|---|
committer | Kevin O'Connor <kevin@koconnor.net> | 2020-12-03 18:44:31 -0500 |
commit | 1f9516ad7f3cdcd942ab5dbc1c9d41e766b45645 (patch) | |
tree | 5807fc80a720dba3d739895d2429ac372b82f0cc | |
parent | 14952ccef5b932751b38077b1dd949c330a64b7d (diff) | |
download | kutter-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>
-rw-r--r-- | docs/_layouts/default.html | 7 |
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> |