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

@@ -124,4 +124,5 @@ art.on('ready', () => {
html: 'Your New Menu',
})
}, 3000);
});
});
```
@@ -174,4 +174,5 @@ art.on('ready', () => {
],
});
}, 3000);
});
});
```
@@ -143,4 +143,5 @@ art.on('ready', () => {
},
});
}, 3000);
});
});
```
@@ -168,6 +168,8 @@ var art = new Artplayer({
],
});
```
## Create - Toggle Button
| Property | Type | Description |
@@ -329,4 +331,5 @@ art.on('ready', () => {
switch: false,
});
}, 3000);
});
});
```