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

docs: use jpeg in README to look nicer in dark mode #1465

Merged
merged 1 commit into from
Dec 19, 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
2 changes: 1 addition & 1 deletion .github/FUNDING.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
github:
- hey-api
- mrlubos
- hey-api
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,13 @@

Please visit our [website](https://heyapi.dev/) for documentation, guides, migrating, and more.

## Sponsoring
## Sponsors

Love Hey API? Become our [sponsor](https://github.com/sponsors/hey-api).

<p>
<a href="https://kutt.it/pkEZyc" target="_blank">
<img alt="Stainless logo" height="50" src="https://heyapi.dev/images/stainless-logo-wordmark-480w.png" />
<img alt="Stainless logo" height="50" src="https://heyapi.dev/images/stainless-logo-wordmark-480w.jpeg" />
</a>
</p>

Expand Down
Binary file modified docs/public/images/stainless-logo-1200w.jpeg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/public/images/stainless-logo-480w.jpeg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/public/images/stainless-logo-768w.jpeg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/public/images/stainless-logo-wordmark-1200w.jpeg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/public/images/stainless-logo-wordmark-480w.jpeg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/public/images/stainless-logo-wordmark-768w.jpeg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
13 changes: 9 additions & 4 deletions docs/scripts/optimize-images.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,15 @@ async function processImages() {
const outputFileName = `${baseName}-${size}w.${format}`;
const outputPath = path.join(outputDir, outputFileName);

await sharp(inputPath)
.resize(size)
.toFormat(format, { quality: 80 })
.toFile(outputPath);
let image = sharp(inputPath).resize(size).toFormat(format, {
quality: 80,
});

if (format === 'jpeg') {
image = image.flatten({ background: '#ffffff' });
}

await image.toFile(outputPath);

console.log(`Generated: ${outputFileName}`);
}
Expand Down
2 changes: 1 addition & 1 deletion docs/sponsorship.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
## Sponsoring
## Sponsors

Love Hey API? Become our [sponsor](https://github.com/sponsors/hey-api).

Expand Down
4 changes: 2 additions & 2 deletions packages/client-axios/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,13 @@

Please visit our [website](https://heyapi.dev/) for documentation, guides, migrating, and more.

## Sponsoring
## Sponsors

Love Hey API? Become our [sponsor](https://github.com/sponsors/hey-api).

<p>
<a href="https://kutt.it/pkEZyc" target="_blank">
<img alt="Stainless logo" height="50" src="https://heyapi.dev/images/stainless-logo-wordmark-480w.png" />
<img alt="Stainless logo" height="50" src="https://heyapi.dev/images/stainless-logo-wordmark-480w.jpeg" />
</a>
</p>

Expand Down
4 changes: 2 additions & 2 deletions packages/client-fetch/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,13 @@

Please visit our [website](https://heyapi.dev/) for documentation, guides, migrating, and more.

## Sponsoring
## Sponsors

Love Hey API? Become our [sponsor](https://github.com/sponsors/hey-api).

<p>
<a href="https://kutt.it/pkEZyc" target="_blank">
<img alt="Stainless logo" height="50" src="https://heyapi.dev/images/stainless-logo-wordmark-480w.png" />
<img alt="Stainless logo" height="50" src="https://heyapi.dev/images/stainless-logo-wordmark-480w.jpeg" />
</a>
</p>

Expand Down
4 changes: 2 additions & 2 deletions packages/openapi-ts/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,13 @@

Please visit our [website](https://heyapi.dev/) for documentation, guides, migrating, and more.

## Sponsoring
## Sponsors

Love Hey API? Become our [sponsor](https://github.com/sponsors/hey-api).

<p>
<a href="https://kutt.it/pkEZyc" target="_blank">
<img alt="Stainless logo" height="50" src="https://heyapi.dev/images/stainless-logo-wordmark-480w.png" />
<img alt="Stainless logo" height="50" src="https://heyapi.dev/images/stainless-logo-wordmark-480w.jpeg" />
</a>
</p>

Expand Down
Loading