Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8be024d commit 308d041Copy full SHA for 308d041
changeDocsLink.js
@@ -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
+});
docusaurus.config.ts
@@ -101,6 +101,7 @@ const config: Config = {
101
src: "https://cdnjs.cloudflare.com/ajax/libs/axios/1.2.1/axios.min.js",
102
async: true,
103
},
104
+ "changeDocsLink.js",
105
],
106
107
themeConfig: {
0 commit comments