Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: changed the staled twitter icon #236

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions docusaurus.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -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,
},
};
}
},
};
},
],
Expand Down Expand Up @@ -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",
Expand Down
2 changes: 1 addition & 1 deletion faq.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -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).

</AccordionItem>
20 changes: 17 additions & 3 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
6 changes: 3 additions & 3 deletions src/components/Footer/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -52,9 +52,9 @@ export default function Footer({ links }: FooterProps) {
hiddenLabel
/>
<SocialIconLink
name="twitter"
href="https://twitter.com/opentofuorg"
label="Follow us on Twitter"
name="x"
href="https://x.com/opentofuorg"
label="Follow us on X"
hiddenLabel
/>
<SocialIconLink
Expand Down
4 changes: 2 additions & 2 deletions src/components/HowToSupport/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -205,11 +205,11 @@ export default function HowToSupport() {
</Link>{" "}
&amp;{" "}
<Link
href="https://twitter.com/opentofuorg"
href="https://x.com/opentofuorg"
className="underline"
target="_blank"
>
following us on Twitter.
following us on X.
</Link>
</Step>
</div>
Expand Down
3 changes: 1 addition & 2 deletions src/components/SocialIconLink/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
4 changes: 2 additions & 2 deletions src/theme/BlogPostItem/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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}&amp;url=${url}`,
`https://x.com/intent/tweet/?text=${title}&amp;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",
},
Expand Down
2 changes: 1 addition & 1 deletion supporters.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
},
Expand Down