Skip to content

Commit

Permalink
Add "external" icon to links to other domains (#324)
Browse files Browse the repository at this point in the history
(cherry picked from commit 69d5727)
  • Loading branch information
adriendupuis committed Dec 5, 2024
1 parent 5b634d5 commit 5aa62ca
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions docs/js/custom.js
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,12 @@ $(document).ready(function() {
}
});

$('.md-content a:not(.md-icon):not(.md-source):not(.instantsearch__entry)')
.filter(function() {
return this.hostname && this.hostname !== location.hostname;
})
.addClass('external');

docsearch({
container: '#docsearch',
appId: 'WLX2XJZTRM',
Expand Down

0 comments on commit 5aa62ca

Please sign in to comment.