diff --git a/docs/images/DELETEME b/docs/images/DELETEME new file mode 100644 index 0000000000..0fa15e4e80 --- /dev/null +++ b/docs/images/DELETEME @@ -0,0 +1 @@ +Images for the guide go here. \ No newline at end of file diff --git a/docs/js/links-in-new-tabs.js b/docs/js/links-in-new-tabs.js new file mode 100644 index 0000000000..f269f65134 --- /dev/null +++ b/docs/js/links-in-new-tabs.js @@ -0,0 +1,10 @@ +// This takes any external links and adds _blank to make sure they open in a new tab. Links to other +// pages within the documentation will remain in the same tab +// Source: https://stackoverflow.com/questions/4425198/can-i-create-links-with-target-blank-in-markdown#answer-4425214 + +var links = document.links; +for (var i = 0, linksLength = links.length; i < linksLength; i++) { + if (links[i].hostname != window.location.hostname) { + links[i].target = '_blank'; + } +}