-
-
Notifications
You must be signed in to change notification settings - Fork 121
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
37 changed files
with
425 additions
and
33 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -46,7 +46,7 @@ Typically, developers of such applications want to: | |
|
||
Doing any of these steps manually quickly becomes a huge time sink as your project grows and APIs evolve. Ideally, you want to spend most time on your application. Hey API allows you to do just that. | ||
|
||
We're constantly learning about the ways in which you use our tools. If you have any feedback, please [email us](mailto:[email protected]), [open an issue](https://github.com/hey-api/openapi-ts/issues), or [join a discussion](https://github.com/orgs/hey-api/discussions). | ||
We're constantly learning about the ways in which you use our tools. If you have any feedback, please [email us](mailto:[email protected]), [open an issue](https://github.com/hey-api/openapi-ts/issues), or [join a discussion](https://github.com/orgs/hey-api/discussions). | ||
|
||
## Hall of Fame | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -45,17 +45,11 @@ features: | |
|
||
<br /> | ||
|
||
<div class="home-list home-sponsors"> | ||
<div class="home-list sponsors-list"> | ||
|
||
### Sponsors | ||
|
||
<ul> | ||
<li class="home-sponsors-new"> | ||
<a href="mailto:[email protected]?subject=Hey%20API%20sponsorship%20enquiry"> | ||
+ your logo | ||
</a> | ||
</li> | ||
</ul> | ||
<!--@include: ./sponsors-list.md--> | ||
|
||
</div> | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -163,3 +163,6 @@ export default { | |
], | ||
}; | ||
``` | ||
|
||
<!--@include: ../examples.md--> | ||
<!--@include: ../sponsorship.md--> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
import fs from 'node:fs'; | ||
import path from 'node:path'; | ||
|
||
import sharp from 'sharp'; | ||
|
||
const inputDir = 'public/raw'; | ||
const outputDir = 'public/images'; | ||
|
||
const supportedExtensions = ['.png', '.jpg', '.jpeg', '.webp']; | ||
const sizes = [480, 768, 1200]; | ||
const formats = ['png', 'webp', 'jpeg']; | ||
|
||
if (fs.existsSync(outputDir)) { | ||
fs.rmSync(outputDir, { force: true, recursive: true }); | ||
} | ||
|
||
fs.mkdirSync(outputDir, { recursive: true }); | ||
|
||
async function processImages() { | ||
const files = fs.readdirSync(inputDir); | ||
|
||
for (const file of files) { | ||
const inputPath = path.join(inputDir, file); | ||
const ext = path.extname(file).toLowerCase(); | ||
const baseName = path.basename(file, ext); | ||
|
||
if (!supportedExtensions.includes(ext)) { | ||
continue; | ||
} | ||
|
||
console.log(`Processing ${file}...`); | ||
|
||
for (const size of sizes) { | ||
for (const format of formats) { | ||
const outputFileName = `${baseName}-${size}w.${format}`; | ||
const outputPath = path.join(outputDir, outputFileName); | ||
|
||
await sharp(inputPath) | ||
.resize(size) | ||
.toFormat(format, { quality: 80 }) | ||
.toFile(outputPath); | ||
|
||
console.log(`Generated: ${outputFileName}`); | ||
} | ||
} | ||
} | ||
console.log('✅ Image optimization complete!'); | ||
} | ||
|
||
processImages().catch((err) => { | ||
console.error('❌ Error optimizing images:', err); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
<ul> | ||
<li> | ||
<a href="https://stainlessapi.com/" target="_blank"> | ||
<picture> | ||
<source srcset="/images/stainless-logo-wordmark-480w.webp" media="(max-width: 480px)" type="image/webp" /> | ||
<source srcset="/images/stainless-logo-wordmark-768w.webp" media="(max-width: 768px)" type="image/webp" /> | ||
<source srcset="/images/stainless-logo-wordmark-1200w.webp" media="(min-width: 769px)" type="image/webp" /> | ||
<img alt="Stainless logo" loading="lazy" src="/images/stainless-logo-wordmark-1200w.png" /> | ||
</picture> | ||
</a> | ||
</li> | ||
</ul> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,9 @@ | ||
## Sponsoring | ||
|
||
Love Hey API? Please consider becoming a [sponsor](https://github.com/sponsors/hey-api). | ||
Love Hey API? Become our [sponsor](https://github.com/sponsors/hey-api). | ||
|
||
<div class="sponsors-list"> | ||
|
||
<!--@include: ./sponsors-list.md--> | ||
|
||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,7 +13,7 @@ | |
}, | ||
"license": "FSL-1.1-MIT", | ||
"author": { | ||
"email": "[email protected]", | ||
"email": "[email protected]", | ||
"name": "Lubos Menus", | ||
"url": "https://lmen.us" | ||
}, | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,7 +12,7 @@ | |
}, | ||
"license": "MIT", | ||
"author": { | ||
"email": "[email protected]", | ||
"email": "[email protected]", | ||
"name": "Lubos Menus", | ||
"url": "https://lmen.us" | ||
}, | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,7 +12,7 @@ | |
}, | ||
"license": "MIT", | ||
"author": { | ||
"email": "[email protected]", | ||
"email": "[email protected]", | ||
"name": "Lubos Menus", | ||
"url": "https://lmen.us" | ||
}, | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,7 +12,7 @@ | |
}, | ||
"license": "FSL-1.1-MIT", | ||
"author": { | ||
"email": "[email protected]", | ||
"email": "[email protected]", | ||
"name": "Lubos Menus", | ||
"url": "https://lmen.us" | ||
}, | ||
|
Oops, something went wrong.