This is an automated email from the ASF dual-hosted git repository.
juzhiyuan 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 1f262f7f531 fix(nav): restore the Comparisons entry point and
historical resource links (#2077)
1f262f7f531 is described below
commit 1f262f7f531b5d7ff3ec5d24ce919db38c3b1188
Author: Ming Wen <[email protected]>
AuthorDate: Mon Jul 27 09:23:47 2026 +0800
fix(nav): restore the Comparisons entry point and historical resource links
(#2077)
---
.github/workflows/deploy.yml | 6 +++++-
next/src/lib/site.ts | 16 ++++++++++++++--
2 files changed, 19 insertions(+), 3 deletions(-)
diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml
index 35f6672faf1..02559c96675 100644
--- a/.github/workflows/deploy.yml
+++ b/.github/workflows/deploy.yml
@@ -224,7 +224,8 @@ jobs:
# is left as Docusaurus produced it, so those URLs stay
byte-identical.
for path in index.html zh/index.html _astro \
blog zh/blog learning-center zh/learning-center \
- articles zh/articles events zh/events; do
+ articles zh/articles events zh/events \
+ comparisons zh/comparisons; do
rm -rf "website/build/$path"
mkdir -p "website/build/$(dirname "$path")"
cp -R "next/dist/$path" "website/build/$path"
@@ -244,6 +245,9 @@ jobs:
test -f website/build/articles/index.html
test -f website/build/zh/articles/rss.xml
test -f website/build/events/archive/index.html
+ # The comparisons hub (a single index.html in both locales) is
Astro's.
+ grep -q '/_astro/' website/build/comparisons/index.html
+ grep -q '/_astro/' website/build/zh/comparisons/index.html
# Merge the homepage's image assets (integration brand icons, feature
# infographics, architecture diagram) into the Docusaurus img tree.
# cp merges: it adds the new files and overwrites only same-named
diff --git a/next/src/lib/site.ts b/next/src/lib/site.ts
index c8717d1d944..a54b4b5a755 100644
--- a/next/src/lib/site.ts
+++ b/next/src/lib/site.ts
@@ -41,6 +41,7 @@ export const NAV: NavItem[] = [
],
},
{ label: 'Learning Center', labelZh: '学习中心', href: '/learning-center/' },
+ { label: 'Comparisons', labelZh: '对比', href: '/comparisons/' },
{ label: 'AI Gateway', href: '/ai-gateway/' },
{ label: 'Blog', labelZh: '博客', href: '/blog/' },
{ label: 'Plugin Hub', labelZh: '插件中心', href: '/plugins/' },
@@ -71,11 +72,22 @@ export const FOOTER = {
],
},
{
- title: 'More',
+ title: 'Resources',
links: [
{ label: 'Blog', href: '/blog/' },
- { label: 'Plugin Hub', href: '/plugins/' },
{ label: 'Learning Center', href: '/learning-center/' },
+ { label: 'Comparisons', href: '/comparisons/' },
+ { label: 'Events', href: '/events/' },
+ { label: 'Case Studies', href: '/blog/tags/case-studies/' },
+ { label: 'User Stories', href: '/user-stories/' },
+ ],
+ },
+ {
+ title: 'More',
+ links: [
+ { label: 'Plugin Hub', href: '/plugins/' },
+ { label: 'Downloads', href: '/downloads/' },
+ { label: 'Team', href: '/team/' },
{ label: 'Contribute', href: '/contribute/' },
],
},