feat(cli): support site.headHtml option (#10807)

* feat(cli): support site.headHtml option

* docs: update

* docs: update
This commit is contained in:
neverland
2022-07-10 21:20:32 +08:00
committed by GitHub
parent 53162941da
commit 1ac1bb94e7
6 changed files with 31 additions and 3 deletions

View File

@@ -380,12 +380,19 @@ Customize iframe URL.
Customize HTML meta tag, key means name, value means content.
### site.headHtml
- Type: `string`
- Default: `undefined`
Insert a custom HTML content in the `<head>` tag.
### site.enableVConsole
- Type: `boolean`
- Default: `false`
Should use [vConsole](https://github.com/Tencent/vConsole) to debug when dev. For mobile.
Whether to enable [vConsole](https://github.com/Tencent/vConsole) debugging in dev, usually used for mobile debugging.
## PostCSS

View File

@@ -337,7 +337,7 @@ module.exports = {
### site.baiduAnalytics
- Type: `object`
- Default: `undefied`
- Default: `undefined`
文档网站的百度统计配置,添加这项配置后,会自动在构建文档网站时加载百度统计的脚本。
@@ -384,6 +384,13 @@ module.exports = {
配置 HTML 中的 meta 标签,对象的 key 为 namevalue 为 content。
### site.headHtml
- Type: `string`
- Default: `undefined`
`<head>` 标签中插入一段自定义的 HTML 内容。
### site.enableVConsole
- Type: `boolean`