From fe8b913d8268f94228d0340430e046225edb51cb Mon Sep 17 00:00:00 2001 From: Vasyl Date: Sun, 3 Dec 2023 20:54:45 -0700 Subject: [PATCH] analytics added --- docusaurus.config.js | 8 ++++++++ package-lock.json | 11 +++++++++++ package.json | 1 + src/pages/index.tsx | 20 ++++++++++++-------- 4 files changed, 32 insertions(+), 8 deletions(-) diff --git a/docusaurus.config.js b/docusaurus.config.js index a754b9f6..69b53ccd 100644 --- a/docusaurus.config.js +++ b/docusaurus.config.js @@ -146,6 +146,14 @@ const config = { darkTheme: darkCodeTheme, }, }), + plugins: [ + [ + "docusaurus-plugin-plausible", + { + domain: "wiki.f5nodes.com", + }, + ], + ], }; module.exports = config; diff --git a/package-lock.json b/package-lock.json index 1a64221a..edf3e55e 100644 --- a/package-lock.json +++ b/package-lock.json @@ -13,6 +13,7 @@ "@mdx-js/react": "^1.6.22", "bech32": "^2.0.0", "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" @@ -5438,6 +5439,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/dom-converter": { "version": "0.2.0", "resolved": "https://registry.npmjs.org/dom-converter/-/dom-converter-0.2.0.tgz", @@ -16411,6 +16417,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==" + }, "dom-converter": { "version": "0.2.0", "resolved": "https://registry.npmjs.org/dom-converter/-/dom-converter-0.2.0.tgz", diff --git a/package.json b/package.json index 36be7950..d8fba4ed 100644 --- a/package.json +++ b/package.json @@ -20,6 +20,7 @@ "@mdx-js/react": "^1.6.22", "bech32": "^2.0.0", "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" diff --git a/src/pages/index.tsx b/src/pages/index.tsx index 9e174d23..7965870f 100644 --- a/src/pages/index.tsx +++ b/src/pages/index.tsx @@ -1,16 +1,17 @@ -import React from 'react'; -import clsx from 'clsx'; -import Link from '@docusaurus/Link'; -import useDocusaurusContext from '@docusaurus/useDocusaurusContext'; -import Layout from '@theme/Layout'; -import HomepageFeatures from '@site/src/components/HomepageFeatures'; +import React from "react"; +import clsx from "clsx"; +import Link from "@docusaurus/Link"; +import Head from "@docusaurus/Head"; +import useDocusaurusContext from "@docusaurus/useDocusaurusContext"; +import Layout from "@theme/Layout"; +import HomepageFeatures from "@site/src/components/HomepageFeatures"; -import styles from './index.module.css'; +import styles from "./index.module.css"; function HomepageHeader() { const { siteConfig } = useDocusaurusContext(); return ( -
+

{siteConfig.title}

{siteConfig.tagline}

@@ -28,6 +29,9 @@ export default function Home(): JSX.Element { const { siteConfig } = useDocusaurusContext(); return ( + + +