From dbcf42a3e9deab50614b974fe675f5ce4f70fb2c Mon Sep 17 00:00:00 2001 From: Allen Tao <38272264+boring-plans@users.noreply.github.com> Date: Wed, 29 Jun 2022 12:51:04 +0800 Subject: [PATCH] docs(config): add head section --- docs/config/app-configs.md | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/docs/config/app-configs.md b/docs/config/app-configs.md index 54657e3f..08b75cc6 100644 --- a/docs/config/app-configs.md +++ b/docs/config/app-configs.md @@ -173,3 +173,30 @@ export default { } ``` +## head + +- Type: `array` +- Default: `[]` + +Extra tags to inject into the page HTML ``. You can specify each tag in the form of `[tagName, { attrName: attrValue }, innerHTML?]`. For example, with a structure like this: + +``` +. +├─ docs +│ ├─ .vitepress +│ │ └─ config.js +| └─ public +| └─ logo.png +└─ package.json +``` + +You can add a custom favicon: + +```ts +export default { + head: [ + ['link', { rel: 'icon', href: '/public/logo.png' }] + ] +} +``` +