From 01eb2c104468a37117079352e7accc987690609e Mon Sep 17 00:00:00 2001 From: John Date: Thu, 31 Oct 2024 20:22:40 +0800 Subject: [PATCH] add baidu analytics --- docusaurus.config.ts | 15 ++++++--------- 1 file changed, 6 insertions(+), 9 deletions(-) diff --git a/docusaurus.config.ts b/docusaurus.config.ts index 357e0ee95e0..46bf1a105c0 100644 --- a/docusaurus.config.ts +++ b/docusaurus.config.ts @@ -246,15 +246,12 @@ const config: Config = { // 默认支持的语言 https://github.com/FormidableLabs/prism-react-renderer/blob/master/packages/generate-prism-languages/index.ts#L9-L23 }, } satisfies Preset.ThemeConfig, + scripts: [ + { + src: 'https://hm.baidu.com/hm.js?38f38a0626fd7805722db06243cd0fa7', + async: true, + }, + ], }; -// module.exports = { -// scripts: [ -// { -// src: 'https://hm.baidu.com/hm.js?38f38a0626fd7805722db06243cd0fa7', -// async: true, -// }, -// ], -// }; - export default config;