Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
This repository was archived by the owner on Aug 16, 2025. It is now read-only.

Commit9cd0171

Browse files
committed
Update base URL and redirect to external documentation
1 parent105b31c commit9cd0171

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
exportdefaultfunctionHome():JSX.Element{
44
// const { siteConfig } = useDocusaurusContext();
5-
return<Redirectto="/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)

[8]ページ先頭

©2009-2025 Movatter.jp