diff options
Diffstat (limited to 'docs/_layouts')
-rw-r--r-- | docs/_layouts/default.html | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/docs/_layouts/default.html b/docs/_layouts/default.html index e9d6a3c6..b672ef67 100644 --- a/docs/_layouts/default.html +++ b/docs/_layouts/default.html @@ -118,5 +118,13 @@ $('#toc').append(li); }); </script> + + <!-- 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"); + }); + </script> </body> </html> |