Skip to content

Commit 48a85c3

Browse files
karan925tyaga001
authored andcommitted
Add code to change the docs link on the navbar
1 parent 7632346 commit 48a85c3

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

changeDocsLink.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
document.addEventListener("DOMContentLoaded", function () {
2+
const navbarDocsLink = document.querySelector('.navbar__item[href="/"]');
3+
4+
if (navbarDocsLink && window.location.hostname === "blog.coderabbit.ai") {
5+
navbarDocsLink.setAttribute("href", "https://docs.coderabbit.ai");
6+
}
7+
});

0 commit comments

Comments
 (0)