Skip to content

Commit

Permalink
Include links js file
Browse files Browse the repository at this point in the history
Signed-off-by: srikant <[email protected]>
  • Loading branch information
srikant-ch5 committed Feb 23, 2024
1 parent 62ed288 commit 5c85847
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
1 change: 1 addition & 0 deletions docs/images/DELETEME
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Images for the guide go here.
10 changes: 10 additions & 0 deletions docs/js/links-in-new-tabs.js
Original file line number Diff line number Diff line change
@@ -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';
}
}

0 comments on commit 5c85847

Please sign in to comment.