diff --git a/docusaurus.config.js b/docusaurus.config.js index 1c9feb46..4ad25c4d 100644 --- a/docusaurus.config.js +++ b/docusaurus.config.js @@ -160,17 +160,17 @@ const config = { ], }, ], - function() { + function () { return { name: "follow-symlinks", configureWebpack() { return { resolve: { // Yes, leave this on false to support symlinks. - symlinks: false + symlinks: false, }, }; - } + }, }; }, ], @@ -293,10 +293,10 @@ const config = { }, { type: "custom-social-icon-link-navbar-item", - href: "https://twitter.com/opentofuorg", + href: "https://x.com/opentofuorg", position: "right", - name: "twitter", - label: "Follow us on Twitter", + name: "x", + label: "Follow us on X", }, { type: "custom-social-icon-link-navbar-item", diff --git a/faq.mdx b/faq.mdx index dfc61163..1f2fd2c5 100644 --- a/faq.mdx +++ b/faq.mdx @@ -86,6 +86,6 @@ The pledge is open to all individuals and companies who care about the future of Here are the most important things you can do to show your support: - Sign the manifesto and pledge your time to help develop this project. This can be done [here](https://github.com/opentofu/manifesto), by forking the repository, adding your pledge at the end of the table, and creating a pull request. -- Follow OpenTofu on [Twitter](https://twitter.com/opentofuorg). +- Follow OpenTofu on [X](https://x.com/opentofuorg). diff --git a/package-lock.json b/package-lock.json index ce3c7de2..94ef392c 100644 --- a/package-lock.json +++ b/package-lock.json @@ -24,6 +24,7 @@ "eslint-plugin-jsx-a11y": "^6.7.1", "eslint-plugin-react": "^7.33.2", "eslint-plugin-react-hooks": "^4.6.0", + "isexe": "^3.1.1", "postcss": "^8.4.29", "prettier": "^3.0.3", "prism-react-renderer": "^1.3.5", @@ -7760,6 +7761,11 @@ "node": ">=6" } }, + "node_modules/global-prefix/node_modules/isexe": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/isexe/-/isexe-2.0.0.tgz", + "integrity": "sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw==" + }, "node_modules/global-prefix/node_modules/which": { "version": "1.3.1", "resolved": "https://registry.npmjs.org/which/-/which-1.3.1.tgz", @@ -9073,9 +9079,12 @@ "integrity": "sha512-D2S+3GLxWH+uhrNEcoh/fnmYeP8E8/zHl644d/jdA0g2uyXvy3sb0qxotE+ne0LtccHknQzWwZEzhak7oJ0COQ==" }, "node_modules/isexe": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/isexe/-/isexe-2.0.0.tgz", - "integrity": "sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw==" + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/isexe/-/isexe-3.1.1.tgz", + "integrity": "sha512-LpB/54B+/2J5hqQ7imZHfdU31OlgQqx7ZicVlkm9kzg9/w8GKLEcFfJl/t7DCEDueOyBAD6zCCwTO6Fzs0NoEQ==", + "engines": { + "node": ">=16" + } }, "node_modules/isobject": { "version": "3.0.1", @@ -15171,6 +15180,11 @@ "url": "https://github.com/sponsors/ljharb" } }, + "node_modules/which/node_modules/isexe": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/isexe/-/isexe-2.0.0.tgz", + "integrity": "sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw==" + }, "node_modules/widest-line": { "version": "4.0.1", "resolved": "https://registry.npmjs.org/widest-line/-/widest-line-4.0.1.tgz", diff --git a/package.json b/package.json index 7251ce82..3a7c9be3 100644 --- a/package.json +++ b/package.json @@ -29,6 +29,7 @@ "eslint-plugin-jsx-a11y": "^6.7.1", "eslint-plugin-react": "^7.33.2", "eslint-plugin-react-hooks": "^4.6.0", + "isexe": "^3.1.1", "postcss": "^8.4.29", "prettier": "^3.0.3", "prism-react-renderer": "^1.3.5", diff --git a/src/components/Footer/index.tsx b/src/components/Footer/index.tsx index 3fefa146..51cf8323 100644 --- a/src/components/Footer/index.tsx +++ b/src/components/Footer/index.tsx @@ -52,9 +52,9 @@ export default function Footer({ links }: FooterProps) { hiddenLabel /> {" "} &{" "} - following us on Twitter. + following us on X. diff --git a/src/components/SocialIconLink/index.tsx b/src/components/SocialIconLink/index.tsx index ae96bafa..6f7354df 100644 --- a/src/components/SocialIconLink/index.tsx +++ b/src/components/SocialIconLink/index.tsx @@ -3,8 +3,7 @@ import React from "react"; import clsx from "clsx"; const iconMap = { - twitter: - "M22.46,6C21.69,6.35 20.86,6.58 20,6.69C20.88,6.16 21.56,5.32 21.88,4.31C21.05,4.81 20.13,5.16 19.16,5.36C18.37,4.5 17.26,4 16,4C13.65,4 11.73,5.92 11.73,8.29C11.73,8.63 11.77,8.96 11.84,9.27C8.28,9.09 5.11,7.38 3,4.79C2.63,5.42 2.42,6.16 2.42,6.94C2.42,8.43 3.17,9.75 4.33,10.5C3.62,10.5 2.96,10.3 2.38,10C2.38,10 2.38,10 2.38,10.03C2.38,12.11 3.86,13.85 5.82,14.24C5.46,14.34 5.08,14.39 4.69,14.39C4.42,14.39 4.15,14.36 3.89,14.31C4.43,16 6,17.26 7.89,17.29C6.43,18.45 4.58,19.13 2.56,19.13C2.22,19.13 1.88,19.11 1.54,19.07C3.44,20.29 5.7,21 8.12,21C16,21 20.33,14.46 20.33,8.79C20.33,8.6 20.33,8.42 20.32,8.23C21.16,7.63 21.88,6.87 22.46,6Z", + x: "M18.244 2.25h3.308l-7.227 8.26 8.502 11.24H16.17l-5.214-6.817L4.99 21.75H1.68l7.73-8.835L1.254 2.25H8.08l4.713 6.231zm-1.161 17.52h1.833L7.084 4.126H5.117z", github: "M12,2A10,10 0 0,0 2,12C2,16.42 4.87,20.17 8.84,21.5C9.34,21.58 9.5,21.27 9.5,21C9.5,20.77 9.5,20.14 9.5,19.31C6.73,19.91 6.14,17.97 6.14,17.97C5.68,16.81 5.03,16.5 5.03,16.5C4.12,15.88 5.1,15.9 5.1,15.9C6.1,15.97 6.63,16.93 6.63,16.93C7.5,18.45 8.97,18 9.54,17.76C9.63,17.11 9.89,16.67 10.17,16.42C7.95,16.17 5.62,15.31 5.62,11.5C5.62,10.39 6,9.5 6.65,8.79C6.55,8.54 6.2,7.5 6.75,6.15C6.75,6.15 7.59,5.88 9.5,7.17C10.29,6.95 11.15,6.84 12,6.84C12.85,6.84 13.71,6.95 14.5,7.17C16.41,5.88 17.25,6.15 17.25,6.15C17.8,7.5 17.45,8.54 17.35,8.79C18,9.5 18.38,10.39 18.38,11.5C18.38,15.32 16.04,16.16 13.81,16.41C14.17,16.72 14.5,17.33 14.5,18.26C14.5,19.6 14.5,20.68 14.5,21C14.5,21.27 14.66,21.59 15.17,21.5C19.14,20.16 22,16.42 22,12A10,10 0 0,0 12,2Z", slack: diff --git a/src/theme/BlogPostItem/index.tsx b/src/theme/BlogPostItem/index.tsx index 9e1f365f..20edfaa5 100644 --- a/src/theme/BlogPostItem/index.tsx +++ b/src/theme/BlogPostItem/index.tsx @@ -10,9 +10,9 @@ import useBaseUrl from "@docusaurus/useBaseUrl"; const platforms = [ { - name: "Twitter", + name: "X", href: ({ title, url }) => - `https://twitter.com/intent/tweet/?text=${title}&url=${url}`, + `https://x.com/intent/tweet/?text=${title}&url=${url}`, iconPath: "M23.44 4.83c-.8.37-1.5.38-2.22.02.93-.56.98-.96 1.32-2.02-.88.52-1.86.9-2.9 1.1-.82-.88-2-1.43-3.3-1.43-2.5 0-4.55 2.04-4.55 4.54 0 .36.03.7.1 1.04-3.77-.2-7.12-2-9.36-4.75-.4.67-.6 1.45-.6 2.3 0 1.56.8 2.95 2 3.77-.74-.03-1.44-.23-2.05-.57v.06c0 2.2 1.56 4.03 3.64 4.44-.67.2-1.37.2-2.06.08.58 1.8 2.26 3.12 4.25 3.16C5.78 18.1 3.37 18.74 1 18.46c2 1.3 4.4 2.04 6.97 2.04 8.35 0 12.92-6.92 12.92-12.93 0-.2 0-.4-.02-.6.9-.63 1.96-1.22 2.56-2.14z", }, diff --git a/supporters.json b/supporters.json index 692f7c5a..a5415ffd 100644 --- a/supporters.json +++ b/supporters.json @@ -3337,7 +3337,7 @@ }, { "name": "Prateek Jain", - "url": "https://twitter.com/PrateekJainDev", + "url": "https://x.com/PrateekJainDev", "type": "Individual", "pledge": "DevSecOps Lead; open-source community efforts" },