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
11 changes: 11 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,17 @@ assets and a [simplified favicon](static/img/community-favicon.svg). The
desktop navbar and mobile menu. Keep the two mark variants geometrically identical.
The green Docusaurus icon in the external link and footer still identifies the upstream project.

The default social share image is [community-social-card.png](static/img/community-social-card.png)
(1200 x 630). Its editable source is [community-social-card.svg](static/img/community-social-card.svg).
After editing the SVG, regenerate the PNG from the repository root with the existing Sharp dependency:

```powershell
yarn node -e "require('sharp')('static\\img\\community-social-card.svg').png().toFile('static\\img\\community-social-card.png').catch(error => { console.error(error); process.exitCode = 1 })"
```

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.

## Deployment

Using SSH:
Expand Down
3 changes: 1 addition & 2 deletions docusaurus.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -109,8 +109,7 @@ const config: Config = {
themeConfig:
/** @type {import('@docusaurus/preset-classic').ThemeConfig} */
{
// Replace with your project's social card
image: 'img/docusaurus-social-card.jpg',
image: 'img/community-social-card.png',
colorMode: {
defaultMode: 'dark',
disableSwitch: false,
Expand Down
Binary file added static/img/community-social-card.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
25 changes: 25 additions & 0 deletions static/img/community-social-card.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading