Skip to content

feat: 暂时隐藏 GitHub 与训练链接入口#156

Merged
ImChong merged 1 commit into
mainfrom
cursor/hide-external-links-ef9b
Jun 24, 2026
Merged

feat: 暂时隐藏 GitHub 与训练链接入口#156
ImChong merged 1 commit into
mainfrom
cursor/hide-external-links-ef9b

Conversation

@ImChong

@ImChong ImChong commented Jun 24, 2026

Copy link
Copy Markdown
Owner

Summary

暂时隐藏以下外部链接入口,便于后续通过配置一键恢复:

  • Site header:GitHub 按钮
  • Control panel 顶部:训练代码与论文/项目网址链接(含下方分隔线)

实现方式

新增 src/config/siteLinks.js,通过 showExternalSourceLinks 开关控制显示。当前值为 false

需要恢复时,将 showExternalSourceLinks 改为 true 即可。

Test plan

  • npm test(146 tests passed)
  • npm run build
Open in Web Open in Cursor 

Co-authored-by: Chong Liu <chongliu2021@163.com>
@ImChong ImChong marked this pull request as ready for review June 24, 2026 07:35
@ImChong ImChong merged commit fc0eed4 into main Jun 24, 2026
1 check passed
@ImChong ImChong deleted the cursor/hide-external-links-ef9b branch June 24, 2026 07:35
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