From 791872ea63f9863ceed9d498614837d540144bbd Mon Sep 17 00:00:00 2001 From: moonrailgun Date: Thu, 9 Nov 2023 00:11:01 +0800 Subject: [PATCH] docs: add track code for tianji --- website/docusaurus.config.js | 19 +++++++++++++------ 1 file changed, 13 insertions(+), 6 deletions(-) diff --git a/website/docusaurus.config.js b/website/docusaurus.config.js index 95ed8f1..acef88f 100644 --- a/website/docusaurus.config.js +++ b/website/docusaurus.config.js @@ -56,9 +56,7 @@ const config = { ], ], - plugins: [ - require.resolve('docusaurus-plugin-image-zoom'), - ], + plugins: [require.resolve('docusaurus-plugin-image-zoom')], themeConfig: /** @type {import('@docusaurus/preset-classic').ThemeConfig} */ @@ -139,13 +137,22 @@ const config = { selector: '.markdown :not(em) > img', background: { light: 'rgb(255, 255, 255)', - dark: 'rgb(50, 50, 50)' + dark: 'rgb(50, 50, 50)', }, config: { // options you can specify via https://github.com/francoischalifour/medium-zoom#usage - } - } + }, + }, }), + + scripts: [ + { + src: 'https://tianji.moonrailgun.com/tracker.js', + async: true, + defer: true, + 'data-website-id': 'clopxgjr6050tqn5dzxo7pjac', + }, + ], }; module.exports = config;