feat: add build:test script and improve documentation code blocks

- Added a new script `build:test` to generate test cases from documentation code examples.
- Enhanced documentation files by ensuring proper code block formatting and adding missing closing backticks.
- Updated various markdown files to include new code blocks and fixed formatting issues.
This commit is contained in:
Harvey Zhao committed 2026-03-07 15:52:56 +08:00
1 parent 5cc8d14454
commit 7bfee6c6dc
17 files changed
+4857 -19

No files matched your search

@@ -251,6 +251,8 @@ var art = new Artplayer({
url: '/assets/sample/404.mp4',
});
```
## CONTROL_HIDE_TIME
The delay time in milliseconds for auto-hiding the bottom control bar. Default is `3000`.
@@ -499,6 +501,8 @@ var art = new Artplayer({
art.contextmenu.show = true;
art.setting.show = true;
```
## FULLSCREEN_WEB_IN_BODY
Determines whether to mount the player under the `body` element during web fullscreen mode. Defaults to `true`.
@@ -563,4 +567,5 @@ var art = new Artplayer({
});
// Only destroys the UI, does not actively clear src
art.destroy();
art.destroy();
```