From cf8ccf3670886bda0010b04f6a937f87613d7500 Mon Sep 17 00:00:00 2001 From: jinhojang6 Date: Wed, 28 Jun 2023 19:17:07 +0900 Subject: [PATCH] feat: implement fathom --- docusaurus.config.js | 9 +++++++++ package.json | 3 ++- yarn.lock | 35 ++++++++++++++++++++++++++--------- 3 files changed, 37 insertions(+), 10 deletions(-) diff --git a/docusaurus.config.js b/docusaurus.config.js index a77902f..23ed433 100644 --- a/docusaurus.config.js +++ b/docusaurus.config.js @@ -41,6 +41,15 @@ const config = { ], ], staticDirectories: ["static"], + plugins: [ + [ + "@acid-info/docusaurus-fathom", + { + siteId: "FUTMI", + scriptUrl: "https://fathom.status.im/tracker.js", + }, + ], + ], themeConfig: { docs: { sidebar: { diff --git a/package.json b/package.json index ddc5aad..914d532 100644 --- a/package.json +++ b/package.json @@ -16,7 +16,8 @@ "check:spell": "cspell \"**/*.{md,mdx}\"" }, "dependencies": { - "@acid-info/logos-docusaurus-preset": "^1.0.0-alpha.58", + "@acid-info/docusaurus-fathom": "^1.0.0-alpha.61", + "@acid-info/logos-docusaurus-preset": "^1.0.0-alpha.60", "@docusaurus/core": "^2.4.1", "@docusaurus/preset-classic": "^2.4.1", "@docusaurus/theme-mermaid": "^2.4.1", diff --git a/yarn.lock b/yarn.lock index 18dceec..c15357f 100644 --- a/yarn.lock +++ b/yarn.lock @@ -2,6 +2,23 @@ # yarn lockfile v1 +"@acid-info/docusaurus-fathom@^1.0.0-alpha.61": + version "1.0.0-alpha.61" + resolved "https://registry.yarnpkg.com/@acid-info/docusaurus-fathom/-/docusaurus-fathom-1.0.0-alpha.61.tgz#9f644f0bc2073bd33802dda8fbfc1b3136557a9f" + integrity sha512-lrt4ei3WWe/yRzrKsGzZzX2zHb72hBFj2fJcw9+x3JgGMUhg1tiPwg7snpbL4A3kiIq+WvZ8O+EXHz/hA67m2A== + dependencies: + "@docusaurus/core" "^2.4.1" + "@docusaurus/module-type-aliases" "^2.4.1" + "@docusaurus/types" "^2.4.1" + "@docusaurus/utils" "^2.4.1" + "@docusaurus/utils-common" "^2.4.1" + "@docusaurus/utils-validation" "^2.4.1" + lodash "^4.17.21" + node-html-parser "^6.1.5" + object-hash "^3.0.0" + satori "^0.10.1" + sharp "^0.32.1" + "@acid-info/docusaurus-og@^1.0.0-alpha.54": version "1.0.0-alpha.54" resolved "https://registry.yarnpkg.com/@acid-info/docusaurus-og/-/docusaurus-og-1.0.0-alpha.54.tgz#38ab4e17c12beb350d31c6d6955e6636e2c110b3" @@ -16,14 +33,14 @@ "@easyops-cn/docusaurus-search-local" "^0.33.6" lodash "^4.17.21" -"@acid-info/logos-docusaurus-preset@^1.0.0-alpha.58": - version "1.0.0-alpha.58" - resolved "https://registry.yarnpkg.com/@acid-info/logos-docusaurus-preset/-/logos-docusaurus-preset-1.0.0-alpha.58.tgz#1caa05b384f65e6f24d09932b75e5265fa3b4f1f" - integrity sha512-PgQcJu0tBTWEvk6CZwUOX/F+dC1oSwXWqajWlRCUKiz+aLBednhFSt5Bxu3Mnh5Q+uCYMVB4MRk/JqR2TDIBnQ== +"@acid-info/logos-docusaurus-preset@^1.0.0-alpha.60": + version "1.0.0-alpha.60" + resolved "https://registry.yarnpkg.com/@acid-info/logos-docusaurus-preset/-/logos-docusaurus-preset-1.0.0-alpha.60.tgz#94b620c72143084a727f0973dac1afbd8ea097bc" + integrity sha512-hG5N0C/vwAKmjnP77Xu/C/pvPbSCSCjFats0uIjG7vvasZMbVjUhuTBqVSpmYrOvqMZy92pZ8iPEfQ6vwIwdDQ== dependencies: "@acid-info/docusaurus-og" "^1.0.0-alpha.54" "@acid-info/logos-docusaurus-search-local" "^1.0.0-alpha.47" - "@acid-info/logos-docusaurus-theme" "^1.0.0-alpha.58" + "@acid-info/logos-docusaurus-theme" "^1.0.0-alpha.60" "@docusaurus/core" "^2.4.1" "@docusaurus/module-type-aliases" "^2.4.1" "@docusaurus/preset-classic" "^2.4.1" @@ -53,10 +70,10 @@ satori "^0.10.1" sharp "^0.32.1" -"@acid-info/logos-docusaurus-theme@^1.0.0-alpha.58": - version "1.0.0-alpha.58" - resolved "https://registry.yarnpkg.com/@acid-info/logos-docusaurus-theme/-/logos-docusaurus-theme-1.0.0-alpha.58.tgz#b8dc94fd2e17bf99f5b8ffeda9ed15b60494bced" - integrity sha512-ZI7ZRWWPWZUcWxaWS0ZSNIKOH52CdDGxR/ZAcbzw9gP5x+IrJH68OaCdeneqYC4kdsPmcJfzJOJCTzbl3ooL/g== +"@acid-info/logos-docusaurus-theme@^1.0.0-alpha.60": + version "1.0.0-alpha.60" + resolved "https://registry.yarnpkg.com/@acid-info/logos-docusaurus-theme/-/logos-docusaurus-theme-1.0.0-alpha.60.tgz#244cb46ef6b35a5bbf13a8df34dc4cf5cb416479" + integrity sha512-rsSZXiig5L0hA8Uu4ZplVN5f3uV/uJZfuOELKUYcPA2le3e862UNfwrTfX/trc1Tn5xGkCV7DyPF8iVQH8BLvQ== dependencies: "@acid-info/docusaurus-og" "^1.0.0-alpha.54" "@acid-info/lsd-react" "^0.1.0-alpha.15"