Skip to content

Commit 9cd0171

Browse files
committed
Update base URL and redirect to external documentation
1 parent 105b31c commit 9cd0171

File tree

2 files changed

+13
-5
lines changed

2 files changed

+13
-5
lines changed

docusaurus.config.ts

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,10 @@ const config: Config = {
4545
to: "/docs/get-started/signup",
4646
from: "/docs/get-started",
4747
},
48+
{
49+
to: "https://docs.coderabbit.ai/",
50+
from: "/docs/introduction",
51+
},
4852
],
4953
},
5054
],
@@ -67,7 +71,7 @@ const config: Config = {
6771
{
6872
docs: {
6973
sidebarPath: "./sidebars.ts",
70-
routeBasePath: "/docs",
74+
routeBasePath: "/",
7175
breadcrumbs: true,
7276
showLastUpdateTime: true,
7377
},
@@ -142,14 +146,14 @@ const config: Config = {
142146
sidebarId: "docsSidebar",
143147
position: "left",
144148
label: "Docs",
145-
to: "/docs/introduction",
149+
to: "/",
146150
},
147151
{
148152
// type: "docSidebar",
149153
// sidebarId: "blogsSidebar",
150154
position: "left",
151155
label: "Blog",
152-
to: "/blog",
156+
href: "https://blog.coderabbit.ai/blog",
153157
},
154158
{
155159
href: "https://discord.gg/CVtemB5c",

src/pages/index.tsx

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
1-
import { Redirect } from "@docusaurus/router";
1+
import { useEffect } from "react";
22

33
export default function Home(): JSX.Element {
44
// const { siteConfig } = useDocusaurusContext();
5-
return <Redirect to="/docs/introduction" />;
5+
useEffect(() => {
6+
// Redirect to external URL when the component mounts
7+
window.location.href = "https://docs.coderabbit.ai";
8+
}, []);
9+
return <></>;
610
}

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy