Files
pybricks-api/doc/common/_static/js/custom.js
T
David Lechner 424de0adde doc: open external links in a new window
This adds a hack to open external links in a new window. Requires Sphinx v1.8.
2021-01-24 20:23:44 -06:00

5 lines
185 B
JavaScript

// https://stackoverflow.com/a/62742435/1976323
$(document).ready(function () {
$('a[href^="http://"], a[href^="https://"]').not('a[class*=internal]').attr('target', '_blank');
});