Skip to content

Feat/sync longbridge docs and fixes - #4

Merged
twosugar merged 19 commits into
mainfrom
feat/sync_longbridge_docs_and_fixes
Jul 3, 2026
Merged

twosugar merged 19 commits into
mainfrom
feat/sync_longbridge_docs_and_fixes

Conversation

@twosugar

@twosugar twosugar commented Jul 3, 2026

Copy link
Copy Markdown
Collaborator

No description provided.

endless-bot and others added 19 commits June 30, 2026 10:03
…github.com/longbridge/developers 里面已经有很多更新

Generated by Endless task #1.

Co-authored-by: Huacnlee Li Huashun <huacnlee@longbridge-inc.com>
…://github.com/longbridge/developers 里面已经有很多更新

Generated by Endless task #1.

Co-authored-by: Huacnlee Li Huashun <huacnlee@longbridge-inc.com>
…://github.com/longbridge/developers 里面已经有很多更新

Generated by Endless task #1.

Co-authored-by: Huacnlee Li Huashun <huacnlee@longbridge-inc.com>
…://github.com/longbridge/developers 里面已经有很多更新

Generated by Endless task #1.

Co-authored-by: Huacnlee Li Huashun <huacnlee@longbridge-inc.com>
…://github.com/longbridge/developers 里面已经有很多更新

Generated by Endless task #1.

Co-authored-by: Huacnlee Li Huashun <huacnlee@longbridge-inc.com>
…://github.com/longbridge/developers 里面已经有很多更新

Generated by Endless task #1.

Co-authored-by: Huacnlee Li Huashun <huacnlee@longbridge-inc.com>
…://github.com/longbridge/developers 里面已经有很多更新

Generated by Endless task #1.

Co-authored-by: Huacnlee Li Huashun <huacnlee@longbridge-inc.com>
…://github.com/longbridge/developers 里面已经有很多更新

Generated by Endless task #1.

Co-authored-by: Huacnlee Li Huashun <huacnlee@longbridge-inc.com>
新增的 quote/subscribe/*.md 与 socket/security_list.md 通过 slug
重写占用了 /quote/push/* 和 /quote/security/security_list 路由,
与旧文档路由冲突导致 vitepress 本地搜索索引构建失败
(MiniSearch duplicate ID)。新文档内容已完整覆盖旧文档,
且 slug 保留旧 URL,删除旧目录不影响线上链接。

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
PR 新增 500+ 文档文件后构建体积大幅增长,CI 上 vitepress build
超出 Node 默认 ~4GB 堆上限导致 OOM (exit 134)。将 build:canary
与 build:release 的堆上限提升到 6GB。

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
本地实测:651 个页面的构建 8GB 堆仍 OOM,10GB 可通过
(峰值 footprint ~11.7GB),10240 是最小可用档位。
ubuntu-latest 16GB 内存可容纳。

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
同步 PR 把首页改成 <NewHomePage/>,但该组件及其依赖
(16 个子组件 + tailwindcss 等)未随文档同步到本仓库,
导致首页整页空白。回退三个语言首页到旧版 HomePage,
新首页待 theme 完整同步后再启用。

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
dev 模式不会注入 longport-internal.iife.js,
window.longportInternal 为 undefined 时直接调用 isLogin()
抛 TypeError。与 uesAvatar.ts 的既有防护保持一致。

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Pricing 页面依赖的 <Pricing/> 组件未随同步 PR 带入,
访问 /pricing 会整页空白,且站内仅平台介绍页一处文字链接。
删除三个语言的 pricing 页面,将平台介绍页中的定价链接
改为引导用户到 LongPort 手机客户端“行情商城”查看,
与其余文档中的既有话术保持一致。

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
<QuotePermission/> 组件未随同步 PR 带入本仓库,105 处标签
均为静默不渲染的死标签。按产品决定移除行情权限说明块,
不再搬运该组件。

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
<Footer/> 组件(新版页脚)未随同步 PR 带入,连同外层
tailwind class 包装 div 均不生效,删除三个语言 sdk 页
底部的死代码块。

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
useHighlighter 在 Layout setup 内调用 createHighlighter,
SSG 渲染每页执行一次 setup,651 个页面创建 651 个 Shiki
实例(CI 日志刷出 450+ instances 警告),渲染阶段 OOM。
提升为模块级单例后渲染阶段实例数降为 1,内存回归正常。

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
VitePress SSG 渲染阶段将全部页面持于内存且无分批渲染 API
(vuejs/vitepress#5134),651 页站点渲染内存需求 >10GB。
本地 12GB 堆实测可完整构建(峰值 ~13.2GB);为避免 16GB
runner 被系统 OOM killer 终止,三个 workflow 统一增加 8G
swap 兜底。

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
GitHub ubuntu runner 镜像自带已启用的 /swapfile,
直接 fallocate 会报 Text file busy。先 swapoff 并删除
原文件再重建 8G swap。

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@twosugar
twosugar merged commit af53833 into main Jul 3, 2026
2 checks passed
@twosugar
twosugar deleted the feat/sync_longbridge_docs_and_fixes branch July 3, 2026 06:46
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