Refactor documentation for clarity and consistency

- Updated descriptions and terminology across various component documentation files for improved clarity.
- Changed headings and section titles for better readability and consistency.
- Enhanced the language and structure of the documentation to provide clearer guidance on usage and configuration.
- Removed the `fix-docs.js` script as its functionality has been integrated into the translation process.
- Improved the translation script to handle Markdown code block issues and added retry logic for API calls.
This commit is contained in:
Harvey Zhao committed 2026-03-08 13:15:13 +08:00
1 parent 3adff76edf
commit 92f09a4290
15 files changed
+413 -372

No files matched your search

@@ -1,8 +1,8 @@
# Writing Plugins
Once you are familiar with the player's `properties`, `methods`, and `events`, writing plugins becomes very straightforward.
Once you are familiar with the player's `properties`, `methods`, and `events`, writing a plugin becomes a very straightforward task.
You can load plugin functions during instantiation:
You can load a plugin function during instantiation.
<div className="run-code">▶ Run Code</div>
@@ -29,7 +29,7 @@ art.on('ready', () => {
});
```
You can also load plugin functions after instantiation:
You can also load a plugin function after instantiation.
<div className="run-code">▶ Run Code</div>
@@ -57,7 +57,7 @@ art.on('ready', () => {
});
```
For example, let's say I want to write a plugin that displays an image ad when the video is paused:
For example, let's say I want to write a plugin that displays an image ad when the video is paused.
<div className="run-code">▶ Run Code</div>