Skip to content

Commit ae0bbfb

Browse files
🐛 fix: Fix docs link
1 parent 7405a2a commit ae0bbfb

File tree

6 files changed

+51
-66
lines changed

6 files changed

+51
-66
lines changed

.dumirc.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@ import { defineConfig } from 'dumi';
22

33
import { homepage } from './package.json';
44

5+
const isWin = process.platform === 'win32';
6+
57
const themeConfig = {
68
actions: [
79
{
@@ -10,7 +12,7 @@ const themeConfig = {
1012
text: 'Github',
1113
},
1214
{
13-
link: '/components/action-icon',
15+
link: '/guides/intro',
1416
text: 'Get Started',
1517
type: 'primary',
1618
},
@@ -28,11 +30,9 @@ export default defineConfig({
2830
favicons: [
2931
'https://registry.npmmirror.com/@lobehub/assets-emoji/1.3.0/files/assets/puzzle-piece.webp',
3032
],
31-
// locales: [{ id: 'en-US', name: 'English' }],
32-
mfsu: {},
33+
mfsu: isWin ? undefined : {},
3334
npmClient: 'pnpm',
3435
outputPath: 'docs-dist',
35-
// ssr: isProduction ? {} : false,
3636
styles: [
3737
`html, body { background: transparent; }
3838

.github/workflows/release.yml

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,6 @@ on:
33
push:
44
branches:
55
- master
6-
- alpha
7-
- beta
8-
- rc
96

107
jobs:
118
test:
@@ -27,8 +24,8 @@ jobs:
2724
- name: Install deps
2825
run: pnpm install
2926

30-
- name: lint
31-
run: pnpm run lint && pnpm run doctor
27+
- name: CI
28+
run: pnpm run ci
3229

3330
- name: Test
3431
run: pnpm run test

.github/workflows/test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ jobs:
2020
- name: Install deps
2121
run: pnpm install
2222

23-
- name: lint
23+
- name: CI
2424
run: pnpm run ci
2525

2626
- name: Test and coverage

README.md

Lines changed: 29 additions & 47 deletions
Original file line numberDiff line numberDiff line change
@@ -1,33 +1,44 @@
11
<a name="readme-top"></a>
22

33
<div align="center">
4-
4+
55
<img height="120" src="https://registry.npmmirror.com/@lobehub/assets-logo/1.0.0/files/assets/logo-3d.webp">
66
<img height="120" src="https://gw.alipayobjects.com/zos/kitchen/qJ3l3EPsdW/split.svg">
77
<img height="120" src="https://registry.npmmirror.com/@lobehub/assets-emoji/1.3.0/files/assets/puzzle-piece.webp">
88

99
<h1>Chat Plugin SDK</h1>
1010

1111
SDK for LobeChat funciton calling plugins
12-
12+
1313
[Changelog](./CHANGELOG.md) · [Report Bug][issues-url] · [Request Feature][issues-url]
14-
14+
1515
<!-- SHIELD GROUP -->
1616

1717
[![release][release-shield]][release-url]
1818
[![releaseDate][release-date-shield]][release-date-url]
1919
[![ciTest][ci-test-shield]][ci-test-url]
20-
[![ciRelease][ci-release-shield]][ci-release-url]
21-
<br/>
20+
[![ciRelease][ci-release-shield]][ci-release-url] <br/>
2221
[![contributors][contributors-shield]][contributors-url]
2322
[![forks][forks-shield]][forks-url]
2423
[![stargazers][stargazers-shield]][stargazers-url]
2524
[![issues][issues-shield]][issues-url]
26-
25+
2726
![](https://raw.githubusercontent.com/andreasbm/readme/master/assets/lines/rainbow.png)
2827

2928
</div>
3029

30+
## 🤯 Usage
31+
32+
The LobeChat Plugin SDK assists you in creating exceptional chat plugins for Lobe Chat.
33+
34+
- **SDK Document:** <https://chat-plugin-sdk.lobehub.com>
35+
36+
<div align="right">
37+
38+
[![][back-to-top]](#readme-top)
39+
40+
</div>
41+
3142
## ⌨️ Local Development
3243

3344
You can use Gitpod for online development:
@@ -49,7 +60,6 @@ $ npm start
4960

5061
</div>
5162

52-
5363
## 🤝 Contributing
5464

5565
<!-- CONTRIBUTION GROUP -->
@@ -78,58 +88,30 @@ $ npm start
7888
</div>
7989

8090
---
91+
8192
#### 📝 License
8293

8394
Copyright © 2023 [LobeHub][profile-url]. <br />
84-
This project is [MIT](./LICENSE) licensed.
85-
95+
This project is [MIT](./LICENSE) licensed.
8696

8797
<!-- LINK GROUP -->
8898

89-
[profile-url]: https://github.com/lobehub
90-
[issues-url]: https://github.com/lobehub/chat-plugin-sdk/issues/new/choose
91-
[gitpod-url]: https://gitpod.io/#https://github.com/lobehub/chat-plugin-sdk
92-
93-
<!-- SHIELD LINK GROUP -->
94-
9599
[back-to-top]: https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square
96-
97-
<!-- release -->
98-
99-
[release-shield]: https://img.shields.io/npm/v/@lobehub/chat-plugin-sdk?label=%F0%9F%A4%AF%20NPM
100-
[release-url]: https://www.npmjs.com/package/@lobehub/chat-plugin-sdk
101-
102-
<!-- releaseDate -->
103-
104-
[release-date-shield]: https://img.shields.io/github/release-date/lobehub/chat-plugin-sdk?style=flat
105-
[release-date-url]: https://github.com/lobehub/chat-plugin-sdk/releases
106-
107-
<!-- ciTest -->
108-
109-
[ci-test-shield]: https://github.com/lobehub/chat-plugin-sdk/workflows/Test%20CI/badge.svg
110-
[ci-test-url]: https://github.com/lobehub/chat-plugin-sdk/actions/workflows/test.yml
111-
112-
<!-- ciRelease -->
113-
114100
[ci-release-shield]: https://github.com/lobehub/chat-plugin-sdk/workflows/Release%20CI/badge.svg
115101
[ci-release-url]: https://github.com/lobehub/chat-plugin-sdk/actions?query=workflow%3ARelease%20CI
116-
117-
<!-- contributors -->
118-
102+
[ci-test-shield]: https://github.com/lobehub/chat-plugin-sdk/workflows/Test%20CI/badge.svg
103+
[ci-test-url]: https://github.com/lobehub/chat-plugin-sdk/actions/workflows/test.yml
119104
[contributors-shield]: https://img.shields.io/github/contributors/lobehub/chat-plugin-sdk.svg?style=flat
120105
[contributors-url]: https://github.com/lobehub/chat-plugin-sdk/graphs/contributors
121-
122-
<!-- forks -->
123-
124106
[forks-shield]: https://img.shields.io/github/forks/lobehub/chat-plugin-sdk.svg?style=flat
125107
[forks-url]: https://github.com/lobehub/chat-plugin-sdk/network/members
126-
127-
<!-- stargazers -->
128-
129-
[stargazers-shield]: https://img.shields.io/github/stars/lobehub/chat-plugin-sdk.svg?style=flat
130-
[stargazers-url]: https://github.com/lobehub/chat-plugin-sdk/stargazers
131-
132-
<!-- issues -->
133-
108+
[gitpod-url]: https://gitpod.io/#https://github.com/lobehub/chat-plugin-sdk
134109
[issues-shield]: https://img.shields.io/github/issues/lobehub/chat-plugin-sdk.svg?style=flat
135110
[issues-url]: https://img.shields.io/github/issues/lobehub/chat-plugin-sdk.svg?style=flat
111+
[profile-url]: https://github.com/lobehub
112+
[release-date-shield]: https://img.shields.io/github/release-date/lobehub/chat-plugin-sdk?style=flat
113+
[release-date-url]: https://github.com/lobehub/chat-plugin-sdk/releases
114+
[release-shield]: https://img.shields.io/npm/v/@lobehub/chat-plugin-sdk?label=%F0%9F%A4%AF%20NPM
115+
[release-url]: https://www.npmjs.com/package/@lobehub/chat-plugin-sdk
116+
[stargazers-shield]: https://img.shields.io/github/stars/lobehub/chat-plugin-sdk.svg?style=flat
117+
[stargazers-url]: https://github.com/lobehub/chat-plugin-sdk/stargazers

package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
"scripts": {
3434
"build": "father build && npm run build:client",
3535
"build:client": "tsc client.ts --declaration",
36-
"ci": "npm run lint && npm run type-check && npm run test",
36+
"ci": "npm run lint && npm run type-check && npm run doctor",
3737
"dev": "father dev",
3838
"docs:build": "dumi build",
3939
"docs:dev": "dumi dev",
@@ -106,7 +106,8 @@
106106
"vitest": "latest"
107107
},
108108
"peerDependencies": {
109-
"react": "^18"
109+
"react": ">=18",
110+
"react-dom": ">=18"
110111
},
111112
"publishConfig": {
112113
"access": "public",

tsconfig.json

Lines changed: 12 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,25 @@
11
{
22
"compilerOptions": {
3-
"strict": true,
4-
"declaration": true,
5-
"skipLibCheck": true,
6-
"esModuleInterop": true,
7-
"resolveJsonModule": true,
3+
"sourceMap": true,
4+
"skipDefaultLibCheck": true,
85
"jsx": "react-jsx",
9-
"types": ["vitest/globals"],
106
"baseUrl": ".",
7+
"allowSyntheticDefaultImports": true,
8+
"moduleResolution": "node",
9+
"forceConsistentCasingInFileNames": true,
10+
"noImplicitReturns": true,
11+
"noUnusedLocals": true,
12+
"resolveJsonModule": true,
13+
"skipLibCheck": true,
14+
"strict": true,
1115
"paths": {
1216
"@@/*": ["example/.dumi/tmp/*"],
1317
"@/*": ["src/*"],
1418
"dumi/theme/*": ["example/.dumi/tmp/dumi/theme/*"],
1519
"chat-plugin-sdk": ["src"],
1620
"chat-plugin-sdk/*": ["src/*", "*"]
17-
}
21+
},
22+
"types": ["vitest/globals"]
1823
},
1924
"include": ["src", "tests", ".dumi/**/*", "typings", "example/.dumirc.ts", "*.ts"]
2025
}

0 commit comments

Comments
 (0)