feat: plausible (#66)

Adds plausible analytics to the docs.

Reviewed-on: https://gitea.com/gitea/gitea-docusaurus/pulls/66
Reviewed-by: silverwind <[email protected]>
Reviewed-by: delvh <[email protected]>
Co-authored-by: jolheiser <[email protected]>
Co-committed-by: jolheiser <[email protected]>
This commit is contained in:
jolheiser
2023-08-22 01:27:01 +00:00
committed by Lunny Xiao
parent 1097526deb
commit ca34387b0c
3 changed files with 21 additions and 0 deletions
+9
View File
@@ -57,6 +57,15 @@ const config = {
onBrokenMarkdownLinks: 'warn',
favicon: 'img/favicon.png',
plugins: [
[
'docusaurus-plugin-plausible',
{
domain: 'docs.gitea.com',
},
]
],
i18n: {
defaultLocale: 'en-us',
locales: ['en-us', 'zh-cn'/*, 'fr-fr', 'zh-tw'*/], // temporarily disable other locales