diff --git a/.github/workflows/pages.yml b/.github/workflows/pages.yml index 5b27d5a..0338183 100644 --- a/.github/workflows/pages.yml +++ b/.github/workflows/pages.yml @@ -31,12 +31,14 @@ jobs: uses: actions/upload-pages-artifact@v2 with: path: './.vitepress/dist' - - name: Deploy to GitHub Pages - id: deployment - uses: actions/deploy-pages@v2 - name: Deploy to OSS run: | wget https://github.com/aliyun/ossutil/releases/download/v.1.7.17/ossutil-v1.7.17-linux-amd64.zip unzip ossutil-v1.7.17-linux-amd64.zip && cp ./ossutil-v1.7.17-linux-amd64/ossutil ${{github.workspace}}/ && chmod +x ${{github.workspace}}/ossutil ${{github.workspace}}/ossutil cp ./.vitepress/dist/ oss://lb-assets/github/release/release-notes/longbridge-pro-docs/ -u -r -j 10 -e oss-cn-hangzhou.aliyuncs.com -i ${{ secrets.FE_LB_ASSET_ACCESS_KEY_ID }} -k ${{ secrets.FE_LB_ASSET_ACCESS_KEY_SECRET }} --exclude "*.html" --meta=Cache-Control:max-age=31536000 - ${{github.workspace}}/ossutil cp ./.vitepress/dist/ oss://lb-assets/github/release/release-notes/longbridge-pro-docs/ -u -r -j 10 -e oss-cn-hangzhou.aliyuncs.com -i ${{ secrets.FE_LB_ASSET_ACCESS_KEY_ID }} -k ${{ secrets.FE_LB_ASSET_ACCESS_KEY_SECRET }} --include "*.html" --meta=Cache-Control:no-cache \ No newline at end of file + ${{github.workspace}}/ossutil cp ./.vitepress/dist/ oss://lb-assets/github/release/release-notes/longbridge-pro-docs/ -u -r -j 10 -e oss-cn-hangzhou.aliyuncs.com -i ${{ secrets.FE_LB_ASSET_ACCESS_KEY_ID }} -k ${{ secrets.FE_LB_ASSET_ACCESS_KEY_SECRET }} --include "*.html" --meta=Cache-Control:no-cache + - name: Deploy to GitHub Pages + id: deployment + uses: actions/deploy-pages@v2 + + \ No newline at end of file diff --git a/.vitepress/config.mts b/.vitepress/config.mts index 4deb296..3edcc80 100644 --- a/.vitepress/config.mts +++ b/.vitepress/config.mts @@ -26,7 +26,7 @@ const docsSidebar = convertDocsToSidebars(docs); // https://vitepress.dev/reference/site-config export default defineConfig({ - base: '/longbridge-pro-docs/', + base: process.env.NODE_ENV === 'development' ? '/' : 'https://assets.lbkrs.com/github/release/release-notes/longbridge-pro-docs/', title: "Longbridge Pro Releases", description: "Longbridge Pro Releases", ignoreDeadLinks: true, diff --git a/docs.json b/docs.json index 0637a08..babc64e 100644 --- a/docs.json +++ b/docs.json @@ -1 +1,191 @@ -[] \ No newline at end of file +[ + { + "depth": 0, + "title": "Longbridge Pro", + "node_token": "KPQIwj39NibH4RkqfdCc9R9Nnkg", + "parent_node_token": "", + "obj_create_time": "1696909411", + "obj_edit_time": "1697005926", + "obj_token": "NVhzdJji4oBXrRxjDlscRW5JnUD", + "children": [ + { + "depth": 1, + "title": "v2.4.0 - 2023.09.07", + "node_token": "NbRUw1bRaiZ4TMkbW1FcRtPunZd", + "parent_node_token": "KPQIwj39NibH4RkqfdCc9R9Nnkg", + "obj_create_time": "1696922741", + "obj_edit_time": "1697007480", + "obj_token": "PVsDdDUgRoA9bAxW4qhcdrA3nDg", + "children": [], + "has_child": false, + "content": "# v2.4.0 - 2023.09.07\n\n## 更新内容\n\n- 分时图表支持图表下单,在分时上可快捷操作下单、改撤单;\n- 自选添加表头设置、智能排序等个性化设置功能;\n- 新增邮箱、账号 ID 的登录方式,可选择任意登录方式;\n- 优化分时图坐标样式。\n\n## 功能介绍\n\n分时图表支持图表下单,在分时上可快捷操作下单、改撤单\n\n\n\n自选添加表头设置、智能排序等个性化设置功能\n\n\n\n新增邮箱、账号 ID 的登录方式,可选择任意登录方式\n\n\n\n", + "meta": { + "slug": "v2.4.0", + "hide": true + }, + "fileTokens": { + "XP6WbX7YwohbU3xgKP9cV5c8nke": { + "token": "XP6WbX7YwohbU3xgKP9cV5c8nke", + "type": "image" + }, + "R3V3bQ7ckoXInHxFmahcr6Q8nAf": { + "token": "R3V3bQ7ckoXInHxFmahcr6Q8nAf", + "type": "image" + }, + "So7SbfiAsoTOu8x688ccUkETnph": { + "token": "So7SbfiAsoTOu8x688ccUkETnph", + "type": "image" + } + }, + "slug": "pro/v2.4.0", + "position": 0, + "filename": "pro/v2.4.0.md" + }, + { + "depth": 1, + "title": "v2.3.0 - 2023.07.24", + "node_token": "KkCPw4XemirNuWkuT2acEC8InnI", + "parent_node_token": "KPQIwj39NibH4RkqfdCc9R9Nnkg", + "obj_create_time": "1696922763", + "obj_edit_time": "1697007623", + "obj_token": "XIu5daqBpoY1dCxp5ticUv0Xnyg", + "children": [], + "has_child": false, + "content": "# v2.3.0 - 2023.07.24\n\n## 更新内容\n\n- 行情图表 K 线中新增交易功能,支持图表上进行下单、改单、撤单;\n- 增加了快讯模块组件,可便捷查看 7×24 资讯;\n- 订单类型不符合当前交易时段支持的类型时,提醒并支持快捷转换;\n- 下单时段变更时,下单组件的默认订单类型跟随交易时段调整。\n\n## 功能演示\n\n行情图表 K 线中新增交易功能,支持图表上进行下单、改单、撤单\n\n\n\n增加快讯模块组件,可以便捷查看 7×24 资讯\n\n\n\n当订单类型不符合当前交易时段支持的类型时,提醒并支持快捷转换\n\n\n\n", + "meta": { + "slug": "v2.3.0", + "hide": true + }, + "fileTokens": { + "JXGSbSannoJs4JxGO1dcz4nnnfc": { + "token": "JXGSbSannoJs4JxGO1dcz4nnnfc", + "type": "image" + }, + "JhtAb26V1o6U1jxbQwOcMZOQnIb": { + "token": "JhtAb26V1o6U1jxbQwOcMZOQnIb", + "type": "image" + }, + "RiaFbfldooaic0xHVYrcYv9nnUe": { + "token": "RiaFbfldooaic0xHVYrcYv9nnUe", + "type": "image" + } + }, + "slug": "pro/v2.3.0", + "position": 1, + "filename": "pro/v2.3.0.md" + }, + { + "depth": 1, + "title": "v2.2.0 - 2023.06.27", + "node_token": "KeUTw33ygiz98ekipquchj1Vnuc", + "parent_node_token": "KPQIwj39NibH4RkqfdCc9R9Nnkg", + "obj_create_time": "1696922836", + "obj_edit_time": "1697007605", + "obj_token": "M8NkdSRvVo0MJFxulSmc90m4nRb", + "children": [], + "has_child": false, + "content": "# v2.2.0 - 2023.06.27\n\n## 更新内容\n\n- 新增港股新股申购,支持通过桌面端直接申购新股;\n- 画布布局支持磁吸功能,并增加画布介绍说明;\n- 新版本更新提示时,增加近期版本更新说明;\n- 可通过设置对自选列表进行自定义分组和顺序调整;\n- 优化用户首次交易期权时的期权开通风险声明。\n\n## 功能演示\n\n新增港股新股申购,支持通过桌面端直接申购新股\n\n\n\n画布布局支持磁吸功能,并增加画布介绍说明\n\n\n\n新版本更新提示时,增加近期版本更新说明\n\n\n\n自选列表支持自定义分组和分组顺序调整\n\n\n\n", + "meta": { + "slug": "v2.2.0", + "hide": true + }, + "fileTokens": { + "XzRQbKQcGoOWcvxi563cKvZNnkb": { + "token": "XzRQbKQcGoOWcvxi563cKvZNnkb", + "type": "image" + }, + "OqiBbXnsAoigvXx26ZkccYEUn8c": { + "token": "OqiBbXnsAoigvXx26ZkccYEUn8c", + "type": "image" + }, + "IY7dbmaR4oQrrcxkiCBcTacmnyc": { + "token": "IY7dbmaR4oQrrcxkiCBcTacmnyc", + "type": "image" + }, + "PUZIb0zKeo7RdMxZaDucF9BUn9d": { + "token": "PUZIb0zKeo7RdMxZaDucF9BUn9d", + "type": "image" + } + }, + "slug": "pro/v2.2.0", + "position": 2, + "filename": "pro/v2.2.0.md" + }, + { + "depth": 1, + "title": "v2.1.1 - 2023.05.26", + "node_token": "C84XwJi7kiw37ukFobyc9Xz9nrg", + "parent_node_token": "KPQIwj39NibH4RkqfdCc9R9Nnkg", + "obj_create_time": "1696924652", + "obj_edit_time": "1697011721", + "obj_token": "GERodf0lbo39V6xbKr1cLMZ2npg", + "children": [], + "has_child": false, + "content": "# v2.1.1 - 2023.05.26\n\n## 更新说明\n\n- 新增自定义模式,支持画布布局;\n- 期权链组件性能优化,提升高频行情刷新时的性能;\n- 登录页优化,提升加载速度;\n- 其他细节优化,提升用户体验。\n\n