diff --git a/packages/artplayer-vitepress/docs/.vitepress/config.js b/packages/artplayer-vitepress/docs/.vitepress/config.js index 882072304..c69e4f436 100644 --- a/packages/artplayer-vitepress/docs/.vitepress/config.js +++ b/packages/artplayer-vitepress/docs/.vitepress/config.js @@ -117,6 +117,7 @@ const config = { text: 'Plugins', collapsible: true, items: [ + { text: 'Danmuku', link: '/en/plugin/danmuku' }, { text: 'Video Ads', link: '/en/plugin/ads' }, { text: 'Iframe Control', link: '/en/plugin/iframe' }, { text: 'Hls Quality', link: '/en/plugin/hls-quality' }, diff --git a/packages/artplayer-vitepress/docs/en/plugin/danmuku.md b/packages/artplayer-vitepress/docs/en/plugin/danmuku.md index 79a638333..e255f2ba8 100644 --- a/packages/artplayer-vitepress/docs/en/plugin/danmuku.md +++ b/packages/artplayer-vitepress/docs/en/plugin/danmuku.md @@ -40,7 +40,7 @@ https://unpkg.com/artplayer-plugin-danmuku/dist/artplayer-plugin-danmuku.js ::: -## 选项 +## Option ```js { @@ -108,7 +108,6 @@ var art = new Artplayer({ ], }); ``` -Sure, below is the translation of the provided Markdown content into English, maintaining the original Markdown formatting: ## Using Danmuku XML @@ -134,6 +133,7 @@ var art = new Artplayer({
▶ Run Code
+ ```js var art = new Artplayer({ container: '.artplayer-app', @@ -163,6 +163,7 @@ var art = new Artplayer({ ], }); ``` + ## `hide/show` Hide or show the bullet comments with the methods `hide` and `show`. @@ -232,6 +233,7 @@ var art = new Artplayer({ ], }); ``` + ## `emit` Send a real-time danmaku message through the `emit` method @@ -387,8 +389,6 @@ Used to get the current barrage configuration
▶ Run Code
- ▶ Run Code - ```js var art = new Artplayer({ @@ -407,7 +407,7 @@ art.on('ready', () => { }); ``` -## 事件 +## Event ```js var art = new Artplayer({ @@ -457,28 +457,3 @@ art.on('artplayerPluginDanmuku:destroy', () => { console.info('弹幕销毁'); }); ``` - -Here is the translation of the VitePress extended Markdown syntax into English: - -```markdown -# Welcome to VitePress - -## Project setup - -```bash -yarn -yarn docs:dev -``` - -## Build - -To build the documentation site, run the following command: - -```bash -yarn docs:build -``` - -## Deployment - -To deploy the documentation site, you can use any static site hosting services. -``` \ No newline at end of file