Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs: improve formatting for plugin-assets-retry and app-icon #4646

Merged
merged 1 commit into from
Feb 24, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions website/docs/en/config/html/app-icon.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ For Chromium, you must provide at least a 192x192 pixel icon and a 512x512 pixel
## name

- **Type:** `string`
- **Default value:** `undefined`
- **Default:** `undefined`

The name of the application that will be displayed when it is added to the home screen of the mobile device. If not set, the `manifest.webmanifest` file will not be generated.

Expand All @@ -99,7 +99,7 @@ The name of the application that will be displayed when it is added to the home
## icons

- **Type:** `AppIconItem[]`
- **Default value:** `undefined`
- **Default:** `undefined`

The list of icons:

Expand Down Expand Up @@ -159,7 +159,7 @@ export default {
### filename

- **Type:** `string`
- **Default value:** `'manifest.webmanifest'`
- **Default:** `'manifest.webmanifest'`

The filename of the manifest file.

Expand Down
6 changes: 3 additions & 3 deletions website/docs/en/plugins/list/plugin-assets-retry.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -276,8 +276,8 @@ pluginAssetsRetry({

### delay

- **Type** `number | ((context: AssetsRetryHookContext) => number);`
- **Default value:** `0`
- **Type:** `number | ((context: AssetsRetryHookContext) => number)`
- **Default:** `0`

The delay time (in milliseconds) before retrying a failed asset.

Expand All @@ -290,7 +290,7 @@ pluginAssetsRetry({
});
```

Or pass a function that receives AssetsRetryHookContext and returns the delay time:
Or pass a function that receives `AssetsRetryHookContext` and returns the delay time:

```js
// Calculate delay based on retry attempts
Expand Down
4 changes: 2 additions & 2 deletions website/docs/zh/plugins/list/plugin-assets-retry.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -276,15 +276,15 @@ pluginAssetsRetry({

### delay

- **类型:** `number | ((context: AssetsRetryHookContext) => number);`
- **类型:** `number | ((context: AssetsRetryHookContext) => number)`
- **默认值:** `0`

在资源重试前的延迟时间,单位为毫秒。

你可以传入一个数字:

```js
// 延时1s重试
// 延时 1s 重试
pluginAssetsRetry({
delay: 1000,
});
Expand Down
Loading