docs: update docs

This commit is contained in:
pengzhanbo 2024-07-23 11:48:28 +08:00
parent f32511be6a
commit 7128af8e49

View File

@ -6,37 +6,7 @@ permalink: /config/plugins/baidu-tongji/
---
::: caution
主题计划在 未来的版本中 从内置插件中移除此插件。
此插件已从主题内置插件中移除。
如需使用相关功能,请使用 [@vuepress/plugin-baidu-analytics](https://ecosystem.vuejs.press/zh/plugins/analytics/baidu-analytics.html) 代替。
:::
## 概述
为站点添加 百度统计。该插件默认不启用。
关联插件: [@vuepress-plume/plugin-baidu-tongji](https://github.com/pengzhanbo/vuepress-theme-plume/tree/main/plugins/plugin-baidu-tongji)
## 配置
### key
- 类型:`string`
- 默认值:`''`
配置百度统计的key
### 启用
```ts{7-9}
import { plumeTheme } from 'vuepress-theme-plume'
import { defineUserConfig } from 'vuepress'
export default defineUserConfig({
theme: plumeTheme({
plugins: {
baiduTongji: {
key: '你的百度统计key'
}
}
}),
})
```