Skip to content

Commit 2b471e8

Browse files
committed
chore: github actions
1 parent ff6cd12 commit 2b471e8

File tree

4 files changed

+6
-5
lines changed

4 files changed

+6
-5
lines changed

.github/workflows/docs.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ jobs:
4141
run: yarn install --immutable
4242

4343
- name: Build with VitePress
44-
run: yarn docs:build
44+
run: yarn build:docs
4545

4646
- name: Upload artifact
4747
uses: actions/upload-pages-artifact@v3

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,9 @@
2525
"build": "tsup",
2626
"test": "vitest run",
2727
"dev": "yarn build && (sleep 1 && open http://localhost:4000/playground/ &) && npx serve -l 4000 .",
28-
"docs:dev": "vitepress dev website",
29-
"docs:build": "vitepress build website",
30-
"docs:preview": "vitepress preview website"
28+
"dev:docs": "vitepress dev website",
29+
"build:docs": "vitepress build website",
30+
"preview:docs": "vitepress preview website"
3131
},
3232
"keywords": [
3333
"stock",

website/.vitepress/theme/components/Playground.vue

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -506,6 +506,7 @@ function clearResult() {
506506
onMounted(async () => {
507507
initParams()
508508
try {
509+
// @ts-ignore
509510
const module = await import('https://unpkg.com/stock-sdk/dist/index.js')
510511
sdk.value = new module.StockSDK()
511512
sdkLoaded.value = true

website/guide/batch.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@ import cron from 'node-cron';
171171
// 每分钟更新一次(交易时间)
172172
cron.schedule('* 9-15 * * 1-5', async () => {
173173
const quotes = await sdk.getAllAShareQuotes();
174-
// 保存到数据库或缓存
174+
// 保存到数据库或缓存等操作
175175
await saveToDatabase(quotes);
176176
});
177177
```

0 commit comments

Comments
 (0)