OG card
How the docs platform generate Open Graph card images
The edge function
The URL mui.com/edge-functions/og-image
can be queried with 4 search parameters:
product
: the text element displayed next to the MUI logotitle
: the title which can contains\*
to delimit the highlighted (in blue) text sectionsdescription
: a paragraph added under the main titleauthors
: the GitHub username of the authors. It should be divided by a coma.
Usage with Markdown
By default, the card is generated using the page title and description.
You can override this behavior by providing different/specific cardTitle
and cardDescription
in the Markdown header, like so:
--
cardTitle: A *different* title than the page title
cardDecription: The word "different" on the title is highlighted
--
Card design preview
Visit this StackBlitz demo to see how the card looks like without having to run a random page on an OG preview site.