From aa891b6e3befd06ad14070b6858cbf5d19ba1770 Mon Sep 17 00:00:00 2001 From: Julien Danjou Date: Mon, 2 Oct 2023 19:36:40 +0200 Subject: [PATCH] docs: add Plausible integration (#2375) Change-Id: I84d457356da906e9fa0195c6d62649bf59312373 --- gatsby-config.mjs | 6 ++++++ package-lock.json | 40 ++++++++++++++++++++++++++++++++++++++++ package.json | 1 + 3 files changed, 47 insertions(+) diff --git a/gatsby-config.mjs b/gatsby-config.mjs index 5c1afac271..08ad6e8f19 100644 --- a/gatsby-config.mjs +++ b/gatsby-config.mjs @@ -31,6 +31,12 @@ const plugins = [ icon: 'src/assets/favicon.svg' } }, + { + resolve: `gatsby-plugin-plausible`, + options: { + domain: `docs.mergify.com`, + }, + }, 'gatsby-plugin-offline', { resolve: 'gatsby-plugin-webfonts', diff --git a/package-lock.json b/package-lock.json index 13907c3abc..786e189696 100644 --- a/package-lock.json +++ b/package-lock.json @@ -21,6 +21,7 @@ "gatsby-plugin-mdx": "^5.12.0", "gatsby-plugin-netlify": "^5.1.1", "gatsby-plugin-offline": "^6.12.0", + "gatsby-plugin-plausible": "^0.0.7", "gatsby-plugin-sitemap": "^6.12.0", "gatsby-plugin-svgr": "^3.0.0-beta.0", "gatsby-plugin-webfonts": "^2.3.2", @@ -13996,6 +13997,45 @@ "gatsby": "^5.0.0-next" } }, + "node_modules/gatsby-plugin-plausible": { + "version": "0.0.7", + "resolved": "https://registry.npmjs.org/gatsby-plugin-plausible/-/gatsby-plugin-plausible-0.0.7.tgz", + "integrity": "sha512-pWCXsrWal8lWMmZ1wJ2dolbwZZR1CZU1LVR/K1rYC8NeA+uqTLY8h3uH3hFgP5n8jmRRenOSJ9SjWM9OIdCjOA==", + "dependencies": { + "@babel/runtime": "^7.9.2", + "minimatch": "3.0.4", + "react": "^16.13.1" + }, + "peerDependencies": { + "gatsby": ">=2.0.0", + "react": ">=16.0.0", + "react-dom": ">=16.0.0" + } + }, + "node_modules/gatsby-plugin-plausible/node_modules/minimatch": { + "version": "3.0.4", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.0.4.tgz", + "integrity": "sha512-yJHVQEhyqPLUTgt9B83PXu6W3rx4MvvHvSUvToogpwoGDOUQ+yDrR0HRot+yOCdCO7u4hX3pWft6kWBBcqh0UA==", + "dependencies": { + "brace-expansion": "^1.1.7" + }, + "engines": { + "node": "*" + } + }, + "node_modules/gatsby-plugin-plausible/node_modules/react": { + "version": "16.14.0", + "resolved": "https://registry.npmjs.org/react/-/react-16.14.0.tgz", + "integrity": "sha512-0X2CImDkJGApiAlcf0ODKIneSwBPhqJawOa5wCtKbu7ZECrmS26NvtSILynQ66cgkT/RJ4LidJOc3bUESwmU8g==", + "dependencies": { + "loose-envify": "^1.1.0", + "object-assign": "^4.1.1", + "prop-types": "^15.6.2" + }, + "engines": { + "node": ">=0.10.0" + } + }, "node_modules/gatsby-plugin-sharp": { "version": "5.12.0", "license": "MIT", diff --git a/package.json b/package.json index 2b215c67e0..75403e9505 100644 --- a/package.json +++ b/package.json @@ -38,6 +38,7 @@ "gatsby-plugin-mdx": "^5.12.0", "gatsby-plugin-netlify": "^5.1.1", "gatsby-plugin-offline": "^6.12.0", + "gatsby-plugin-plausible": "^0.0.7", "gatsby-plugin-sitemap": "^6.12.0", "gatsby-plugin-svgr": "^3.0.0-beta.0", "gatsby-plugin-webfonts": "^2.3.2",