This is an automated email from the ASF dual-hosted git repository.
guoqqqi pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/apisix-website.git
The following commit(s) were added to refs/heads/master by this push:
new 115a23f82b4 chore(website): clean up doc/blog workspaces + open
homepage links in new tab (#2066)
115a23f82b4 is described below
commit 115a23f82b4b0453dde36f6723c3a01ba0883f30
Author: Ming Wen <[email protected]>
AuthorDate: Tue Jun 30 09:03:12 2026 +0800
chore(website): clean up doc/blog workspaces + open homepage links in new
tab (#2066)
---
blog/i18n/zh/code.json | 44 ---------------------
blog/i18n/zh/docusaurus-theme-classic/navbar.json | 8 ----
blog/src/theme/Footer/index.tsx | 10 -----
doc/i18n/zh/code.json | 44 ---------------------
doc/i18n/zh/docusaurus-theme-classic/navbar.json | 8 ----
doc/src/theme/Footer/index.tsx | 9 -----
website/src/components/ArrowAnim.tsx | 3 +-
.../src/components/sections/AIGatewaySection.tsx | 4 +-
website/src/components/sections/Benefits.tsx | 1 +
website/src/components/sections/Endcta.tsx | 2 +-
website/src/components/sections/HeroSection.tsx | 4 +-
website/src/components/sections/Integrations.tsx | 4 +-
.../src/components/sections/OpensourcePromo.tsx | 6 +--
website/src/components/sections/Pathways.tsx | 2 +-
website/static/img/community.png | Bin 2413 -> 0 bytes
website/static/img/documents.png | Bin 1420 -> 0 bytes
16 files changed, 14 insertions(+), 135 deletions(-)
diff --git a/blog/i18n/zh/code.json b/blog/i18n/zh/code.json
index 637cd8562c9..965ef68d46b 100644
--- a/blog/i18n/zh/code.json
+++ b/blog/i18n/zh/code.json
@@ -3,22 +3,6 @@
"message": "。",
"description": "."
},
- "showcase.website.title": {
- "message": "用户列表",
- "description": "Showcase"
- },
- "showcase.website.tips.used": {
- "message": "Apache APISIX 被众多产品与用户所信赖",
- "description": "This project is used by all these folks"
- },
- "showcase.website.tips.wantUse": {
- "message": "你也在使用它吗?请让我们知道!",
- "description": "Are you using this project? "
- },
- "showcase.website.link.addYourCompany": {
- "message": "加入使用者名单",
- "description": "Add your company"
- },
"docs.webpage.title.Document": {
"message": "产品文档",
"description": "Document"
@@ -71,34 +55,6 @@
"message": "如果需要验证二进制文件/源代码,您可以从主目录下载相关的 ACS 文件,并遵循下面的指南。",
"description": "To verify the binaries/sources you can download the
relevant asc files for it from main distribution directory and follow the below
guide."
},
- "help.website.title": {
- "message": "获取帮助",
- "description": "NEED HELP?"
- },
- "help.website.subtitle": {
- "message": "Apache APISIX 维护者们将积极为你答疑解惑",
- "description": "This project is maintained by a dedicated group of people."
- },
- "help.website.docs.title": {
- "message": "官方文档",
- "description": "Browse Docs"
- },
- "help.website.docs.tips": {
- "message": "访问官方技术文档以了解更多",
- "description": "Learn more using the documentation on this site."
- },
- "help.website.link.docs": {
- "message": "阅读文档",
- "description": "Read Documents"
- },
- "help.website.community.title": {
- "message": "加入社区",
- "description": "Join Community"
- },
- "help.website.community.tips": {
- "message": "告诉我们你遇到了什么问题?",
- "description": "Ask questions about the documentation and project"
- },
"plugins.website.title": {
"message": "Apache APISIX®️ 插件中心",
"description": "Apache APISIX®️ Plugin Hub"
diff --git a/blog/i18n/zh/docusaurus-theme-classic/navbar.json
b/blog/i18n/zh/docusaurus-theme-classic/navbar.json
index c83e21ef423..a29392f5888 100644
--- a/blog/i18n/zh/docusaurus-theme-classic/navbar.json
+++ b/blog/i18n/zh/docusaurus-theme-classic/navbar.json
@@ -39,14 +39,6 @@
"message": "团队",
"description": "Navbar item with label Team"
},
- "item.label.Showcase": {
- "message": "使用案例",
- "description": "Navbar item with label Showcase"
- },
- "item.label.Help": {
- "message": "帮助",
- "description": "Navbar item with label Help"
- },
"item.label.APISIX": {
"message": "APISIX",
"description": "Navbar item with label APISIX"
diff --git a/blog/src/theme/Footer/index.tsx b/blog/src/theme/Footer/index.tsx
index 60b7e37d15a..8c7d0915727 100644
--- a/blog/src/theme/Footer/index.tsx
+++ b/blog/src/theme/Footer/index.tsx
@@ -82,21 +82,11 @@ const footer = {
to: '/blog/',
target: '_parent',
},
- {
- label: 'Showcase',
- to: '/showcase',
- target: '_parent',
- },
{
label: 'Plugin Hub',
to: '/plugins',
target: '_parent',
},
- {
- label: 'Roadmap',
- to: 'https://github.com/apache/apisix/milestones',
- target: '_parent',
- },
],
},
],
diff --git a/doc/i18n/zh/code.json b/doc/i18n/zh/code.json
index 9b5d6963b68..3268ca9e2fd 100644
--- a/doc/i18n/zh/code.json
+++ b/doc/i18n/zh/code.json
@@ -3,22 +3,6 @@
"message": "。",
"description": "."
},
- "showcase.website.title": {
- "message": "用户列表",
- "description": "Showcase"
- },
- "showcase.website.tips.used": {
- "message": "Apache APISIX 被众多产品与用户所信赖",
- "description": "This project is used by all these folks"
- },
- "showcase.website.tips.wantUse": {
- "message": "你也在使用它吗?请让我们知道!",
- "description": "Are you using this project? "
- },
- "showcase.website.link.addYourCompany": {
- "message": "加入使用者名单",
- "description": "Add your company"
- },
"docs.webpage.title.Document": {
"message": "产品文档",
"description": "Document"
@@ -71,34 +55,6 @@
"message": "如果需要验证二进制文件/源代码,您可以从主目录下载相关的 ACS 文件,并遵循下面的指南。",
"description": "To verify the binaries/sources you can download the
relevant asc files for it from main distribution directory and follow the below
guide."
},
- "help.website.title": {
- "message": "获取帮助",
- "description": "NEED HELP?"
- },
- "help.website.subtitle": {
- "message": "Apache APISIX 维护者们将积极为你答疑解惑",
- "description": "This project is maintained by a dedicated group of people."
- },
- "help.website.docs.title": {
- "message": "官方文档",
- "description": "Browse Docs"
- },
- "help.website.docs.tips": {
- "message": "访问官方技术文档以了解更多",
- "description": "Learn more using the documentation on this site."
- },
- "help.website.link.docs": {
- "message": "阅读文档",
- "description": "Read Documents"
- },
- "help.website.community.title": {
- "message": "加入社区",
- "description": "Join Community"
- },
- "help.website.community.tips": {
- "message": "告诉我们你遇到了什么问题?",
- "description": "Ask questions about the documentation and project"
- },
"plugins.website.title": {
"message": "Apache APISIX®️ 插件中心",
"description": "Apache APISIX®️ Plugin Hub"
diff --git a/doc/i18n/zh/docusaurus-theme-classic/navbar.json
b/doc/i18n/zh/docusaurus-theme-classic/navbar.json
index 1462162be93..7118d332d38 100644
--- a/doc/i18n/zh/docusaurus-theme-classic/navbar.json
+++ b/doc/i18n/zh/docusaurus-theme-classic/navbar.json
@@ -39,14 +39,6 @@
"message": "团队",
"description": "Navbar item with label Team"
},
- "item.label.Showcase": {
- "message": "使用案例",
- "description": "Navbar item with label Showcase"
- },
- "item.label.Help": {
- "message": "帮助",
- "description": "Navbar item with label Help"
- },
"item.label.APISIX": {
"message": "APISIX",
"description": "Navbar item with label APISIX"
diff --git a/doc/src/theme/Footer/index.tsx b/doc/src/theme/Footer/index.tsx
index 6227874c5c7..b36ead82b80 100644
--- a/doc/src/theme/Footer/index.tsx
+++ b/doc/src/theme/Footer/index.tsx
@@ -80,20 +80,11 @@ const footer = {
label: 'Blog',
to: '/blog/',
target: '_parent',
- }, {
- label: 'Showcase',
- to: '/showcase',
- target: '_parent',
}, {
label: 'Plugin Hub',
to: '/plugins',
target: '_parent',
},
- {
- label: 'Roadmap',
- to: 'https://github.com/apache/apisix/milestones',
- target: '_parent',
- },
],
},
],
diff --git a/website/src/components/ArrowAnim.tsx
b/website/src/components/ArrowAnim.tsx
index 123e99a19f7..ca0be2c8a37 100644
--- a/website/src/components/ArrowAnim.tsx
+++ b/website/src/components/ArrowAnim.tsx
@@ -7,7 +7,8 @@ import Translate from '@docusaurus/Translate';
const ArrowAnim: FC = () => (
<Link
- target="_parent"
+ target="_blank"
+ rel="noopener noreferrer"
to={useBaseUrl('/blog/')}
className="btn-docs"
>
diff --git a/website/src/components/sections/AIGatewaySection.tsx
b/website/src/components/sections/AIGatewaySection.tsx
index 7920b5be4f1..29c250b67b0 100644
--- a/website/src/components/sections/AIGatewaySection.tsx
+++ b/website/src/components/sections/AIGatewaySection.tsx
@@ -105,14 +105,14 @@ const AIGatewaySection: FC = () => (
<div className="ai-home__grid">
{CAPABILITIES.map((capability) => (
- <Link className="ai-home__card" to={capability.href}
key={capability.title.props.id}>
+ <Link className="ai-home__card" to={capability.href}
key={capability.title.props.id} target="_blank" rel="noopener noreferrer">
<h3 className="ai-home__card-title">{capability.title}</h3>
<p className="ai-home__card-desc">{capability.desc}</p>
</Link>
))}
</div>
- <Link className="ai-home__cta" to="/ai-gateway/">
+ <Link className="ai-home__cta" to="/ai-gateway/" target="_blank"
rel="noopener noreferrer">
<Translate id="home.ai.cta">Explore the AI Gateway</Translate>
{' →'}
</Link>
diff --git a/website/src/components/sections/Benefits.tsx
b/website/src/components/sections/Benefits.tsx
index 72a608690dc..d89226ceb11 100644
--- a/website/src/components/sections/Benefits.tsx
+++ b/website/src/components/sections/Benefits.tsx
@@ -453,6 +453,7 @@ const Benefits: FC = () => {
style={{ color: '#e8433e' }}
to={useBaseUrl('docs/apisix/plugins/cors/')}
target="_blank"
+ rel="noopener noreferrer"
>
<Translate
id="benefits.component.security.link.here">here</Translate>
</Link>
diff --git a/website/src/components/sections/Endcta.tsx
b/website/src/components/sections/Endcta.tsx
index eefe855f59d..8a2221fe4ca 100644
--- a/website/src/components/sections/Endcta.tsx
+++ b/website/src/components/sections/Endcta.tsx
@@ -28,7 +28,7 @@ const EndCTA: FC = () => {
)}
</p>
<div className={style.links}>
- <Link target="_parent" to={useBaseUrl('docs/apisix/getting-started')}
className="btn btn-download">
+ <Link target="_blank" rel="noopener noreferrer"
to={useBaseUrl('docs/apisix/getting-started')} className="btn btn-download">
<Translate id="hero.component.download.btn">Getting
Started</Translate>
</Link>
<ArrowAnim />
diff --git a/website/src/components/sections/HeroSection.tsx
b/website/src/components/sections/HeroSection.tsx
index 3dab2641758..3d0e3df83c0 100644
--- a/website/src/components/sections/HeroSection.tsx
+++ b/website/src/components/sections/HeroSection.tsx
@@ -28,10 +28,10 @@ const HeroSection: FC = () => (
</Translate>
</p>
<div className="hero-ctas">
- <Link target="_parent" to={useBaseUrl('docs/apisix/getting-started')}
className="btn btn-download">
+ <Link target="_blank" rel="noopener noreferrer"
to={useBaseUrl('docs/apisix/getting-started')} className="btn btn-download">
<Translate id="hero.component.download.btn">Get started</Translate>
</Link>
- <Link target="_parent" to={useBaseUrl('plugins/')} className="btn
btn-secondary">
+ <Link target="_blank" rel="noopener noreferrer"
to={useBaseUrl('plugins/')} className="btn btn-secondary">
<Translate id="hero.component.plugins.btn">Browse 100+
plugins</Translate>
</Link>
</div>
diff --git a/website/src/components/sections/Integrations.tsx
b/website/src/components/sections/Integrations.tsx
index 707498c99d9..fc9ebcb9068 100644
--- a/website/src/components/sections/Integrations.tsx
+++ b/website/src/components/sections/Integrations.tsx
@@ -88,7 +88,7 @@ const IntegrationTile: FC<{ item: Integration }> = ({ item })
=> {
</>
);
return href ? (
- <Link className="integrations__tile" to={href} title={item.name}>
+ <Link className="integrations__tile" to={href} title={item.name}
target="_blank" rel="noopener noreferrer">
{inner}
</Link>
) : (
@@ -117,7 +117,7 @@ const Integrations: FC = () => (
<IntegrationTile item={item} key={item.name} />
))}
</div>
- <Link className="integrations__cta" to="/plugins/">
+ <Link className="integrations__cta" to="/plugins/" target="_blank"
rel="noopener noreferrer">
<Translate id="home.integrations.cta">Explore all 100+
plugins</Translate>
{' →'}
</Link>
diff --git a/website/src/components/sections/OpensourcePromo.tsx
b/website/src/components/sections/OpensourcePromo.tsx
index f9b9fc32484..5ebca9d5b69 100644
--- a/website/src/components/sections/OpensourcePromo.tsx
+++ b/website/src/components/sections/OpensourcePromo.tsx
@@ -15,11 +15,11 @@ const VideoChannel: FC = () => {
} = useDocusaurusContext();
if (currentLocale.startsWith('zh')) {
- return <a href="https://space.bilibili.com/551921247">哔哩哔哩官方账号</a>;
+ return <a href="https://space.bilibili.com/551921247" target="_blank"
rel="noopener noreferrer">哔哩哔哩官方账号</a>;
}
return (
- <a href="https://www.youtube.com/channel/UCgPD18cMhOg5rmPVnQhAC8g">
+ <a href="https://www.youtube.com/channel/UCgPD18cMhOg5rmPVnQhAC8g"
target="_blank" rel="noopener noreferrer">
<Translate id="openSourcePromo.component.link.Youtube">YouTube
channel</Translate>
</a>
);
@@ -63,7 +63,7 @@ const OpensourcePromo: FC = () => (
New to microservices or API gateways? Get up and running with our
</Translate>
{' '}
- <Link style={{ color: '#e8433e' }} to={useBaseUrl('docs')}>
+ <Link style={{ color: '#e8433e' }} to={useBaseUrl('docs')}
target="_blank" rel="noopener noreferrer">
<Translate
id="openSourcePromo.component.link.docs">Docs.</Translate>
</Link>
</p>
diff --git a/website/src/components/sections/Pathways.tsx
b/website/src/components/sections/Pathways.tsx
index 565a6cb659c..270292fc6e2 100644
--- a/website/src/components/sections/Pathways.tsx
+++ b/website/src/components/sections/Pathways.tsx
@@ -52,7 +52,7 @@ const PATHWAYS: Pathway[] = [
const Pathways: FC = () => (
<section className="pathways" aria-label="Get started with Apache APISIX">
{PATHWAYS.map((pathway) => (
- <Link className="pathways__card" to={pathway.to} key={pathway.id}>
+ <Link className="pathways__card" to={pathway.to} key={pathway.id}
target="_blank" rel="noopener noreferrer">
<h3 className="pathways__title">{pathway.title}</h3>
<p className="pathways__desc">{pathway.description}</p>
<span className="pathways__cta">
diff --git a/website/static/img/community.png b/website/static/img/community.png
deleted file mode 100644
index 8eacc14b756..00000000000
Binary files a/website/static/img/community.png and /dev/null differ
diff --git a/website/static/img/documents.png b/website/static/img/documents.png
deleted file mode 100644
index 7e546fee083..00000000000
Binary files a/website/static/img/documents.png and /dev/null differ