Skip to content

Reapply 2026 SCC showcase wall with SSG fix#27

Merged
bzy-debug merged 2 commits intomoonbitlang:mainfrom
zongen01:codex/showcase-ssg-fix
Mar 27, 2026
Merged

Reapply 2026 SCC showcase wall with SSG fix#27
bzy-debug merged 2 commits intomoonbitlang:mainfrom
zongen01:codex/showcase-ssg-fix

Conversation

@zongen01
Copy link
Copy Markdown
Contributor

这次是在已经回滚后的 main 基础上,重新提交 2026 SCC 展示墙,并修复正式部署时的静态构建错误。

主要内容:

  • 恢复 2026 SCC Rabbita 展示墙页面与赛事页入口
  • 保留之前为 showcase 增加的构建接线(build / dev / build script / asset ignore)
  • 保留 moon.pkg / moon.pkg.json 的监听修复
  • 修复 Docusaurus SSG 失败问题:将 RabbitaShowcaseMountsrc/pages 路由目录移到 src/components,避免它被当成独立页面渲染,从而触发 useColorMode provider 错误

背景:

  • 上一版展示墙 PR 合并后,Release 工作流在构建 /2026-scc/showcase/RabbitaShowcaseMount 时失败
  • 这次 PR 专门解决该问题,并保留展示墙原始实现

说明:

  • 我这边当前环境仍然没有 node / pnpm 可执行命令,因此无法本地直接跑完整 Docusaurus build
  • 这次修复主要依据线上 Release 日志定位并收敛到最小改动

Copy link
Copy Markdown

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 6564691a04

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

}

fn link_official_site() -> String {
"https://www.moonbitlang.com/2026-scc"
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Route official-site CTA to locale-matching domain

link_official_site() always returns https://www.moonbitlang.com/2026-scc, so on Chinese pages (document.documentElement.lang starts with zh) the localized “查看赛事官网” button still sends users to the English domain. This is a user-facing localization regression introduced with the new showcase app, and the URL should be selected via lang(...) (or equivalent locale-aware routing) so zh users stay on the zh site.

Useful? React with 👍 / 👎.

@bzy-debug bzy-debug force-pushed the codex/showcase-ssg-fix branch from 6564691 to d5971ae Compare March 27, 2026 08:47
@bzy-debug bzy-debug merged commit f775a94 into moonbitlang:main Mar 27, 2026
1 check passed
bzy-debug added a commit that referenced this pull request Mar 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants