Commit Graph

386 Commits

Author SHA1 Message Date
le.wu a49b95d4a3 fix(docs): 更新文档中的 Issues 链接 2026-04-10 11:48:27 +08:00
Jason Lee addaff62b9 feat(nav): add frosted glass blur effect on scroll (#415)
## Summary

- 滚动后导航栏显示玻璃模糊效果(`backdrop-filter: blur(15px)` + 半透明背景)
- 利用 VitePress 内置的 `.top` 类(`y === 0` 时添加,滚动后移除)触发样式切换
- 支持 dark mode(深色半透明背景)
- 隐藏滚动后的底部分隔线

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

Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-10 10:13:41 +08:00
Jason Lee d8e0d9fc67 docs(cli): Add insider-trades, investors commands. (#412)
## Summary

- Rename `longbridge balance` to `longbridge assets` in CLI docs
(en/zh-CN/zh-HK)
- Update page title from "Get Account Balance" to "Get Account Assets"
in `trade/asset/account.md`

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

---------

Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-09 22:39:39 +08:00
Cooooooker 56be71dfc8 docs: Add is_pinned field to watchlist and limit hashtags to 1 (#413)
- Add `is_pinned` boolean field to watchlist groups API response
- Update create_topic hashtags maximum from 5 to 1

Co-authored-by: chengzhipeng <zhipeng.cheng@longbridge-inc.com>
Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-09 18:45:49 +08:00
Jason Lee f63b957d98 docs(cli): add v0.14.1 and v0.14.2 release notes (#411)
## Summary
- Add v0.14.2 release notes: `--lang` global flag for content language
- Add v0.14.1 release notes: CN region login support, `-v` flag
- Updated in cli.md and changelog.md across all three language versions
(en, zh-CN, zh-HK)

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

Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-08 17:26:22 +08:00
Jason Lee 85c8be3789 fix(footer): update privacy policy URL (#410)
## Summary
- Update privacy policy link in footer to
`https://longbridge.com/hk/support/topics/accountsecurity/c0yg7`

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

Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-08 17:09:04 +08:00
Jason Lee 33813fcc2b docs(mcp): add Codex client setup and remove ChatGPT (#408)
## Summary
- Add Codex client setup instructions with detailed GUI steps (Settings
→ MCP Servers → Add Server, Streamable HTTP, then Authenticate)
- Remove ChatGPT from the client list (MCP installation not supported)
- Changes applied across all three language versions (en, zh-CN, zh-HK)

## Test plan
- [ ] Verify Codex setup steps are accurate and complete
- [ ] Confirm ChatGPT entry is removed from all three language files

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

---------

Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-08 16:53:25 +08:00
Jason Lee 5918efb5cb docs(quote): clarify overnight quote requires LV1 quote card and US stocks only (#407)
## Summary

Closes https://github.com/longbridge/openapi/issues/514

-
在所有涉及夜盘的文档位置(getting-started、qa/quote、pull/quote、candlestick、history-candlestick)补充说明:
  - 夜盘数据默认不包含,需购买「LV1 实时行情 (OpenAPI)」行情卡
  - 目前夜盘行情仅支持美股,港股暂不支持
- 三语言(EN / zh-CN / zh-HK)同步更新

## Test plan

- [ ] 预览各文档页面,确认说明文字正确显示
- [ ] 确认 zh-CN / zh-HK 简繁体内容一致

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

---------

Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-08 16:10:20 +08:00
Jason Lee 651007e619 docs: Remove invalid docs. 2026-04-03 22:20:01 +08:00
Jason Lee 91e46f9024 docs(skill): add Skill install step and CN mirror download link (#406)
## Summary

- Add **Step 1 — Install the Skill** section to the English install page
(was missing `npx skills add longbridge/developers` command and ZIP
download link), bringing it in line with zh-CN/zh-HK
- Add CN mirror download URL
(`https://open.longbridge.cn/skill/longbridge.zip`) for `longbridge.zip`
across all three locales
- Fix relative ZIP paths (`/skill/longbridge.zip`) to absolute URLs in
zh-CN/zh-HK
- Restructure English page sections: `Method 1/2` → `Step 2 Method A/B`

## Test plan

- [ ] Verify EN install page shows Step 1 with npx command and ZIP
download (with CN mirror link)
- [ ] Verify zh-CN and zh-HK pages show CN mirror link next to ZIP
download

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

---------

Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-03 22:12:23 +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 2844f33412 docs: Update CLI auth to device flow and add v0.14.0 release notes (#404)
## Summary

- Update authentication docs: OAuth browser flow → OAuth Device Auth
Flow (works in local, SSH, headless environments)
- Remove `--headless` references
- Add v0.14.0 release notes across all three languages (en, zh-CN,
zh-HK)

## v0.14.0 highlights

- Device auth login as default (`--headless` removed)
- Order enhancements: trailing stop, AO order type, `--expire-date`,
`--outside-rth`, `--remark`
- Linux segfault fix via musl binary

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

---------

Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-02 17:30:06 +08:00
Jason Lee ec6399fec0 docs: Update scoop install URL. 2026-04-02 10:53:15 +08:00
Jason Lee d8fe8f36f2 fix: Update Scoop install path to .scoop/longbridge.json (#402)
## Summary

- Rename `scoop.json` → `.scoop/longbridge.json` in
`longbridge-terminal` submodule — Scoop requires the manifest filename
to match the app name
- Update Scoop install command in docs (en / zh-CN / zh-HK) to point to
the new path

## Test plan

- [ ] Verify `scoop install
https://raw.githubusercontent.com/longbridge/longbridge-terminal/main/.scoop/longbridge.json`
installs successfully on Windows

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

---------

Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-02 10:40:49 +08:00
Jason Lee dc68e0caec docs: Add Windows Scoop install, Revoking Authorization, and skills.sh link (#401)
## Summary

- Add Windows [Scoop](https://scoop.sh) installation option across all
docs (`cli.md` en/zh-CN/zh-HK, `skill/install` en/zh-CN/zh-HK, skill
references)
- Add **Revoking Authorization** section to `skill/install`
troubleshooting and `references/setup.md`
- Add "Also available on skills.sh and GitHub." link below the ZIP
download button in `Skill.vue`

The Scoop manifest (`longbridge.json`) and auto-update workflow
(`update-scoop.yml`) are in a separate commit in the
`longbridge-terminal` submodule.

## Test plan

- [ ] Verify Scoop install command renders correctly in all 3 language
versions of `cli.md` and `skill/install`
- [ ] Verify Revoking Authorization appears in Troubleshooting section
(en) and 常见问题 (zh-CN/zh-HK)
- [ ] Verify "Also available on skills.sh and GitHub." appears below ZIP
download button on skill page
- [ ] Confirm `longbridge.json` is valid JSON and Scoop can parse it

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

---------

Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-01 20:43:39 +08:00
Jason Lee b99cfdf896 feat(skill): revamp install guide and add capability reference (#400)
## Summary

- Simplified install pages (en/zh-CN/zh-HK) to a clean two-step
structure: install Skill → connect account (CLI or MCP)
- Added npx/bunx install commands with Node.js/Bun environment notes
- Added Windows binary install instructions (download zip from GitHub
Releases)
- Added Homebrew install link for macOS, Linux-specific curl command
- Added mainland China MCP accelerated endpoint
(`openapi.longbridge.cn/mcp`)
- Added Claude Desktop, Gemini CLI, Warp to supported MCP clients table
- Added "Why Claude.ai and ChatGPT.com don't work" explanation section
- Added **Capability Reference** section to Skill.vue — 6-card 3×2 grid
covering all CLI/MCP capabilities
- Restored heroClients list to original five (OpenClaw, ChatGPT, Claude,
Claude Code, Codex)

## Test plan

- [ ] Build passes (`bun run build:canary`)
- [ ] Skill page renders capability reference section correctly across
en/zh-CN/zh-HK
- [ ] Install pages display correctly in all three languages
- [ ] MCP table and Windows install instructions render as expected

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

---------

Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-01 19:29:45 +08:00
Jason Lee 2a5b6a3840 docs: update changelog with recent API and CLI changes (#399)
## Summary

- Add **CLI v0.13.0** Fundamentals & Analysis section (10 new commands:
`financial-report`, `valuation`, `forecast-eps`, `consensus`,
`institution-rating`, `shareholder`, `fund-holder`, `dividend`,
`finance-calendar`, `exchange-rate`) + domain-grouped naming refactor
- Add **Statement API** (`GET /v1/statement/list`, `GET
/v1/statement/download`)
- Add **Community API** (my topics, create topic, topic detail, topic
replies, create reply)
- Bump `longbridge-terminal`, `openapi`, `openapi-go` submodules
- All three locales (en / zh-CN / zh-HK) kept in sync

## Test plan

- [ ] Verify changelog page renders correctly in all 3 locales (`bun run
dev`)

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

Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-01 13:34:35 +08:00
Jason Lee 00e156831b docs(cli): add fundamentals & analysis commands for v0.13.0 (#398)
## Summary

- Add new **Fundamentals & analysis** section to CLI docs (EN / zh-CN /
zh-HK)
- Documents 10 new commands introduced in [longbridge-terminal
v0.13.0](https://github.com/longbridge/longbridge-terminal/releases/tag/v0.13.0):
  - `financial-report` — financial statements with period/type filters
- `valuation` — P/E, P/B, P/S, dividend yield snapshot + peer comparison
+ history mode
  - `forecast-eps` — analyst EPS forecast consensus
- `consensus` — revenue/profit/EPS consensus with beat/miss annotations
- `institution-rating` / `institution-rating detail` — rating
distribution and monthly trends
- `shareholder` — institutional shareholders with change tracking and
sort options
  - `fund-holder` — funds and ETFs holding a symbol
- `dividend` / `dividend detail` — dividend history and distribution
plan
- `finance-calendar` — financial calendar by event type (financial,
report, dividend, ipo, macrodata, closed)
  - `exchange-rate` — exchange rates for all supported currencies

## Test plan

- [ ] Verify new section renders correctly in dev preview (`bun run
dev`)
- [ ] Confirm all three language versions are in sync

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

---------

Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-01 11:51:18 +08:00
Jason Lee cf021667ff cli: Refactor domain-grouped command names (#397)
Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-01 11:32:36 +08:00
Jason Lee c15e95cf4f fix(skill): Update hero title to avoid compliance risk (#396)
## Summary

- 将 Skill 页面 Hero 标题从「解锁投资、分析能力」改为「解锁市场洞察、深度研究与智能交易」
- 修复原文标点歧义(「投资、分析」被误读为两个独立词),同时规避合规风险
- 同步更新 EN / zh-CN / zh-HK 三个语言版本

## Test plan

- [ ] 访问 Skill 页面,确认三语言标题显示正确

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

Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-30 18:22:00 +08:00
geomantic_omen 137ffc9329 docs: Add statement API documentation. (#393)
feat(statement): add account statement CLI commands and API
documentation

- Add statement list and export CLI command examples to docs (en, zh-CN,
zh-HK)
- Document daily and monthly statement listing with filtering options
- Document statement export with section selection and output format
options (Markdown, CSV)
- Add Statement tag and endpoints to OpenAPI spec (/v1/statement/list,
/v1/statement/download)
- Add statement reference documentation to CLI skill guide
- Create comprehensive statement.md reference guide for CLI usage and
examples

---------

Co-authored-by: geomantic <lei.zhong@longbridge-inc.com>
Co-authored-by: Jason Lee <huacnlee@gmail.com>
Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-30 14:59:03 +08:00
Jason Lee b93ed2efc8 feat: update OG meta tags with new image and Twitter Card improvements (#391)
## Summary

- Replace OG image with new Longbridge branded PNG (`longbridge-og.png`)
- Add `og:image:type` and `og:image:alt` to all locale heads
- Upgrade `twitter:card` from `summary` to `summary_large_image` (shows
full banner image on Twitter/X instead of small thumbnail)
- Add `twitter:image` via `transformHead` (per-page)
- Normalize `og:site_name` to `Longbridge Developers` across en / zh-CN
/ zh-HK

## Test plan

- [ ] Build and verify meta tags in rendered HTML
- [ ] Use [Twitter Card
Validator](https://cards-dev.twitter.com/validator) to confirm large
image preview
- [ ] Use [Facebook Sharing
Debugger](https://developers.facebook.com/tools/debug/) to confirm OG
tags

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

Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-27 15:07:42 +08:00
Jason Lee e61c421395 feat: add CliCommand block with syntax highlighting and multi-example docs (#390)
## Summary

- New markdown-it plugin (`cli-command.ts`) renders `<CliCommand>` tags
as styled code blocks with proper shiki dual-theme color variables
(`--shiki-light` / `--shiki-dark`) for syntax highlighting: longbridge
binary (purple), subcommands (blue), args and inline comments (gray)
- Header changed from compact bar to h2-style title matching SDK Links
section; Install CLI link floats right with no border, pointing to
`/docs/cli`
- Single-line `<CliCommand>content</CliCommand>` tokens (parsed as
paragraph > inline by markdown-it) now correctly handled via Case 2
token splice
- Expanded all non-trade `<CliCommand>` blocks from single-line to
multi-line format with 2–4 real verified examples per command and
locale-aware comments (en / zh-CN / zh-HK) across quote pull, content,
subscribe, security, and watchlist docs

## Test plan

- [ ] Run `bun run dev` and verify CliCommand blocks render with correct
syntax highlighting in light and dark mode
- [ ] Verify h2 title "CLI" appears with Install CLI link on the right
(no border)
- [ ] Verify Install CLI link points to `/docs/cli`
- [ ] Check a few pages across en / zh-CN / zh-HK locales

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

---------

Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2026-03-27 14:19:36 +08:00
Jason Lee 36734e7e02 feat: add topic detail, replies, and create reply APIs with docs (#389)
## Summary

- **openapi.yaml**: add 3 new endpoints (`GET /content/topics/{id}`,
`GET /POST /content/topics/{topic_id}/comments`) with rich Markdown
descriptions, rate-limit tables, and tickers abuse warnings; rename
`list_topic_comments` → `list_topic_replies` and `create_topic_comment`
→ `create_topic_reply` throughout
- **docs (en / zh-CN / zh-HK)**: new pages for `topic_detail`,
`topic_replies`, `create_reply`; update `create_topic` schema to full
`OwnedTopic` response; sync permission copy, rate-limit wording, and
`TipContainer` highlights across all locales
- **ApiReference.vue**: minor formatting cleanup

## Test plan

- [ ] Run `bun run dev` and verify the 3 new pages render correctly in
all 3 locales
- [ ] Confirm `create_topic` response schema now shows the full
OwnedTopic fields
- [ ] Confirm TipContainer warning appears on create_topic and
create_reply pages
- [ ] Verify API reference page shows the renamed operationIds

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

---------

Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-26 20:14:49 +08:00
Jason Lee 8f2d4689dd docs: add OAuth 2.0 auth flow to skill install guide, remove API Key references (#386)
## Summary

- Add OAuth 2.0 authorization section to all three locale Skill install
pages (en / zh-CN / zh-HK), covering: trigger flow, explicit `longbridge
login`, token cache location, and revocation
- Add "Updating the Skill" section noting that `longbridge.zip` is
updated periodically
- Update FAQ entries to point to OAuth 2.0 flow instead of mentioning
API Token
- Remove Legacy API Key sections from `skills/longbridge` references:
`setup.md`, `python-sdk/overview.md`, `rust-sdk/overview.md`, `mcp.md`
(Self-Hosted Binary section removed)
- Fix Rust SDK "Creating Contexts" example to use `Config::from_oauth`
instead of `Config::from_apikey_env`

## Test plan

- [ ] Verify install pages render correctly in all three locales
- [ ] Confirm no remaining references to API Key / API Token in skill
install docs
- [ ] Confirm OAuth 2.0 flow steps are accurate and complete

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

---------

Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-26 13:31:19 +08:00
Jason Lee e3bbf4dec6 feat: improve longbridge skill for investment analysis (#385)
## Summary

- Expand `longbridge` skill description to trigger on investment
analysis requests (not just developer tasks like CLI/SDK usage)
- Add **Investment Analysis Workflow** section guiding Claude to use
Longbridge CLI for news, filings, and community topics before falling
back to WebSearch
- Move setup/auth/rate-limit docs to `references/setup.md` to keep
SKILL.md lean
- Move OG meta tags from static locale configs to dynamic per-page
generation in `config.mts`

## Test plan

- [ ] Verify skill triggers on natural language stock analysis queries
(e.g. "分析持仓", "ARM 昨天表现")
- [ ] Verify `longbridge news` / `news-detail` / `filing-detail`
commands are used before WebSearch in analysis workflow
- [ ] Verify OG tags render correctly per page after config.mts change

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

---------

Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-26 11:40:54 +08:00
Jason Lee b74f40145c docs: add Community content API docs (my-topics, create-topic) (#384)
## Summary

- Add `my_topics` and `create_topic` API reference pages in all 3
locales (en/zh-CN/zh-HK), using `<SDKLinks>` + `<Tabs>` pattern with
CLI, Python, Python async, Node.js, Java, Rust, C++, Go examples
- Rename Content sidebar category → **Community** across all locales
- Rename `security_topics` page title → "Get Community Topics by Symbol"
- Add Community content section to `cli.md` (all locales)
- Update `openapi.yaml`: add `x-codeSamples` for `list_my_topics` and
`create_topic`, fix `create_topic` schema (`title` not required at
schema level), move all community endpoints to `Community` tag
- Update CLI skill overview with `longbridge update` command details

## Key design notes

- `create_topic` page includes an article/post comparison table
explaining title requirement and body format differences
- SDK method signatures verified from source code
(`/Users/jason/work/openapi/`)

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

---------

Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-25 19:21:52 +08:00
Jason Lee 43b364794f docs: restructure Skill install guide with universal methods first
Reorganize the install page to lead with client-agnostic methods (ZIP
download and npx/bunx CLI) before client-specific setup guides. Adds
-g/-y flag explanations, bunx alternative, and replaces OpenClaw slash
command with a natural-language zip install instruction to prevent AI
misinterpretation.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-25 14:54:47 +08:00
Jason Lee 920dbcf5ef docs: Update Skill install message to use .md. 2026-03-25 11:45:17 +08:00
Jason Lee 9476486b64 feat: integrate API appendix into API Reference, remove redundant docs (#383)
## Summary

- 将 HTTP API 认证/错误码文档通过 `x-pages` 扩展嵌入 `openapi.yaml`,在 `/docs/api/`
侧边栏展示为独立信息页
- 更新 `ApiReference.vue`:解析 `x-pages`、侧边栏展示、URL 状态管理、中英文切换
- 将 Socket 文档从 `api-reference/socket/` 移至独立类目 `socket/`(三语言,URL 不变)
- 删除已合并的冗余文档(12 个文件:3 语言 × 4 文件)

## Test Plan

- [ ] 访问 `/docs/api/`,侧边栏顶部显示 Authentication 和 Error Codes
- [ ] 点击 Authentication,展示合并后的 OAuth 2.0 认证内容
- [ ] 点击 Error Codes,展示错误码表格
- [ ] URL 状态:`?page=authentication` / `?page=error-codes`
正确写入,浏览器前进/后退正常
- [ ] 中文路由 `/zh-CN/docs/api` 侧边栏显示 认证 / 错误码
- [ ] Socket 页面(如 `/socket/hosts`)仍可正常访问
- [ ] 侧边栏 API 附录 类目已消失

---------

Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-24 22:13:20 +08:00
Jason Lee 6a4b543645 docs: Add openapi.yaml (#382)
Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-24 21:37:42 +08:00
Jason Lee d7bf3369f6 Fix AI bubble background style in dark mode. 2026-03-24 13:47:37 +08:00
Floyd Wang 35821a9ee7 fix: use --vp-button-brand-text for Skill component white text (#381)
## Summary

- 将 `.skill-btn-primary` 的 `color: #fff` 替换为
`var(--vp-button-brand-text) !important`,修复文字颜色被 VitePress 链接样式覆盖的问题
- 同步将文件内其他两处硬编码 `#fff` 和无效的 `--vp-c-white` 统一替换为
`--vp-button-brand-text`

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

Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-24 11:02:55 +08:00
Jason Lee f8de020b1d fix: improve "more" indicator in Skill.vue supported AI tools (#380)
## Summary
- 移除 `skill-client-chip` 类,消除"更多"文字的按钮样式(背景/边框/内边距)
- 文案从 `更多...` 改为 `等更多` / `& more`,语义更准确(表示"以及其他更多 AI 工具")
- 样式调整:保留字体大小对齐,去掉 `!important`,添加 `align-self: center`

## Test plan
- [ ] 查看 Skill 页面 hero 区域,确认"等更多"显示为普通文本而非按钮样式
- [ ] 检查英文版显示为"& more"

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

---------

Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-24 10:47:34 +08:00
Jason Lee c4dd3714c4 Revert skill paths. 2026-03-23 22:07:48 +08:00
Jason Lee 7a07e916c0 docs: clarify manual-only install for Claude.ai and ChatGPT (#379)
## Summary

- Add blockquote notes to the Claude.ai and ChatGPT sections explaining
that automated installation is not possible due to sandboxed execution
environments
- Claude.ai restricts outbound access to a fixed domain whitelist;
ChatGPT similarly cannot auto-install Skills during a conversation
- Users are directed to the manual download/upload flow in both cases

## Test plan

- [ ] Verify blockquote notes render correctly in all three locales (en,
zh-CN, zh-HK)

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

---------

Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-23 22:02:41 +08:00
Jason Lee 67e3857f58 docs: add skills.sh and GitHub links to OpenClaw install section
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-23 21:42:04 +08:00
Jason Lee e18f7061fc docs: Fix incorrect install skill command. 2026-03-23 21:31:45 +08:00
Jason Lee e03897ccd8 Fix breadcrumb on single page. (#378) 2026-03-23 12:55:44 +00:00
Jason Lee 5305d8cfc2 docs: fix CN region API host to use openapi.longbridge.cn (#363)
## Summary

- Update CN-specific API host from `openapi.longbridge.com` to
`openapi.longbridge.cn` across all language versions (zh-CN, zh-HK, en)
- Affected files: `getting-started.md`, `how-to-access-api.md`,
`refresh-token-api.md`
- Global (non-CN) host `openapi.longbridge.com` remains unchanged

## Test plan

- [ ] Verify CN region docs show `openapi.longbridge.cn`
- [ ] Verify global/production docs still show `openapi.longbridge.com`

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

Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-23 20:53:36 +08:00
Jason Lee c032ae2e83 Fix skill path 404 (#377) 2026-03-23 20:53:05 +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 fbf171fcb9 docs: add C++ OAuth config example to getting-started
Add C++ tab to the OAuth authorization section in getting-started
across zh-CN, en, and zh-HK.
2026-03-23 19:08:36 +08:00
Sunli 7067a8bf78 docs: add C++ examples to all getting-started scenarios
Add C++ tab for account balance, subscribe quote, submit order,
and today orders across zh-CN, en, and zh-HK.
2026-03-23 19:08:36 +08:00
Sunli 744a368119 docs: update C++ ContentContext examples to synchronous style
ContentContext::create(config) now returns synchronously in 4.0.5,
same as QuoteContext and TradeContext. Updated 6 files across
zh-CN, en, and zh-HK.
2026-03-23 19:08:36 +08:00
Sunli 5b3b3e006d docs: add Python (async) examples to getting-started scenarios 2026-03-23 19:08:36 +08:00
Sunli 5f1306f9a1 fix: remove extra blank lines in Python async code examples 2026-03-23 19:08:36 +08:00
Sunli cef44568c7 docs: add Python (async) tab to all SDK code examples
Add AsyncQuoteContext/AsyncTradeContext/AsyncContentContext examples
alongside existing sync Python examples, covering all 143 API pages
across zh-CN, en, and zh-HK.
2026-03-23 19:08:36 +08:00
Sunli 9f491a5951 fix: use absolute path for unocss configFile to resolve lookup error 2026-03-23 19:08:36 +08:00
Sunli b6cb147b28 docs: update SDK version references from 4.0.0 to 4.0.5 2026-03-23 19:08:36 +08:00