Skip to content
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
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,8 @@ yarn node -e "require('sharp')('static\\img\\community-social-card.svg').png().t

The site configuration uses the PNG for Open Graph and Twitter cards, since social crawlers do not
reliably support SVG previews. The image is intentionally fixed to the light brand palette.
If its dimensions change, update `og:image:width` and `og:image:height` in
[the site configuration](docusaurus.config.ts) to match the exported PNG.

## Deployment

Expand Down
4 changes: 4 additions & 0 deletions docusaurus.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,10 @@ const config: Config = {
/** @type {import('@docusaurus/preset-classic').ThemeConfig} */
{
image: 'img/community-social-card.png',
metadata: [
{ property: 'og:image:width', content: '1200' },
{ property: 'og:image:height', content: '630' },
],
colorMode: {
defaultMode: 'dark',
disableSwitch: false,
Expand Down
Loading