mirror of
https://gitea.com/gitea/docs.git
synced 2026-06-24 13:15:55 +00:00
feat: plausible (#66)
Adds plausible analytics to the docs. Reviewed-on: https://gitea.com/gitea/gitea-docusaurus/pulls/66 Reviewed-by: silverwind <silverwind@noreply.gitea.com> Reviewed-by: delvh <dev.lh@web.de> Co-authored-by: jolheiser <john.olheiser@gmail.com> Co-committed-by: jolheiser <john.olheiser@gmail.com>
This commit is contained in:
@@ -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
|
||||
|
||||
11
package-lock.json
generated
11
package-lock.json
generated
@@ -13,6 +13,7 @@
|
||||
"@easyops-cn/docusaurus-search-local": "^0.29.0",
|
||||
"@mdx-js/react": "^1.6.22",
|
||||
"clsx": "^1.2.1",
|
||||
"docusaurus-plugin-plausible": "^0.0.5",
|
||||
"prism-react-renderer": "^1.3.5",
|
||||
"react": "^17.0.2",
|
||||
"react-dom": "^17.0.2",
|
||||
@@ -5903,6 +5904,11 @@
|
||||
"node": ">=6"
|
||||
}
|
||||
},
|
||||
"node_modules/docusaurus-plugin-plausible": {
|
||||
"version": "0.0.5",
|
||||
"resolved": "https://registry.npmjs.org/docusaurus-plugin-plausible/-/docusaurus-plugin-plausible-0.0.5.tgz",
|
||||
"integrity": "sha512-8wiglvMjkGjhGUnBYgJM87V1Ip0wr8AbIHiC5YHNar3DOfXX+JL0nBoThlnvaX1ib/emraWgimR5QiMDOgMJjA=="
|
||||
},
|
||||
"node_modules/docusaurus-plugin-redoc": {
|
||||
"version": "1.6.0",
|
||||
"resolved": "https://registry.npmjs.org/docusaurus-plugin-redoc/-/docusaurus-plugin-redoc-1.6.0.tgz",
|
||||
@@ -18003,6 +18009,11 @@
|
||||
"@leichtgewicht/ip-codec": "^2.0.1"
|
||||
}
|
||||
},
|
||||
"docusaurus-plugin-plausible": {
|
||||
"version": "0.0.5",
|
||||
"resolved": "https://registry.npmjs.org/docusaurus-plugin-plausible/-/docusaurus-plugin-plausible-0.0.5.tgz",
|
||||
"integrity": "sha512-8wiglvMjkGjhGUnBYgJM87V1Ip0wr8AbIHiC5YHNar3DOfXX+JL0nBoThlnvaX1ib/emraWgimR5QiMDOgMJjA=="
|
||||
},
|
||||
"docusaurus-plugin-redoc": {
|
||||
"version": "1.6.0",
|
||||
"resolved": "https://registry.npmjs.org/docusaurus-plugin-redoc/-/docusaurus-plugin-redoc-1.6.0.tgz",
|
||||
|
||||
@@ -21,6 +21,7 @@
|
||||
"@easyops-cn/docusaurus-search-local": "^0.29.0",
|
||||
"@mdx-js/react": "^1.6.22",
|
||||
"clsx": "^1.2.1",
|
||||
"docusaurus-plugin-plausible": "^0.0.5",
|
||||
"prism-react-renderer": "^1.3.5",
|
||||
"react": "^17.0.2",
|
||||
"react-dom": "^17.0.2",
|
||||
|
||||
Reference in New Issue
Block a user