This is an automated email from the ASF dual-hosted git repository.
liuxiran pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/apisix-dashboard.git
The following commit(s) were added to refs/heads/master by this push:
new 9cb4b43 feat: change the doc link to website (#1587)
9cb4b43 is described below
commit 9cb4b430e4337a9a1b6a4b3eea4763a76c2feeb7
Author: Cliff Su <[email protected]>
AuthorDate: Sun Mar 14 00:01:08 2021 +0800
feat: change the doc link to website (#1587)
---
web/src/components/Plugin/PluginPage.tsx | 2 +-
web/src/components/RightContent/index.tsx | 17 +++++++----------
web/src/pages/User/components/LoginMethodPassword.tsx | 2 +-
3 files changed, 9 insertions(+), 12 deletions(-)
diff --git a/web/src/components/Plugin/PluginPage.tsx
b/web/src/components/Plugin/PluginPage.tsx
index e03aa82..fa30a73 100644
--- a/web/src/components/Plugin/PluginPage.tsx
+++ b/web/src/components/Plugin/PluginPage.tsx
@@ -223,7 +223,7 @@ const PluginPage: React.FC<Props> = ({
<br />
{formatMessage({ id: 'component.plugin.tip1' })}
<a
-
href="https://github.com/apache/apisix-dashboard/blob/master/docs/en/latest/FAQ.md#4-after-modifying-the-plugin-schema-or-creating-a-custom-plugin-in-apache-apisix-why-cant-i-find-it-on-the-dashboard"
+
href="https://apisix.apache.org/docs/dashboard/FAQ#4-after-modifying-the-plugin-schema-or-creating-a-custom-plugin-in-apache-apisix-why-cant-i-find-it-on-the-dashboard"
target="_blank"
rel="noreferrer"
>
diff --git a/web/src/components/RightContent/index.tsx
b/web/src/components/RightContent/index.tsx
index 7224f8e..34deb43 100644
--- a/web/src/components/RightContent/index.tsx
+++ b/web/src/components/RightContent/index.tsx
@@ -58,16 +58,13 @@ const GlobalHeaderRight: React.FC = () => {
return (
<Space className={className}>
- <Tooltip title="Documentation">
- <span
- className={styles.action}
- onClick={() => {
- window.location.href = 'https://github.com/apache/apisix';
- }}
- >
- <QuestionCircleOutlined />
- </span>
- </Tooltip>
+ <a href="https://apisix.apache.org/docs/apisix/getting-started"
target="_blank">
+ <Tooltip title="Documentation">
+ <span className={styles.action} >
+ <QuestionCircleOutlined />
+ </span>
+ </Tooltip>
+ </a>
<Avatar />
{REACT_APP_ENV && (
<span>
diff --git a/web/src/pages/User/components/LoginMethodPassword.tsx
b/web/src/pages/User/components/LoginMethodPassword.tsx
index 8e0948d..1ed7708 100644
--- a/web/src/pages/User/components/LoginMethodPassword.tsx
+++ b/web/src/pages/User/components/LoginMethodPassword.tsx
@@ -70,7 +70,7 @@ const LoginMethodPassword: UserModule.LoginMethod = {
</Form.Item>
<Form.Item>
<Tooltip title={formatMessage({ id:
'component.user.loginMethodPassword.modificationMethod' })}>
- <a
href="https://github.com/apache/apisix-dashboard/blob/master/api/conf/conf.yaml#L53-L57">
+ <a
href="https://github.com/apache/apisix-dashboard/blob/master/api/conf/conf.yaml#L53-L57"
target="_blank">
{formatMessage({ id:
'component.user.loginMethodPassword.changeDefaultAccount' })}
</a>
</Tooltip>