docs: add track code for tianji

This commit is contained in:
moonrailgun 2023-11-09 00:11:01 +08:00
parent 3e67fd94e9
commit 791872ea63

View File

@ -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;