Skip to content

Commit

Permalink
feat: 文档添加百度统计功能
Browse files Browse the repository at this point in the history
  • Loading branch information
JackySoft committed Sep 23, 2024
1 parent 245ff3d commit cdeedb8
Showing 1 changed file with 17 additions and 1 deletion.
18 changes: 17 additions & 1 deletion packages/docs/.vitepress/config.mts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,23 @@ export default defineConfig({
title: 'Marsview',
description: '一款面向中后台低代码平台,支持逻辑编排、事件交互和接口配置。',
lastUpdated: true,
head: [['link', { rel: 'icon', href: '/mars-logo.png' }]],
head: [
['link', { rel: 'icon', href: '/mars-logo.png' }],
// 添加百度统计
[
'script',
{},
`
var _hmt = _hmt || [];
(function() {
var hm = document.createElement("script");
hm.src = "https://hm.baidu.com/hm.js?e0b36c5433838f284c65581c1de9b9bd";
var s = document.getElementsByTagName("script")[0];
s.parentNode.insertBefore(hm, s);
})();
`,
],
],
lang: 'zh-CN',
srcDir: 'src',
outDir: '../../dist/docs',
Expand Down

0 comments on commit cdeedb8

Please sign in to comment.