Commit Graph

36 Commits

Author SHA1 Message Date
xiaobo-gaga 2fd77aaff9 Add Mintlify-style API endpoint catalog pages and generator 2026-02-27 19:00:09 +08:00
xiaobo-gaga 68c9cf1f63 Split Try-It APIs per endpoint and wire into CI 2026-02-27 18:47:43 +08:00
xiaobo-gaga e7b9721a51 Implement OpenAPI-driven API validation pipeline baseline 2026-02-27 18:35:49 +08:00
xiaobo-gaga 235bf5bea3 Add OAuth2-based HTTP API validation script for docs verification 2026-02-27 18:32:26 +08:00
Geylnu f9a57355ce fix: configure API base URL for longport-internal SDK environment (#331)
Co-authored-by: 石石 <lei.yang@longbridge-inc.com>
2025-08-18 16:02:32 +08:00
Geylnu 58c6f7df4c Revert "feat: replace localStorage with Internal API for user information" (#330)
Reverts longportapp/openapi-website#329
2025-08-15 19:28:12 +08:00
Geylnu 35345af978 feat: replace localStorage with Internal API for user information (#329)
- Replace localStorage-based session management with LongPort Internal
API calls
- Add LongPort Internal SDK script injection via head tag and Vite
plugin
- Create TypeScript definitions for Internal SDK interfaces (UserInfo,
Member, Setting, etc.)
- Refactor UserAvatar component to use Internal API for user info and
login state
- Add useAvatar composable for fetching user avatar from Internal API
- Update UserAvatarIcon to handle empty avatar state with fallback
styling
- Include SDK type definitions in TypeScript compilation
- Update Node.js engine requirement to >=24.0.0
- Remove @ts-ignore comments for Vite plugins
-  Add Edit Link

Co-authored-by: 石石 <lei.yang@longbridge-inc.com>
2025-08-15 13:46:29 +08:00
hold-baby bb3123302c Release v2 (#328)
新增针对现有的 Http 接口提供了一个在线调试面板,可在线对当前 API
的参数进行调试,便于用户更直观的查看返回结果并提供复制和下载按钮。调试默认使用模拟账户的凭证,真实账户需要手动填写

---------

Co-authored-by: 石石 <lei.yang@longbridge-inc.com>
Co-authored-by: tzyoo <tzyitooo@gmail.com>
Co-authored-by: 袁昌瑞 <changrui.yuan@longbridge-inc.com>
2025-07-18 16:36:28 +08:00
Jason Lee 0517c68999 Upgrade Docusaurus v3.x (#253)
- [x] `@apply` 无法工作, https://github.com/facebook/docusaurus/issues/10005
- [x] `bun run build` 无法工作:`[ERROR] Client bundle compiled with errors
therefore further build is impossible.`
2025-04-02 18:05:33 +08:00
Jason Lee cfec198ff2 Remove Swagger, just use simple Markdown files. (#314) 2025-03-20 16:13:25 +08:00
Jason Lee 8a777a29c2 chore: Switch to use Bun to dev and build. (#312) 2025-03-20 14:15:43 +08:00
ihavecoke 3ed9935014 feat: Add support for llms.txt file deployment (#306) 2025-03-19 17:40:18 +08:00
ihavecoke 5c82112707 feat: Implement raw markdown file processing and distribution (#305) 2025-03-19 14:25:33 +08:00
Jason Lee 3db9fde5ed 重构 API 文档结构,给每个文件增加 SDK 的文件链接。 (#268)
<img width="903" alt="image"
src="https://github.com/longportapp/openapi-website/assets/5518/c26d8c42-ae93-4acb-9550-286a52bf210a">
2024-05-20 19:28:41 +08:00
Jason Lee 11764eb201 Upgrade Tailwind CSS v3.3 2023-03-29 11:01:26 +08:00
Jason Lee c23a5320b1 Upgrade docusaurus@v2.4.0 and improve theme. 2023-03-28 19:23:50 +08:00
Jason Lee e55425bef4 查找替换 Longbridge 改为 LongPort 2023-03-09 14:39:57 +08:00
王一旋 9be1568825 Use cross-env to inject env 2022-06-06 17:38:10 +08:00
王一旋 44bd7b4bc8 Add Tabs component
微调 Tabs 样式
2022-06-06 16:39:16 +08:00
webbillion 279f42cbb4 WIP 调整 SDK 页面,并添加 markdown 自定义内容 (#134)
* 调整 SDK 页面

* 升级 tailwind 和 sdk 文件位置
2022-05-13 11:01:08 +08:00
mixbo e12c060dfc Support local dev redirect to /docs (#94)
* Local dev server index should redirect to /docs

* Nav item developer redirect to open domain
2022-05-07 22:24:42 +08:00
webbillion c563cefd02 添加新的语言选择菜单 (#78)
* 添加 多语言切换组件

* 暂时修复服务端渲染报错的问题

* 适配服务端渲染使用 hook 获取 locale

* 优化简体中文路径展示

* 现在移动端侧边栏会隐藏多语言选项

* 移除多余注释

* 现在 locale 的 cookie 会写在根域名下面

* 优化获取根域名的方式

* 现在下拉菜单会在点击其它地方时关闭

* 修复语言 cookie 过期的问题

Co-authored-by: 于跃 <yue.yu_@longbridge.sg>
2022-05-06 17:48:46 +08:00
ihavecoke f79add93ff Add i18n start script 2022-05-04 18:11:35 +08:00
Joe 2a9d05019a add mermaid support; add binary protocol document 2022-04-28 20:34:21 +08:00
Jason Lee c97b6e225f Fix build swapper docs on canary deployment 2022-04-25 20:10:18 +08:00
Jason Lee fe909f7911 调整 Swagger 自动生成的 Markdown 文件 Git ignore,只在发布的时候走 CI build 2022-04-25 19:30:26 +08:00
Jason Lee 815f1ea1d4 改进 yarn dev:swagger 避免 Crash,同时监控 templates 2022-04-25 17:20:43 +08:00
ihavecoke f54554638c Add more docs 2022-04-25 14:51:46 +08:00
ihavecoke c1372fa926 Add script to watch swagger config convert to markdown 2022-04-25 14:51:46 +08:00
ihavecoke 02520b0026 Add swagger to generate docs 2022-04-25 14:51:44 +08:00
Jason Lee 00921ec58c 引入 TailwindCSS,引入 GitHub Markdown Style 2022-04-24 17:21:55 +08:00
于跃 f49721f5d6 feat: add image preview function and remove last updated 2022-04-22 14:19:56 +08:00
ihavecoke 50611300f2 Add custom webpack config for change webpack dist path 2022-04-17 20:28:31 +08:00
ihavecoke b839be66fc Change build script out directory 2022-04-15 11:56:07 +08:00
ihavecoke d75f464b0a Add canary & release build script 2022-04-14 15:15:37 +08:00
ihavecoke e94ac5b5e2 setup project base files 2022-04-14 12:09:45 +08:00