File tree 2 files changed +14
-11
lines changed
2 files changed +14
-11
lines changed Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ const config: Config = {
15
15
favicon : 'img/favicon.ico' ,
16
16
17
17
// Set the production url of your site here
18
- url : 'https://www .uopensail.com' ,
18
+ url : 'https://docs .uopensail.com' ,
19
19
// Set the /<baseUrl>/ pathname under which your site is served
20
20
// For GitHub pages deployment, it is often '/<projectName>/'
21
21
baseUrl : '/' ,
@@ -77,6 +77,9 @@ const config: Config = {
77
77
logo : {
78
78
alt : 'RecGo Logo' ,
79
79
src : 'img/logo.svg' ,
80
+ href : 'https://www.uopensail.com' ,
81
+ target : '_self' // // 设置新的跳转链接
82
+
80
83
} ,
81
84
items : [
82
85
{
Original file line number Diff line number Diff line change 1
1
import React from 'react' ;
2
+ import { Redirect } from '@docusaurus/router' ; // v2.4+ 专用
2
3
3
- const HtmlViewer : React . FC = ( ) => {
4
- return (
5
- < iframe
6
- src = "/cindex.html"
7
- style = { { width : '100%' , height : '100vh' , border : 'none' } }
8
- title = "Static HTML Content" // 必须的 accessibility 属性
9
- />
4
+ export default function CustomRedirect ( ) {
5
+ // 示例:根据条件重定向
6
+ const shouldRedirect = true ; // 你的逻辑
7
+
8
+ return shouldRedirect ? (
9
+ < Redirect to = "https://www.uopensail.com" />
10
+ ) : (
11
+ < div > </ div >
10
12
) ;
11
- } ;
12
-
13
- export default HtmlViewer ;
13
+ }
You can’t perform that action at this time.
0 commit comments