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

@@ -98,4 +98,5 @@ var art = new Artplayer({
Play: 'Your Play'
},
},
});
});
```
@@ -268,6 +268,8 @@ var art = new Artplayer({
autoSize: true,
});
```
## `autoMini`
- Type: `Boolean`
@@ -532,6 +534,8 @@ var art = new Artplayer({
setting: true,
});
```
## `miniProgressBar`
- Type: `Boolean`
@@ -742,6 +746,8 @@ var art = new Artplayer({
],
});
```
:::warning For `Component Configuration`, please refer to:
[/component/controls.html](/component/controls.html)
@@ -943,6 +949,8 @@ var art = new Artplayer({
},
});
```
## `icons`
- Type: `Object`
@@ -1243,4 +1251,5 @@ var art = new Artplayer({
container: '.artplayer-app',
url: '/assets/sample/video.mp4',
proxy: () => document.createElement('video')
});
});
```