Skip to content

Commit

Permalink
feat: change base path
Browse files Browse the repository at this point in the history
  • Loading branch information
阮文涛 committed Oct 11, 2023
1 parent 7503a1c commit 7137583
Show file tree
Hide file tree
Showing 5 changed files with 224 additions and 8 deletions.
10 changes: 6 additions & 4 deletions .github/workflows/pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
${{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


2 changes: 1 addition & 1 deletion .vitepress/config.mts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
192 changes: 191 additions & 1 deletion docs.json
Original file line number Diff line number Diff line change
@@ -1 +1,191 @@
[]
[
{
"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<img src=\"XP6WbX7YwohbU3xgKP9cV5c8nke\" src-width=\"3170\" src-height=\"1838\" align=\"center\"/>\n\n自选添加表头设置、智能排序等个性化设置功能\n\n<img src=\"R3V3bQ7ckoXInHxFmahcr6Q8nAf\" src-width=\"3170\" src-height=\"1838\" align=\"center\"/>\n\n新增邮箱、账号 ID 的登录方式,可选择任意登录方式\n\n<img src=\"So7SbfiAsoTOu8x688ccUkETnph\" src-width=\"2100\" src-height=\"1400\" align=\"center\"/>\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<img src=\"JXGSbSannoJs4JxGO1dcz4nnnfc\" src-width=\"3106\" src-height=\"1924\" align=\"center\"/>\n\n增加快讯模块组件,可以便捷查看 7×24 资讯\n\n<img src=\"JhtAb26V1o6U1jxbQwOcMZOQnIb\" src-width=\"2400\" src-height=\"1358\" align=\"center\"/>\n\n当订单类型不符合当前交易时段支持的类型时,提醒并支持快捷转换\n\n<img src=\"RiaFbfldooaic0xHVYrcYv9nnUe\" src-width=\"2880\" src-height=\"1740\" align=\"center\"/>\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<img src=\"XzRQbKQcGoOWcvxi563cKvZNnkb\" src-width=\"2400\" src-height=\"1385\" align=\"center\"/>\n\n画布布局支持磁吸功能,并增加画布介绍说明\n\n<img src=\"OqiBbXnsAoigvXx26ZkccYEUn8c\" src-width=\"2400\" src-height=\"1285\" align=\"center\"/>\n\n新版本更新提示时,增加近期版本更新说明\n\n<img src=\"IY7dbmaR4oQrrcxkiCBcTacmnyc\" src-width=\"2400\" src-height=\"1521\" align=\"center\"/>\n\n自选列表支持自定义分组和分组顺序调整\n\n<img src=\"PUZIb0zKeo7RdMxZaDucF9BUn9d\" src-width=\"2880\" src-height=\"1750\" align=\"center\"/>\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<div class=\"callout callout-bg-5 callout-border-5\">\n💡 **画布布局****介绍:**\nhttps://support.longbridgehk.com/topics/misc/h2ocpy\n</div>\n\n## 功能演示\n\n新增自定义模式,支持画布布局:\n\n<img src=\"OZaNbIXpBo3WaXxmkbMcWKU0nlg\" src-width=\"2400\" src-height=\"1310\" align=\"center\"/>\n\n期权链组件性能优化,提升高频行情刷新时的性能:\n\n<img src=\"QGtwbTlYqozX1xxqWXBcOE6SnXf\" src-width=\"2400\" src-height=\"1309\" align=\"center\"/>\n\n",
"meta": {
"slug": "v2.1.1",
"hide": true
},
"fileTokens": {
"OZaNbIXpBo3WaXxmkbMcWKU0nlg": {
"token": "OZaNbIXpBo3WaXxmkbMcWKU0nlg",
"type": "image"
},
"QGtwbTlYqozX1xxqWXBcOE6SnXf": {
"token": "QGtwbTlYqozX1xxqWXBcOE6SnXf",
"type": "image"
}
},
"slug": "pro/v2.1.1",
"position": 3,
"filename": "pro/v2.1.1.md"
},
{
"depth": 1,
"title": "v2.1.0 - 2023.04.14",
"node_token": "ENy1wJE2DivKe3kg3Tyc8Dt4nId",
"parent_node_token": "KPQIwj39NibH4RkqfdCc9R9Nnkg",
"obj_create_time": "1696924693",
"obj_edit_time": "1697011752",
"obj_token": "IXI9dZDVkoiqSsxZ3Vsc13n8nfe",
"children": [],
"has_child": false,
"content": "# v2.1.0 - 2023.04.14\n\n## 更新说明\n\n- 板块热力图优化,增加成分股、涨跌幅筛选,支持涨跌幅和最新价显示设置;\n- 选股器入口放在顶部 Tab,让用户更容易找到;\n- 当股票支持融资 / 融券时,行情列表及报价组件显示融资融券信息;\n- 订单详情中,支持查看当前订单的收费情况,包括平台费及第三方收费;\n- 右上角增加新版本的更新提示,最快知晓新版本。\n\n## 功能演示\n\n板块热力图优化,增加成分股、涨跌幅筛选,支持涨跌幅和最新价显示设置。\n\n<img src=\"Lcy3bQkpVoxV1lx4vwzcuUZwnv5\" src-width=\"2400\" src-height=\"1343\"/>\n\n选股器入口放在顶部 Tab,让用户更容易找到。\n\n<img src=\"HRDJbH2KmoQeMTxlsCtcAxQ7nFc\" src-width=\"2400\" src-height=\"1565\"/>\n\n当股票支持融资 / 融券时,行情列表及报价组件显示融资融券信息。\n\n<img src=\"HmAobPGJ8ofm2gxzUOxc7hVCndc\" src-width=\"2400\" src-height=\"1405\"/>\n\n订单详情中,支持查看当前订单的收费情况,包括平台费及第三方收费。\n\n<img src=\"FmNHbqPHRovGR9xEhPWcoC3wnKd\" src-width=\"2400\" src-height=\"1395\"/>\n\n",
"meta": {
"slug": "v2.1.0",
"hide": true
},
"fileTokens": {
"Lcy3bQkpVoxV1lx4vwzcuUZwnv5": {
"token": "Lcy3bQkpVoxV1lx4vwzcuUZwnv5",
"type": "image"
},
"HRDJbH2KmoQeMTxlsCtcAxQ7nFc": {
"token": "HRDJbH2KmoQeMTxlsCtcAxQ7nFc",
"type": "image"
},
"HmAobPGJ8ofm2gxzUOxc7hVCndc": {
"token": "HmAobPGJ8ofm2gxzUOxc7hVCndc",
"type": "image"
},
"FmNHbqPHRovGR9xEhPWcoC3wnKd": {
"token": "FmNHbqPHRovGR9xEhPWcoC3wnKd",
"type": "image"
}
},
"slug": "pro/v2.1.0",
"position": 4,
"filename": "pro/v2.1.0.md"
}
],
"has_child": true,
"content": "# Longbridge Pro\n\n",
"meta": {
"slug": "pro"
},
"fileTokens": {},
"slug": "pro",
"position": 0,
"filename": "pro.md"
}
]
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@
"author": "",
"license": "ISC",
"scripts": {
"dev": "vitepress dev",
"build": "vitepress build",
"dev": "NODE_ENV=development vitepress dev",
"build": "NODE_ENV=production vitepress build",
"preview": "vitepress preview"
},
"bugs": {
Expand Down
24 changes: 24 additions & 0 deletions tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
{
"compilerOptions": {
"target": "esnext",
"module": "esnext",
"strict": true,
"moduleResolution": "node",
"importHelpers": true,
"experimentalDecorators": true,
"skipLibCheck": true,
"esModuleInterop": true,
"allowSyntheticDefaultImports": true,
"sourceMap": true,
"baseUrl": ".",
"types": ["node", "vite/client"],
"allowJs": false,
"checkJs": false,
"resolveJsonModule": true,
"noImplicitThis": true,
"lib": ["esnext", "dom", "dom.iterable", "scripthost"]
},
"include": [
".vitepress/config.mts",
],
}

0 comments on commit 7137583

Please sign in to comment.