mirror of
https://github.com/Klipper3d/klipper.git
synced 2025-08-09 06:45:26 -06:00
docs: Use relative links for files outside the docs/ directory
Use javascript to fixup the "github pages" rendering of links to files outside the docs/ directory. Then use normal relative links in the documentation. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
This commit is contained in:
parent
a2d1e03b91
commit
1f2d9c051c
7 changed files with 58 additions and 64 deletions
|
@ -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>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue