From 0c9c287bb0da7690f4d0a36462ae7cf7b00f4bde Mon Sep 17 00:00:00 2001 From: Badrish Chandramouli Date: Mon, 1 Apr 2024 11:45:01 -0700 Subject: [PATCH] Add clarity (#213) --- website/docusaurus.config.js | 5 +++++ website/package.json | 1 + website/yarn.lock | 5 +++++ 3 files changed, 11 insertions(+) diff --git a/website/docusaurus.config.js b/website/docusaurus.config.js index 0f9ba5104e..148036bd0c 100644 --- a/website/docusaurus.config.js +++ b/website/docusaurus.config.js @@ -65,6 +65,8 @@ const config = { ], ], + plugins: ["docusaurus-plugin-clarity"], + themeConfig: /** @type {import('@docusaurus/preset-classic').ThemeConfig} */ ({ @@ -154,6 +156,9 @@ const config = { disableSwitch: false, respectPrefersColorScheme: false, }, + clarity: { + ID: "loh6v65ww5", + }, }), themes: ['@docusaurus/theme-mermaid'], diff --git a/website/package.json b/website/package.json index 2b8cd4f3fa..94c852d462 100644 --- a/website/package.json +++ b/website/package.json @@ -19,6 +19,7 @@ "@docusaurus/theme-mermaid": "^3.0.1", "@mdx-js/react": "^3.0.0", "clsx": "^1.2.1", + "docusaurus-plugin-clarity": "^2.1.0", "prism-react-renderer": "^2.1.0", "react": "^18.0.0", "react-dom": "^18.0.0" diff --git a/website/yarn.lock b/website/yarn.lock index c80c414b87..f77d7043bd 100644 --- a/website/yarn.lock +++ b/website/yarn.lock @@ -3962,6 +3962,11 @@ dns-packet@^5.2.2: dependencies: "@leichtgewicht/ip-codec" "^2.0.1" +docusaurus-plugin-clarity@^2.1.0: + version "2.1.0" + resolved "https://registry.yarnpkg.com/docusaurus-plugin-clarity/-/docusaurus-plugin-clarity-2.1.0.tgz#f9e30b51f15b0f973f4f7d7d66d94be33a4dc937" + integrity sha512-8BHjDC+69m3yQTqBHJ1xFhijHqbCjJJs19bEVySX8DpnGWlPBDbGiujEqEAyIba0sSjYaJNfg/4n61k1NOm0lw== + dom-converter@^0.2.0: version "0.2.0" resolved "https://registry.yarnpkg.com/dom-converter/-/dom-converter-0.2.0.tgz#6721a9daee2e293682955b6afe416771627bb768"