-
Notifications
You must be signed in to change notification settings - Fork 60
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
docs: trans dumi to vitepress for documents
- Loading branch information
1 parent
f2fae6b
commit fc25b68
Showing
112 changed files
with
5,156 additions
and
6,480 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,26 +1,32 @@ | ||
name: Deploy GitHub Pages | ||
name: Deploy QierPlayer Docs to GitHub Pages | ||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
workflow_dispatch: | ||
|
||
jobs: | ||
build-and-deploy: | ||
runs-on: macos-latest | ||
# 构建工作 | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
uses: actions/checkout@v4 | ||
with: | ||
persist-credentials: false | ||
|
||
fetch-depth: 0 # 如果未启用 lastUpdated,则不需要 | ||
- name: Setup Node | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version: 18 | ||
cache: yarn # 或 pnpm / npm | ||
- name: Build | ||
working-directory: ./website | ||
run: yarn && yarn build | ||
|
||
- name: Deploy | ||
uses: JamesIves/[email protected] | ||
with: | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
branch: gh-pages | ||
folder: website/dist | ||
folder: website/docs/.vitepress/dist |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
/**/node_modules | ||
/**/build | ||
/**/dist | ||
/**/website |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -49,12 +49,6 @@ npm install --save qier-player | |
yarn add qier-player | ||
``` | ||
|
||
当然你也可以使用 CDN 服务: | ||
|
||
```html | ||
<script src="https://unpkg.com/qier-player@latest/dist/umd/index.min.js"></script> | ||
``` | ||
|
||
### 使用 | ||
|
||
```js | ||
|
@@ -65,14 +59,3 @@ const player = new Player({ | |
}); | ||
player.mount('#app'); | ||
``` | ||
|
||
## 生态 | ||
|
||
| Name | version | gzip size | | ||
| --- | --- | --- | | ||
| [qier-player-for-react]() | [![npm](https://img.shields.io/npm/v/@qier-player/react?logo=npm&style=flat-square)](https://www.npmjs.com/package/@qier-player/react) | [![gzip size](https://img.shields.io/bundlephobia/minzip/@qier-player/react?label=gzip%20size&style=flat-square)](https://unpkg.com/@qier-player/[email protected]/dist/umd/index.min.js) | | ||
|
||
## Future features | ||
|
||
- `@qier-player/vue` for Vue developer. | ||
- `@qier-player/danmaku` plungin. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -49,12 +49,6 @@ npm install --save qier-player | |
yarn add qier-player | ||
``` | ||
|
||
Of course you can also use CDN service: | ||
|
||
```html | ||
<script src="https://unpkg.com/qier-player@latest/dist/umd/index.min.js"></script> | ||
``` | ||
|
||
### Use | ||
|
||
```js | ||
|
@@ -65,14 +59,3 @@ const player = new Player({ | |
}); | ||
player.mount('#app'); | ||
``` | ||
|
||
## Ecosystem | ||
|
||
| Name | version | gzip size | | ||
| --- | --- | --- | | ||
| [qier-player-for-react]() | [![npm](https://img.shields.io/npm/v/@qier-player/react?logo=npm&style=flat-square)](https://www.npmjs.com/package/@qier-player/react) | [![gzip size](https://img.shields.io/bundlephobia/minzip/@qier-player/react?label=gzip%20size&style=flat-square)](https://unpkg.com/@qier-player/[email protected]/dist/umd/index.min.js) | | ||
|
||
## Future features | ||
|
||
- `@qier-player/vue` for Vue developer. | ||
- `@qier-player/danmaku` plungin. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,7 +4,7 @@ | |
"description": "Powerful danmaku, support many features.", | ||
"main": "dist/es/index.js", | ||
"module": "dist/es/index.js", | ||
"types": "dist/es/index.d.ts", | ||
"typings": "dist/es/index.d.ts", | ||
"author": "vortesnail <[email protected]>", | ||
"files": [ | ||
"dist" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
import './style/index.scss'; | ||
|
||
export { Danmaku as default } from './main/danmaku'; | ||
export * from './main/danmaku'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,7 +4,7 @@ | |
"description": "Easy to use and powerful html5 player.", | ||
"main": "dist/es/index.js", | ||
"module": "dist/es/index.js", | ||
"types": "dist/es/index.d.ts", | ||
"typings": "dist/es/index.d.ts", | ||
"author": "vortesnail <[email protected]>", | ||
"files": [ | ||
"dist" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,14 @@ | ||
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files. | ||
|
||
# dependencies | ||
/node_modules | ||
/npm-debug.log* | ||
/yarn-error.log | ||
/package-lock.json | ||
|
||
# production | ||
/dist | ||
|
||
# misc | ||
.DS_Store | ||
|
||
# umi | ||
.umi | ||
.umi-production | ||
.env.local | ||
|
||
# ide | ||
/.vscode | ||
/.idea | ||
# custom ignore | ||
docs/.vitepress/cache | ||
docs/.vitepress/dist |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.