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

Update open graph data #455

Merged
merged 3 commits into from
Dec 13, 2024
Merged
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
65 changes: 61 additions & 4 deletions website/docusaurus.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,13 @@ import { themes as prismThemes } from "prism-react-renderer";
import type { Config } from "@docusaurus/types";
import type * as Preset from "@docusaurus/preset-classic";

const title = "Victory Native";
const tagline =
"A charting library for React Native with a focus on performance and customization.";

const config: Config = {
title: "Victory Native",
tagline:
"A charting library for React Native with a focus on performance and customization.",
title,
tagline,
url: "https://commerce.nearform.com/",
baseUrl:
// eslint-disable-next-line no-undef
Expand Down Expand Up @@ -86,7 +89,61 @@ const config: Config = {
theme: prismThemes.github,
darkTheme: prismThemes.dracula,
},
image: "/img/victory-native-social.png",
metadata: [
{
name: "title",
content: `${title} - React Charting Components`,
carbonrobot marked this conversation as resolved.
Show resolved Hide resolved
},
{
name: "description",
content: tagline,
},
{
name: "viewport",
content: "width=device-width, initial-scale=1, maximum-scale=1",
},
{
name: "keywords",
content:
"victory, victory-native, documentation, react, react-native, charts, charting, data, viz, d3",
},
{ property: "og:type", content: "website" },
{
property: "og:url",
content: "https://commerce.nearform.com/open-source/victory-native/",
},
{
property: "og:title",
content: `${title} - React Native Charting Components`,
},
{
property: "og:description",
content: tagline,
},
{
property: "og:image",
content:
"https://commerce.nearform.com/open-source/victory-native/open-graph.png",
},
{ property: "twitter:card", content: "summary_large_image" },
{
property: "twitter:url",
content: "https://commerce.nearform.com/open-source/victory-native/",
},
{
property: "twitter:title",
carbonrobot marked this conversation as resolved.
Show resolved Hide resolved
content: `${title} - React Native Charting Components`,
},
{
property: "twitter:description",
content: tagline,
},
{
property: "twitter:image",
content:
"https://commerce.nearform.com/open-source/victory-native/open-graph.png",
},
],
} satisfies Preset.ThemeConfig,
};

Expand Down
2 changes: 1 addition & 1 deletion website/src/pages/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ import {
export default function Home(): JSX.Element {
const { siteConfig } = useDocusaurusContext();
return (
<Layout title={siteConfig.title} description={siteConfig.tagline}>
<Layout description={siteConfig.tagline}>
<LandingHero
heading={siteConfig.title}
body={siteConfig.tagline}
Expand Down
Binary file added website/static/open-graph.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading