Skip to content

Commit fd1e4bb

Browse files
committed
update doc
1 parent 5f6401c commit fd1e4bb

File tree

7 files changed

+94
-14
lines changed

7 files changed

+94
-14
lines changed

.github/workflows/pages.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,8 @@ jobs:
2828
run: npm install
2929
- name: Build with VitePress
3030
run: npm run docs:build
31+
- name: Build with Typedoc
32+
run: npm run api
3133
- name: Upload artifact
3234
env:
3335
ALIYUN_ACCESS_KEY_ID: ${{ secrets.ALIYUN_ACCESS_KEY_ID }}

.vitepress/config.mts

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,15 @@ function nav(): DefaultTheme.NavItem[] {
1414
},
1515

1616
]
17+
},
18+
{
19+
text: 'Script API',
20+
link: 'https://app.whyengineer.com/scriptApi/index.html'
1721
}
1822
]
1923
}
2024
// https://vitepress.dev/reference/site-config
25+
2126
export default defineConfig({
2227
title: "EcuBus-Pro",
2328
ignoreDeadLinks: true,
@@ -72,8 +77,8 @@ export default defineConfig({
7277
{ text: 'Graph', link: '/docs/um/graph/graph.md' },
7378
{ text: 'CLI', link: '/docs/um/cli' },
7479
{
75-
text: 'Script', link: '/docs/um/script', items: [
76-
{ text: 'Use External Package', link: '/docs/um/scriptSerialPort' },
80+
text: 'Script', link: '/docs/um/script', items: [
81+
{ text: 'Use External Package', link: '/docs/um/scriptExternal' },
7782
]
7883
},
7984
{

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ For detailed information, please refer to our [User Manual](./docs/um/concept.md
4343
| PEAK | CAN, CAN-FD, LIN |
4444
| KVASER | CAN, CAN-FD |
4545
| ZLG | CAN, CAN-FD |
46-
| Toomoss | CAN, CAN-FD (Coming Soon) |
46+
| Toomoss | CAN, CAN-FD |
4747

4848
#### Software Capabilities
4949

package-lock.json

Lines changed: 66 additions & 10 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@
129129
"rollup-plugin-dts": "^6.1.1",
130130
"sass": "^1.83.0",
131131
"ts-loader": "^9.5.1",
132-
"typedoc": "^0.26.11",
132+
"typedoc": "^0.27.6",
133133
"typescript": "^5.3.3",
134134
"viewerjs": "^1.11.6",
135135
"vite": "^5.4.14",

tools/upload.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,8 @@ async function put(list) {
3636
if(list.includes('--page')){
3737
const dist = path.join(__dirname, '..', '.vitepress','dist')
3838
await putDir(dist,'app/dist')
39+
const api = path.join(__dirname, '..', 'resources', 'docs','scriptApi')
40+
await putDir(api,'app/scriptApi')
3941
}
4042

4143

typedoc.json

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,19 @@
66
"name":"EcuBus-Pro Script API Documentation",
77
"readme": "docs/um/script.md",
88
"skipErrorChecking": true,
9+
10+
"navigationLinks": {
11+
"Home": "https://app.whyengineer.com",
12+
"GitHub": "https://github.com/ecubus/EcuBus-Pro",
13+
},
14+
"favicon": "./resources/icon.png",
15+
"navigation": {
16+
"includeCategories": true,
17+
18+
19+
20+
},
21+
22+
23+
924
}

0 commit comments

Comments
 (0)