Commit Graph

9 Commits

Author SHA1 Message Date
Endless 8becc115ca feat(quote-permission): add quote permission notices to CLI docs, API docs, and API Reference (#939)
🤖 Auto-generated by Endless.

---------

Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-authored-by: Jason Lee <huacnlee@gmail.com>
2026-05-05 18:37:25 +08:00
Jason Lee 960eb57c37 chore: Fix zh-CN, zh-HK docs/cli copy. 2026-04-10 18:16:56 +08:00
Jason Lee 686b1179b0 chore: Fix docs/cli copy. 2026-04-10 16:58:40 +08:00
hold-baby 267a813a7d feat(region): add China region build with page whitelist, URL rewriti… (#405)
…ng and independent deployment

Co-authored-by: 袁昌瑞 <changrui.yuan@longbridge-inc.com>
2026-04-03 21:33:12 +08:00
Jason Lee a222a0e781 build: copy skill/install routes to flat paths post-build (#388)
## Summary

- 新增 `scripts/copy-routes.ts` post-build 脚本,在构建完成后将
`skill/install/index.html` 和 `skill/install/index.md` 分别复制到
`skill/install.html` 和 `skill/install.md`
- 在 `build:canary` 和 `build:release` 命令末尾追加 `bun run
build:copy-routes`,确保每次构建自动执行

## 背景

部署服务器对 `.html` 有目录回退规则(`/skill/install` → `install.html` 或
`install/index.html`),但 `.md` 没有此规则,导致两种格式的访问路径不一致。此脚本确保两个位置的文件同时存在。

## Test plan

- [ ] 运行 `bun run build:canary` 或 `bun run build:release`,确认
`dist/skill/install.html` 和 `dist/skill/install.md` 均存在
- [ ] 确认 `dist/skill/install/index.html` 和 `dist/skill/install/index.md`
仍然存在

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-26 15:49:58 +08:00
Jason Lee 0add508ae2 feat: add Skill page with interactive demo (#376)
## Summary

- **New `/skill` page** with full trilingual support (en / zh-CN /
zh-HK)
- **Interactive chat demo**: 4 scenarios (Live Quote, Portfolio,
Subscription, Earnings) × 5 AI clients (OpenClaw, ChatGPT, Claude,
Claude Code, Codex) with typewriter animation
- **Rich response rendering**: tables with Shadcn-style borders, mini
SVG sparkline charts, syntax-highlighted code blocks
- **Scenario cards section** below the demo describing use cases
- **Nav update**: Skill link added to all three locale nav configs

## Bug Fixes

- **Syntax highlighter**: replaced chained-regex approach with a
single-pass tokenizer. The old code ran number → keyword → string
regexes sequentially on the same string — the keyword regex matched
`class` inside generated `<span class="hl-n">` attributes, and the
string regex matched `"hl-n"` as a string literal, corrupting the HTML
structure entirely
- **v-html routing**: replaced `currentMessages[2]?.rich` template
condition with an explicit `isRichResponse` ref set in `runAnimation()`
to prevent incorrect branch selection when switching client tabs

## Test plan

- [ ] Visit `/skill`, `/zh-CN/skill`, `/zh-HK/skill` — page loads in all
locales
- [ ] Click through all 4 scenario tabs — animation plays correctly for
each
- [ ] Click through all 5 client tabs — correct message shown, Claude
Code tab shows syntax-highlighted code (not raw HTML)
- [ ] Verify sparkline charts render in the Live Quote / OpenClaw
scenario
- [ ] Verify table borders render correctly (outer border + row
dividers, no missing bottom border)
- [ ] Verify gain/loss values show green/red colors in tables

🤖 Generated with [Claude Code](https://claude.com/claude-code)

---------

Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-23 20:03:14 +08:00
Sunli 5accb00f24 docs: Longbridge SDK docs update (branding, 4.0.0, Go examples) (#356)
## Summary
- **Branding & version**: SDK 页与文档统一为 longbridge 品牌、版本 4.0.0,修正仓库与包地址
- **Getting started**: 更新 API Host、OAuth 示例与 4.0.0,修正 typo(开发中 → 开发者)
- **Request examples**: 为所有 API 请求示例补充多语言
tabs(Python/Node/Java/Rust/C++),并增加 Go SDK 示例(en / zh-CN / zh-HK)
- **Dependencies**: 更新 package.json 与 bun.lock

Made with [Cursor](https://cursor.com)
2026-03-11 11:34:49 +08:00
Jason Lee e03dc22bb3 Revert "Add scripts/fix-assets-cdn.sh to replace /assets into https://static.lbkrs.com/openapi-website/assets"
This reverts commit 6d39a7bd37.
2023-08-17 17:25:57 +08:00
Jason Lee 6d39a7bd37 Add scripts/fix-assets-cdn.sh to replace /assets into https://static.lbkrs.com/openapi-website/assets 2023-08-17 15:07:44 +08:00