You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@shenyu.apache.org by xi...@apache.org on 2022/10/10 02:49:06 UTC
[shenyu-website] branch main updated: [type:fix] docs page link (#792)
This is an automated email from the ASF dual-hosted git repository.
xiaoyu pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/shenyu-website.git
The following commit(s) were added to refs/heads/main by this push:
new cb759b083c [type:fix] docs page link (#792)
cb759b083c is described below
commit cb759b083c8803ba7312981ca263b055f2559414
Author: gouzixing <44...@users.noreply.github.com>
AuthorDate: Mon Oct 10 10:49:01 2022 +0800
[type:fix] docs page link (#792)
* newsPage
* news page
* bugfix
* news page update
* bugfix --path bug
* conflict
* conflict
* img update
* blog page refractor
* blog page new style
* delete annotate
* index page highlight for slogon
* bugfix:document for node
* bugfix--link false
* i18n & link fix
* 'translate'
* translate
* urlchange bugfix
* docs fix
* delete unused import
* fix
* event page & navibar update & overview doc & pic update for news
* lint
* lint
* translate
* lint
* trans
* feat
* fix--locale=zh
* docs fix
* footer
* i18n
* userList
* fix
* fix
* fix
* index
* fix
* hover
* fix
* index page
* index page
* SWIPER
* SWIPER
* 2.5.0
* 2.5.0
* 2.5.0
* 适配
* 适配
* download
* download
* download
* download
* download
* blog info
* i18n
* grammarly
* grammar
* chinglish fix
* docs page
* doc
* doc
* doc
* doc
* 13
* 213
* golang client
* bugfix: link
Co-authored-by: gouzixing <go...@MacintoshdeMacBook-Pro.local>
Co-authored-by: gouzixing <go...@bupt.edu.cn>
Co-authored-by: gouzixing <gouzixing>
---
src/data/docsInfo.js | 24 ++++++++++++------------
src/pages/document.tsx | 4 ++--
2 files changed, 14 insertions(+), 14 deletions(-)
diff --git a/src/data/docsInfo.js b/src/data/docsInfo.js
index 0b8c01ca60..69abb9b1a7 100644
--- a/src/data/docsInfo.js
+++ b/src/data/docsInfo.js
@@ -6,16 +6,16 @@ export default [
docsTitle: <Translate>Apache ShenYu Docs</Translate>,
projectName: "Apache ShenYu",
description: <Translate>The document for Apache ShenYu</Translate>,
- latestVersion: "docs/index",
- nextVersion: "docs/next/index",
+ latestVersion: "/docs/index",
+ nextVersion: "/docs/next/index",
versionsList: [
- { next: "docs/next/index" },
- { "2.5.0": "docs/index" },
- { "2.4.3": "docs/2.4.3/index" },
- { "2.4.2": "docs/2.4.2/index" },
- { "2.4.1": "docs/2.4.1/index" },
- { "2.4.0": "docs/2.4.0/index" },
- { "2.3.0-Legacy": "docs/2.3.0-Legacy/index" },
+ { next: "/docs/next/index" },
+ { "2.5.0": "/docs/index" },
+ { "2.4.3": "/docs/2.4.3/index" },
+ { "2.4.2": "/docs/2.4.2/index" },
+ { "2.4.1": "/docs/2.4.1/index" },
+ { "2.4.0": "/docs/2.4.0/index" },
+ { "2.3.0-Legacy": "/docs/2.3.0-Legacy/index" },
],
},
{
@@ -27,7 +27,7 @@ export default [
upstream nodes by Service Register Center for OpenResty.
</Translate>
),
- latestVersion: "shenyuNginx/index",
+ latestVersion: "/shenyuNginx/index",
},
{
docsTitle: <Translate>ShenYu-client-golang Docs</Translate>,
@@ -38,7 +38,7 @@ export default [
Gateway,it supports registory go service to ShenYu Gateway.
</Translate>
),
- latestVersion: "shenyuClientGolang/http",
+ latestVersion: "/shenyuClientGolang/http",
},
{
docsTitle: <Translate>ShenYu .NET Client Docs</Translate>,
@@ -49,6 +49,6 @@ export default [
automatically and use ShenYu as gateway easily.
</Translate>
),
- latestVersion: "shenyuClientDotnet/http",
+ latestVersion: "/shenyuClientDotnet/http",
},
];
diff --git a/src/pages/document.tsx b/src/pages/document.tsx
index 9aed077edc..2597f7010e 100644
--- a/src/pages/document.tsx
+++ b/src/pages/document.tsx
@@ -2,7 +2,7 @@ import React, { useEffect, useState, useCallback } from 'react';
import Layout from '@theme/Layout';
import styles from './document.module.css';
import Translate from "@docusaurus/Translate";
-import { BrowserRouter as Router, Route, Link } from 'react-router-dom'
+import Link from '@docusaurus/Link';
import data from '../data/docsInfo';
function Event() {
@@ -49,7 +49,7 @@ function Event() {
<div className={styles.title}><Translate>Document List</Translate></div>
<div className={styles.description}>
<p className={styles.descriptionLine}><Translate>This directory presents the official Apache ShenYu repositories and some ecosystem projects developed by community.</Translate></p>
- <p className={styles.descriptionLine}><Translate>The downloadable releases can be find in the</Translate><a className={styles.descriptionLineHref} href='./download'><Translate>download page</Translate></a></p>
+ <p className={styles.descriptionLine}><Translate>The downloadable releases can be find in the</Translate><Link className={styles.descriptionLineHref} to="./download"><Translate>download page</Translate></Link></p>
</div>
</div>
<div className={styles.content}>