Skip to content

Commit

Permalink
Merge pull request #1465 from hey-api/docs/sponsors-stainless-update-2
Browse files Browse the repository at this point in the history
docs: use jpeg in README to look nicer in dark mode
  • Loading branch information
mrlubos authored Dec 19, 2024
2 parents 24a0d09 + 53e510e commit 0d90435
Show file tree
Hide file tree
Showing 13 changed files with 19 additions and 14 deletions.
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

0 comments on commit 0d90435

Please sign in to comment.