Skip to content

Commit 3b7dbb6

Browse files
chenjiahanhangCode2001
authored andcommitted
docs: improve formatting for plugin-assets-retry and app-icon (web-infra-dev#4646)
1 parent 9a5405b commit 3b7dbb6

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

website/docs/en/config/html/app-icon.mdx

+3-3
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ For Chromium, you must provide at least a 192x192 pixel icon and a 512x512 pixel
9090
## name
9191

9292
- **Type:** `string`
93-
- **Default value:** `undefined`
93+
- **Default:** `undefined`
9494

9595
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.
9696

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

101101
- **Type:** `AppIconItem[]`
102-
- **Default value:** `undefined`
102+
- **Default:** `undefined`
103103

104104
The list of icons:
105105

@@ -159,7 +159,7 @@ export default {
159159
### filename
160160

161161
- **Type:** `string`
162-
- **Default value:** `'manifest.webmanifest'`
162+
- **Default:** `'manifest.webmanifest'`
163163

164164
The filename of the manifest file.
165165

website/docs/en/plugins/list/plugin-assets-retry.mdx

+3-3
Original file line numberDiff line numberDiff line change
@@ -276,8 +276,8 @@ pluginAssetsRetry({
276276

277277
### delay
278278

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

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

@@ -290,7 +290,7 @@ pluginAssetsRetry({
290290
});
291291
```
292292

293-
Or pass a function that receives AssetsRetryHookContext and returns the delay time:
293+
Or pass a function that receives `AssetsRetryHookContext` and returns the delay time:
294294

295295
```js
296296
// Calculate delay based on retry attempts

website/docs/zh/plugins/list/plugin-assets-retry.mdx

+2-2
Original file line numberDiff line numberDiff line change
@@ -276,15 +276,15 @@ pluginAssetsRetry({
276276

277277
### delay
278278

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

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

284284
你可以传入一个数字:
285285

286286
```js
287-
// 延时1s重试
287+
// 延时 1s 重试
288288
pluginAssetsRetry({
289289
delay: 1000,
290290
});

0 commit comments

Comments
 (0)