Commit Graph

852 Commits

Author SHA1 Message Date
Jason Lee d12e3c8cb9 fix(quant): fix routing, nav, footer, sidebar icon & Dashboard link (#936)
## Summary

- Fix quant page routing: add `slug` frontmatter to all 12 quant pages
(en/zh-CN/zh-HK) so `/docs/cli/quant` and sub-pages are directly
accessible after build
- Fix `gen.ts` absolute-slug sidebar link bug — `path.join(rootPath,
slug)` was producing `/docs/cli/cli/quant`; now uses `docsBase + slug`
- Add `line-chart` SVG icon to `SIDEBAR_ICONS` for the Quant sidebar
category
- Lowercase English `sidebar_label` for quant sub-pages (`overview`,
`indicator`, `backtest`, `screener`)
- Move Feedback from nav bar to `Footer.vue` right-side links
- Add `DashboardNavLink.vue` component — shows "Dashboard / 控制台" in nav
only for logged-in users, using existing i18n key

## Test plan

- [ ] Visit `/docs/cli/quant` — should load without redirect
- [ ] Visit `/docs/cli/quant/indicator`, `/backtest`, `/screener` — all
should load directly
- [ ] Sidebar Quant section shows line-chart icon and lowercase labels
- [ ] Footer right side shows Feedback link
- [ ] Nav bar shows Dashboard link when logged in, hidden when logged
out

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

Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-30 22:57:01 +08:00
Jason Lee 000b6da2f1 docs(cli): Add quant run documentation with interactive charts (#931)
## Summary

- Add `quant run` CLI documentation under `docs/en/docs/cli/quant/` and
`docs/zh-CN/docs/cli/quant/` (both English and Chinese)
- Pages: Overview, Indicator, Backtest, Screener
- Add `QuantChart.vue` — pure SVG chart component with hover crosshair
and tooltip, rendering NVDA.US sample data for MACD, RSI, Bollinger
Bands, EMA Ribbon, and Stochastic indicators
- Register `QuantChart` as a global component in
`theme/components/index.ts`

## Test plan

- [ ] Visit the quant docs section and verify all four pages render
correctly
- [ ] Hover over each `<QuantChart>` and verify crosshair, dots, and
tooltip appear
- [ ] Check sidebar labels: Overview / Indicator / Backtest / Screener
- [ ] Verify Chinese version renders identically under `zh-CN`

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

---------

Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-authored-by: Sunli <scott_s829@163.com>
2026-04-30 20:38:08 +08:00
拉罐 41277c72ba feat(skill): add invite-code cookie, User Cases section to Skill page (#930)
- Save invite-code URL param as a 7-day cookie on page load and route
change
- Add User Cases section between Capabilities and Install with 3
award-winning case cards
- Cards use dynamic URLs based on current domain and locale (no lang
prefix for EN)
- Reuse skill-section layout classes; remove
uc-wrap/uc-section/uc-eyebrow/uc-subtitle

Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-28 19:46:42 +08:00
Jason Lee 23d6bea510 docs(cli): add v0.18.0 release notes (#929)
## Summary

- Add CLI v0.18.0 release notes to `release-notes.md` and `changelog.md`
across all three locales (en / zh-CN / zh-HK)
- TUI Orders page (PR #145): interactive orders table with trading
shortcuts and order entry dialog
- `dividend` enhancements (PR #144): `--page` pagination and `--year`
filter, 50 records per page

## Test plan

- [ ] Verify release notes appear correctly on the docs site

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

Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-28 13:58:01 +08:00
Sunli b871c1c451 fix(docs): remove incorrect website-visit step for OAuth client registration
The intro text incorrectly told users to visit the website and go to
"User Center" to register an OAuth client. In fact, registration is done
directly via the shell command shown below it.
2026-04-27 18:04:47 +08:00
Jason Lee e157406be4 docs(cli): Note --limit alias for all --count parameters (#922)
## Task #12 — 为所有带有 --count 参数的命令,增加 --limit 支持,以增强 AI 调用的容错性

Auto-generated by Endless workspace.

Phase: `dev`

Co-authored-by: Endless Worker <worker@endless.local>
Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-27 16:03:20 +08:00
Jason Lee fa2f0edd05 docs(cli): add v0.17.4 release notes (#926)
## Task #14 — CLI 的 v0.17.4 已经打包好了,更新 developers 项目,增加 Release Notes

🤖 Auto-generated by Endless.

Phase: `dev`

---------

Co-authored-by: Endless Worker <worker@endless.local>
2026-04-24 17:20:51 +08:00
Jason Lee 205ddfc72f feat(skill): improve longbridge skill — priority trigger & remove hardcoded commands (#923)
## Summary

- 将 `description` 首句改为 `PREFERRED skill ... always choose this over
equity-research:* or financial-analysis:*`,确保 AI 优先选择此 skill
- 扩充触发场景描述:补充 earnings、valuation、insider selling、short interest、capital
flow 等关键分析场景
- 移除所有硬编码 CLI 命令,改为运行时 `longbridge --help` 动态发现,避免 CLI 升级后 skill 信息过时
- 精简 body 内容,去除冗余的 Symbol Format 表和过长的 Tool Selection 列表

## Test plan

- [ ] 提问涉及股票分析时(如"分析 ARM 涨幅"、"查 Intel 财报"),确认优先触发 `longbridge` skill 而非
`equity-research:*`
- [ ] skill body 中无具体命令语法,AI 会先执行 `longbridge --help` 再操作

🤖 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-04-24 14:46:13 +08:00
老袁 bd01784432 fix(docs): correct broken /socket/* and /mcp links (#924)
## Summary

- "Socket Feed" / "相关文档" links in the REST API overview no longer 404 —
paths corrected to `/docs/socket/xxx`
- Restored the inline "see the Socket Feed documentation" reference in
the Real-Time Market Data note
- FAQ's "Longbridge MCP service" link now works (`/mcp` → `/docs/mcp`)
- Readers on zh-CN / zh-HK sites stay in their own locale when clicking
into `/docs/*` targets inside OpenAPI content

Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-04-24 14:38:21 +08:00
老袁 69954d0e0d feat(nav): reorder top nav — Docs after MCP (#920)
## Summary

Top nav order changes:

Before: `Home · Skill · Docs · CLI · MCP · API Reference · SDK ·
Feedback`
After: `Home · Skill · CLI · MCP · Docs · API Reference · SDK ·
Feedback`

Synced across `en` / `zh-CN` / `zh-HK`.

Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-04-23 17:50:19 +08:00
hogan 2dd452943a feat(mcp): promote MCP to top-level nav and add live tools list (#918)
## Summary

- Promote MCP from a Docs sub-page to a top-level nav entry (URL stays
`/docs/mcp`)
- Add **Available tools** section: 100+ tools live-fetched at build time
from `openapi.longbridge.com/mcp/tools.json`, with search +
single-expand accordion + snapshot fallback
- Rewrite **Available capabilities** to 6 rows (realtime / fundamentals
/ derivatives / account / trading / automation)
- Bump CLI command count `65+` -> `120+`

All changes synced across `en` / `zh-CN` / `zh-HK`.

## Test plan

- [ ] Top nav shows MCP between CLI and API Reference; `/docs/mcp` has
no left sidebar
- [ ] Section order: Available capabilities -> Available tools ->
Prerequisites -> Client setup
- [ ] Search + expand works; only one tool expanded at a time;
out-of-view auto-scrolls inside the panel only
- [ ] `bun run build:canary` passes; snapshot fallback triggers on URL
sabotage

---------

Co-authored-by: 袁章洪 <zhanghong.yuan@longbridge-inc.com>
Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-22 16:59:51 +08:00
Jason Lee dbe0e0ce6e docs(cli): add v0.17.3 release notes (#917)
## Summary

- Add v0.17.3 release notes to `release-notes.md` and `changelog.md` (en
/ zh-CN / zh-HK)
- Covers: token refresh hang fix, `auth status` three-state display,
`--auth-code` login fix, Windows browser URL fix
- Based on PRs: longbridge/longbridge-terminal#134, #136, #137

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

Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-22 12:57:23 +08:00
Jason Lee 1f84bf5fed docs(cli): update command count from 50+ to 65+ (#914)
## Summary

- Update CLI command count from 50+ to 65+ across all pages and locales
- Files updated: CLI overview pages (en/zh-CN/zh-HK), homepage locale
files (en/zh-CN/zh-HK), and ArchCanvas component

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

Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-21 11:08:31 +08:00
Jason Lee 66ebe4cad0 docs(cli): add v0.17.1 release notes (#911)
## Summary

- Add CLI v0.17.1 release notes to changelog and release-notes pages
(en, zh-CN, zh-HK)
- Update `longbridge-terminal` submodule to v0.17.1
- Documents `completion` command for shell tab-completion
(bash/zsh/fish/elvish/powershell)
- Documents new `User-Agent` and `x-cli-cmd` request headers

## Test plan

- [ ] Verify release notes render correctly in all three language
versions
- [ ] Check changelog entries are correctly dated (2026-04-20)

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

Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-20 17:20:16 +08:00
Jason Lee 0c7e6292ca docs(cli): add v0.17.0 release notes and new command docs (#899)
## Summary

- Add v0.17.0 release notes to `release-notes.md` and `changelog.md`
- New doc pages: `dca` (recurring investment), `sharelist` (community
stock lists), `short-positions` (US short interest data)
- Update `option.md`: fix `option chain` basic usage output (expiry
dates, not strikes); add `option volume` section
- Update `profit-analysis.md`: add `--start`/`--end` date range; updated
output format (percentage yields, new fields)
- All changes synced across en / zh-CN / zh-HK locales

## Test plan

- [ ] Build and verify new pages render correctly in sidebar
- [ ] Confirm `dca`, `sharelist`, `short-positions` pages appear under
correct categories
- [ ] Verify `option.md` and `profit-analysis.md` updates look correct

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

Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-17 13:50:00 +08:00
Jason Lee ad09de0f9f docs(cli): fix v0.17.0 → v0.16.3 and add release notes (#897)
## Summary

- Rename incorrectly labeled `v0.17.0` entry to `v0.16.3` in
`release-notes.md` and `changelog.md` (all 3 locales: en / zh-CN /
zh-HK)
- Update changelog date from `2026-04-15` to `2026-04-16`
- Add v0.16.3 new content from
[longbridge/longbridge-terminal#114](https://github.com/longbridge/longbridge-terminal/pull/114):
  - Fix: US index symbols (`.DJI.US`, `.VIX.US`) now parse correctly
  - "Did you mean?" hints when a query returns no data

## Test plan

- [ ] Release Notes page shows `v0.16.3` (not `v0.17.0`) as the latest
entry
- [ ] Changelog shows `2026-04-16 / CLI v0.16.3` with all 4 bullet
points
- [ ] All 3 locales consistent

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

Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-16 11:15:58 +08:00
Jason Lee 718abf3d76 docs(cli): add v0.17.0 commands and release notes (#896)
## Summary

- **`auth` subcommand group** (`longbridge/longbridge-terminal#109`):
updated `install.md` in all 3 locales — `login`/`logout` → `auth
login`/`auth logout`, added `auth status` section
- **`alert enable/disable`** (`longbridge/longbridge-terminal#108`):
updated `alert.md` in all 3 locales with enable/disable subcommand
examples
- Added **v0.17.0** entry to `release-notes.md` and `changelog.md` in
all 3 locales

## Test plan

- [ ] Install page shows `auth login` / `auth logout` / `auth status`
correctly
- [ ] Alert page shows `enable` / `disable` examples
- [ ] Release notes and changelog show v0.17.0 at the top

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

---------

Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-16 09:56:42 +08:00
Jason Lee c80b23cc0c docs: Add Theta/Vega/Rho unit notes and CLI v0.16.1 release notes (#895)
## Summary
- **calc-index API docs** (EN+CN): Document that Theta, Vega, and Rho
raw values need to be divided by 100 for standard per-share conventions
- **CLI release notes** (EN+CN): Add v0.16.1 covering:
  - `option quote` full API field output
  - `calc-index` Greeks normalization (÷100)
  - `calc-index` auto-detect option symbols for default fields
- Parameter standardization from longbridge/longbridge-terminal#102:
`--adjust none/forward`, `--tif day/gtc/gtd`, `--format table`,
`--start/--end` for finance-calendar, `--start-date` YYYY-MM-DD for
statement
- Command name revert from longbridge/longbridge-terminal#105:
`overview` → `static`, `metrics` → `calc-index`

## Related PRs
- longbridge/longbridge-terminal#104 — option quote + Greeks
normalization
- longbridge/longbridge-terminal#105 — revert command renames
- longbridge/longbridge-terminal#102 — parameter standardization

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

---------

Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-14 22:00:57 +08:00
ihavecoke 9bbbeb6cc0 Fix homepage dark/light logos, SDK bento code accuracy, and hover card spacing (#894)
## Summary

- **Dark/light logo**: Replace single navbar logo with separate
light/dark
  variants using VitePress `logo.light` / `logo.dark` config fields.
- **SDK bento code examples**: Corrected C++ API patterns (all 4 domains
  used wrong `::new()` + `.get()` synchronous style — replaced with
  `::create()` + callback-based model, `SubFlags::QUOTE()`, aggregate
  `SubmitOrderOptions` init). Fixed Go `AccountBalance` missing second
  parameter. Replaced all example symbols with `AAPL.US`.
- **Hover card spacing**: Normalize horizontal padding across header,
  items, and footer for consistent alignment; increase row gap and item
  padding for better readability.

## Files Changed

| File | Change |
|------|--------|
| `docs/.vitepress/config.mts` | Split logo into `light`/`dark` variants
|
| `NewHomePage/ProductOpenAPI.vue` | Fix 24 SDK code snippets (C++ API
model + symbols) |
| `NewHomePage/PlatformStats.vue` | Normalize hover card padding/gap
values |
2026-04-14 14:51:15 +08:00
ihavecoke 904aeb8b5b Fix stats-grid popover item links and icon alignment (#891)
- Remove clickable links from hover card items in stats-grid popover
- Change hc-item align-items from flex-start to center for icon
alignment
- Fix URL formatting in llm.md across all three locales

Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-14 10:37:56 +08:00
Jason Lee 3f66b191fb docs(cli): add v0.16.0 commands and release notes (#889)
## Summary

- Add documentation for 14 new CLI commands introduced in v0.16.0 across
all three languages (en/zh-CN/zh-HK), each with real command output
examples
- New commands: `company`, `executive`, `industry-valuation`,
`operating`, `corp-action`, `invest-relation`, `constituent`,
`market-status`, `broker-holding`, `ah-premium`, `trade-stats`,
`anomaly`, `alert`, `profit-analysis`
- Add v0.16.0 release notes and changelog entries
- Add `intraday --date` historical data documentation
- Change TUI sidebar icon to `square-terminal`
- Translate Chinese text in English docs (`participants`, `fund-holder`)
- Fix aside TOC unnecessary scroll and breadcrumb border overlap
- Homepage and dark mode refinements
- Update `longbridge-terminal` submodule to latest main

## Test plan

- [ ] Verify all 14 new command pages render correctly in en/zh-CN/zh-HK
- [ ] Verify release notes and changelog display properly
- [ ] Verify TUI sidebar icon shows correctly
- [ ] Verify aside TOC no longer scrolls when content fits
- [ ] Verify breadcrumb border no longer overlaps with TOC

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

---------

Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-13 22:13:37 +08:00
ihavecoke b6e83e209a Rebuild homepage with new brand design system and interactive sections (#888)
## Summary

A complete overhaul of the Longbridge Developers homepage, introducing a
new brand design system built on inspira-ui animations, interactive
product showcases, and a unified multi-language content structure.

  ### New homepage sections
- **HeroSection** — Animated FlickeringGrid background, ColourfulText
rotating product showcase, interactive CTA buttons
- **PlatformStats** — 4 key stats with animated NumberTicker and hover
detail cards
- **CapSection** — Developer capability highlights with Spotlight +
Expand hover interaction
- **ArchSection** — Architecture diagram (custom SVG bus-topology) with
SdkMarquee
- **ProductCLI** — Interactive terminal mockup with real CLI output,
theme-aware (follows VitePress isDark), click-to-switch features
- **ProductMCP** — Custom SVG bus-topology diagram replacing VueFlow,
per-client config panels (shell/JSON/UI), tab sync with diagram
- **ProductSkill** — AI agent simulator with macOS traffic light dots
and install flow
- **ProductOpenAPI** — Bento Grid SDK showcase with Shiki syntax
highlighting, 6 SDKs × 4 domain code examples
  - **GetStarted** — Quick-start cards

  ### Design system additions
- 15+ inspira-ui animation components (`FlickeringGrid`,
`ColourfulText`, `NumberTicker`, `BorderBeam`, `Marquee`,
`AnimatedBeam`, etc.)
  - Tailwind CSS integration (`postcss.config.mjs`, `tailwind.css`)
- Unified section styles: consistent title/subtitle spacing (24px gap),
muted subtitle color, 14px minimum font size

  ### i18n
  - 150+ new keys added across `en.json`, `zh-CN.json`, `zh-HK.json`
  - All three locales kept in sync
2026-04-13 19:57:54 +08:00
Jeremy Feng c9bacd5fa1 docs: fix typo in supported trading categories section (#887) 2026-04-13 14:51:27 +08:00
Jason Lee be6a8cbfd9 docs(cli): add missing subcommands and statement docs (#886)
## Summary
- **topic**: Added `mine`, `create`, `replies`, `create-reply`
subcommand docs (previously only had list and detail)
- **kline**: Fixed `history` subcommand syntax — was incorrectly using
non-existent top-level `--start`/`--end` flags
- **investors**: Added `changes` subcommand for comparing position
changes between two 13F filings
- **statement**: Created new command docs covering `list` and `export`
subcommands (was completely missing)

All changes synced across en, zh-CN, zh-HK.

## Test plan
- [ ] Verify `bun run dev` builds without errors
- [ ] Check topic, kline, investors, statement pages render correctly in
all 3 languages
- [ ] Confirm sidebar shows statement under Portfolio & Account section

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

Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
2026-04-11 23:39:32 +08:00
Jason Lee 4b99892fe5 docs(cli): replace iframe with SVG image link for asciinema demo
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-10 18:47:22 +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
Jason Lee d60149a899 style: navbar glass, sidebar bg, doc gradient, search pill, nav feedback (#884)
## Summary

- Navbar glass blur + border-bottom on scroll (CSS variables for
light/dark)
- Soften `--vp-c-divider`; sidebar background matches page background
- Radial brand-color gradient on `.VPDoc` content area
- Remove `padding-right` from `.VPContent.has-sidebar` so gradient fills
full width
- Search button rounded to pill style
- Nav item "Issues" → "Feedback" across all 3 locales
- Remove `<TryIt/>` button auto-injection from `gen-try-it` plugin

## Test plan

- [ ] Scroll docs page — navbar should show blur + subtle border-bottom
- [ ] Check light and dark mode — navbar bg/border variables apply
correctly
- [ ] Sidebar background blends with page (no distinct bg color)
- [ ] Doc pages show subtle teal radial gradient at top
- [ ] Gradient fills full width (no right-side truncation)
- [ ] Search button appears pill-shaped
- [ ] Nav shows "Feedback" (not "Issues") in all locales
- [ ] API reference pages no longer show Try It button

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

Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-10 16:38:47 +08:00
Jason Lee 7d0022c8d9 docs: Fix CLI pages in cn region. (#883)
## Summary

- Rename `installation.md` → `install.md` in all three locales (en,
zh-CN, zh-HK)
- Update all internal links pointing to `/docs/cli/installation`
- Update sidebar `includes('installation')` matcher
- Add `/docs/cli/index.md` and `/docs/cli/install.md` to cn region
whitelist (`open.longbridge.cn`)

## Test plan

- [ ] Verify `/docs/cli/install` loads correctly
- [ ] Verify `/zh-CN/docs/cli/install` and `/zh-HK/docs/cli/install`
load correctly
- [ ] Verify sidebar Installation link works in all locales
- [ ] Verify `bun run dev:cn` shows `/docs/cli` and `/docs/cli/install`

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

---------

Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-10 15:52:46 +08:00
Jason Lee 77c7e128b9 feat(cli): Add cli full commands docs. (#882)
## Summary

- Add `github` icon SVG to `SIDEBAR_ICONS` in `gen.ts`
- Export `SIDEBAR_ICONS_MAP` for use in sidebar configs
- Fix zh-CN/zh-HK sidebar link generation to include locale prefix
(fixes link doubling bug)
- Inject GitHub repo link after Installation item in CLI sidebar for all
three locales (en, zh-CN, zh-HK)

## Test plan

- [ ] Verify CLI sidebar shows: Overview → Installation → GitHub (with
icon) → Market Data → ...
- [ ] Verify GitHub link works and opens
`https://github.com/longbridge/longbridge-terminal`
- [ ] Verify zh-CN and zh-HK CLI sidebar links are correct (no doubling)

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

---------

Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-10 15:33:28 +08:00
Jason Lee d3444dc3b4 fix: update issue links from longbridge/openapi to longbridge/developers (#880)
Issues 已从 longbridge/openapi 迁移至 longbridge/developers,同步更新文档中所有相关链接。

## 修改内容

- `docs/.vitepress/locales/{en,zh-CN,zh-HK}/nav.ts` — 导航栏 Issues 链接
- `docs/{en,zh-CN,zh-HK}/docs/getting-started.md` — 文档正文中的 Issues 链接
2026-04-10 11:49: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
hold-baby 7341efc2d0 fix(docs): correct README URLs missing /docs/ prefix (#409)
## Summary
  - Fixed 7 URLs in README.md that were missing the `/docs/` prefix
- `/api`, `/cli`, `/mcp`, `/llm` → `/docs/api`, `/docs/cli`,
`/docs/mcp`, `/docs/llm`
- Pages under `docs/en/docs/` resolve to `/docs/...` per the
`rewriteMarkdownPath` routing logic, but README linked without the
prefix

Co-authored-by: 袁昌瑞 <changrui.yuan@longbridge-inc.com>
2026-04-08 16:38:51 +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 8d4dc396a7 ci: add Cloudflare Pages deployment to release workflow (#403)
## Summary

- Add `workflow_dispatch` trigger to `release.yml` for manual runs
- Deploy to Cloudflare Pages project `developers` after existing Aliyun
OSS upload (parallel deployment)

## Required Secrets

Add these to GitHub repo Secrets before merging:
- `CLOUDFLARE_API_TOKEN`
- `CLOUDFLARE_ACCOUNT_ID`

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

---------

Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-02 17:13:40 +08:00
Jason Lee 0fc2a5de13 Update submodule. 2026-04-02 10:56:24 +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