Skip to content

Commit a1f4598

Browse files
committed
chore: format config reference md
1 parent 9b1b852 commit a1f4598

File tree

2 files changed

+8
-12
lines changed

2 files changed

+8
-12
lines changed

docs/reference/config.md

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ You can also specify the config file via `--config` option of [CLI](./cli.md).
9393
- Details:
9494

9595
Extra tags to inject into the `<head>` tag in the rendered HTML.
96-
96+
9797
You can specify each tag in the form of `[tagName, { attrName: attrValue }, innerHTML?]`.
9898

9999
This can be specified in different locales.
@@ -104,13 +104,11 @@ You can also specify the config file via `--config` option of [CLI](./cli.md).
104104

105105
```js
106106
module.exports = {
107-
head: [
108-
['link', { rel: 'icon', href: '/logo.png' }]
109-
]
107+
head: [['link', { rel: 'icon', href: '/logo.png' }]],
110108
}
111109
```
112110

113-
Rendered as:
111+
Rendered as:
114112

115113
```html
116114
<head>

docs/zh/reference/config.md

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ VuePress 配置的参考文档,可以通过配置文件来设置这些配置
9292
- 详情:
9393

9494
在最终渲染出的 HTML 的 `<head>` 标签内加入的额外标签。
95-
95+
9696
你可以通过 `[tagName, { attrName: attrValue }, innerHTML?]` 的格式来添加标签。
9797

9898
它可以设置在不同语言的 locales 中。
@@ -103,13 +103,11 @@ VuePress 配置的参考文档,可以通过配置文件来设置这些配置
103103

104104
```js
105105
module.exports = {
106-
head: [
107-
['link', { rel: 'icon', href: '/logo.png' }]
108-
]
106+
head: [['link', { rel: 'icon', href: '/logo.png' }]],
109107
}
110108
```
111109

112-
渲染为:
110+
渲染为:
113111

114112
```html
115113
<head>
@@ -550,7 +548,7 @@ module.exports = {
550548

551549
- 详情:
552550

553-
一个函数,用来控制哪些文件是需要生成对应的 `<link rel="preload">` 标签的。设置为 `true` 或者 `false` 来完全启用或禁用它。
551+
一个函数,用来控制哪些文件是需要生成对应的 `<link rel="preload">` 标签的。设置为 `true` 或者 `false` 来完全启用或禁用它。
554552

555553
默认情况下,只有当前页面所需的文件会被预加载。所以在绝大部分情况下,你只需要使用 `true` 就可以了。
556554

@@ -562,7 +560,7 @@ module.exports = {
562560

563561
- 详情:
564562

565-
一个函数,用来控制哪些文件是需要生成对应的 `<link rel="prefetch">` 标签的。设置为 `true` 或者 `false` 来完全启用或禁用它。
563+
一个函数,用来控制哪些文件是需要生成对应的 `<link rel="prefetch">` 标签的。设置为 `true` 或者 `false` 来完全启用或禁用它。
566564

567565
如果你将它设置为 `true` ,所有其它页面所需的文件都会被预拉取。这对于小型站点来说是十分有帮助的,因为它会大大提升页面切换的速度。但是在你的网站有很多页面时不建议你这么做。
568566

0 commit comments

Comments
 (0)