This is an automated email from the ASF dual-hosted git repository. moonming pushed a commit to branch feat/astro-nav-restore in repository https://gitbox.apache.org/repos/asf/apisix-website.git
commit bf3f0a6445f40b4034d4e70633c3ab80a8b8a1e9 Author: Ming Wen <[email protected]> AuthorDate: Sun Jul 26 16:22:16 2026 +0800 fix(nav): restore the Comparisons entry point and historical resource links The wave-2 navbar and footer were rebuilt from scratch and lost several entry points that the Docusaurus site had. The pages themselves were never removed — they still return 200 — but nothing on the Astro-served pages linked to them any more. - navbar: add Comparisons back (EN + zh) - footer: add a Resources column (Blog, Learning Center, Comparisons, Events, Case Studies, User Stories) and move the product links into More - deploy: add comparisons/ and zh/comparisons/ to the overlay allowlist so the Astro hub page (which was already built but never deployed) goes live, and assert both locales are the Astro build /comparisons/ holds exactly one index.html per locale — the per-gateway comparison articles live under /learning-center/apisix-vs-*/ and are already served by Astro — so the subtree swap drops no URL. --- .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/' }, ], },
