Skip to content

Commit 09b23bd

Browse files
authored
Merge pull request #263 from gama-platform/goatcounter
feat: Add GoatCounter Tracking
2 parents e7698ed + cf81113 commit 09b23bd

3 files changed

Lines changed: 8 additions & 1 deletion

File tree

.github/workflows/github-travis.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,8 @@ jobs:
8484
- name: Build website
8585
run: yarn build
8686
working-directory: ./website
87+
env:
88+
NODE_ENV: production
8789

8890
# Popular action to deploy to GitHub Pages:
8991
# Docs: https://github.com/peaceiris/actions-gh-pages#%EF%B8%8F-docusaurus

website/docusaurus.config.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,9 @@ module.exports = {
107107
showRunmeLink: false,
108108
runmeLinkLabel: 'Checkout via Runme'
109109
},*/
110+
goatcounter: {
111+
code: "gama-platform",
112+
},
110113
docs: {
111114
sidebar: {
112115
autoCollapseCategories: true,
@@ -224,6 +227,7 @@ module.exports = {
224227
* PLUGINS
225228
*/
226229
plugins: [
230+
"docusaurus-plugin-goatcounter",
227231
[
228232
"@docusaurus/plugin-client-redirects",
229233
{

website/package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,12 +21,13 @@
2121
"@mdx-js/react": "^3.0.0",
2222
"@saucelabs/theme-github-codeblock": "^0.3.0",
2323
"clsx": "^1.2.1",
24+
"docusaurus-plugin-goatcounter": "^4.0.0",
2425
"prism-gaml": "^0.1.3",
2526
"prism-react-renderer": "^2.1.0",
2627
"react": "^18.0.0",
2728
"react-dom": "^18.0.0"
2829
},
2930
"engines": {
30-
"node": ">=18.0"
31+
"node": ">=20.0"
3132
}
3233
}

0 commit comments

Comments
 (0)