Make documentation embeds less ugly

Summary:
Embedding a link to the Yoga documentation looks pretty terrible right now.

| {F1714492025} |  {F1714502391}  |

This adds a nice opengraph-sized image, replaces the favicon with one derived from logo SVG, and fixes a missing description on the homepage.

{F1714503194}

Differential Revision: D58923501
This commit is contained in:
Nick Gerleman
2024-06-23 03:08:09 -07:00
committed by Facebook GitHub Bot
parent baf670e261
commit d90a6e18e9
5 changed files with 33 additions and 2 deletions

View File

@@ -14,7 +14,7 @@ export default {
title: 'Yoga',
tagline:
'Build flexible layouts on any platform with a highly optimized open source layout engine designed with speed, size, and ease of use in mind.',
favicon: 'img/favicon.png',
favicon: 'img/favicon.svg',
url: 'https:/yogalayout.dev',
baseUrl: '/',
@@ -95,5 +95,19 @@ export default {
defaultMode: 'dark',
respectPrefersColorScheme: true,
},
metadata: [
{
property: 'og:image',
content: 'https://yogalayout.dev/img/opengraph.jpg',
},
{
property: 'og:image:width',
content: '1200',
},
{
property: 'og:image:height',
content: '630',
},
],
}),
};