From 01dee3df879232939e43355231147b3d910fb482 Mon Sep 17 00:00:00 2001 From: Lubos Date: Fri, 8 Nov 2024 23:43:38 +0800 Subject: [PATCH] fix: update sponsorship links --- .changeset/beige-keys-wonder.md | 8 +++ .github/FUNDING.yml | 4 +- README.md | 2 +- docs/.vitepress/config/en.ts | 2 +- docs/.vitepress/theme/custom.css | 90 ++++++++++++++++++++++++++++++ docs/index.md | 29 +++++++--- docs/openapi-ts/configuration.md | 2 +- docs/openapi-ts/output.md | 20 ------- docs/sponsorship.md | 2 +- package.json | 2 +- packages/client-axios/README.md | 2 +- packages/client-axios/package.json | 2 +- packages/client-fetch/README.md | 2 +- packages/client-fetch/package.json | 2 +- packages/openapi-ts/README.md | 2 +- packages/openapi-ts/package.json | 2 +- 16 files changed, 133 insertions(+), 40 deletions(-) create mode 100644 .changeset/beige-keys-wonder.md diff --git a/.changeset/beige-keys-wonder.md b/.changeset/beige-keys-wonder.md new file mode 100644 index 000000000..4aaa52731 --- /dev/null +++ b/.changeset/beige-keys-wonder.md @@ -0,0 +1,8 @@ +--- +'@hey-api/client-axios': patch +'@hey-api/client-fetch': patch +'@hey-api/openapi-ts': patch +'@hey-api/docs': patch +--- + +fix: update sponsorship links diff --git a/.github/FUNDING.yml b/.github/FUNDING.yml index 69ebf1446..53cf88005 100644 --- a/.github/FUNDING.yml +++ b/.github/FUNDING.yml @@ -1 +1,3 @@ -github: [mrlubos] +github: + - hey-api + - mrlubos diff --git a/README.md b/README.md index d5a5aa962..fdbf16846 100644 --- a/README.md +++ b/README.md @@ -21,7 +21,7 @@ Please visit our [website](https://heyapi.dev/) for documentation, guides, migra ## Sponsoring -Love Hey API? Please consider becoming a [sponsor](https://github.com/sponsors/mrlubos). +Love Hey API? Please consider becoming a [sponsor](https://github.com/sponsors/hey-api). ## GitHub Integration (coming soon) diff --git a/docs/.vitepress/config/en.ts b/docs/.vitepress/config/en.ts index d3ddd6d0e..4a44f82c1 100644 --- a/docs/.vitepress/config/en.ts +++ b/docs/.vitepress/config/en.ts @@ -7,7 +7,7 @@ export default defineConfig({ themeConfig: { nav: [ { - link: 'https://github.com/sponsors/mrlubos', + link: 'https://github.com/sponsors/hey-api', text: 'Sponsor Hey API', }, ], diff --git a/docs/.vitepress/theme/custom.css b/docs/.vitepress/theme/custom.css index 08624235c..72f981b67 100644 --- a/docs/.vitepress/theme/custom.css +++ b/docs/.vitepress/theme/custom.css @@ -62,3 +62,93 @@ iframe { .buttonLink:hover { color: var(--vp-c-brand-2); } + +.home-list { + text-align: center; +} + +.home-list li { + list-style: none; +} + +.home-list > ul { + display: flex; + justify-content: center; + padding: 0; +} + +.home-list > h3 { + color: var(--vp-c-text-2); + display: inline-block; + font-size: 0.9rem; + margin-top: 2rem; + text-transform: uppercase; +} + +.home-sponsors li { + align-items: center; + display: flex; + height: 100px; + justify-content: center; + max-width: 240px; + width: 100%; +} + +.home-sponsors-new > a { + align-items: center; + border: 1px solid currentColor; + border-radius: 10px; + color: var(--vp-c-text-2); + display: flex; + height: 100%; + justify-content: center; + text-decoration: none; + text-transform: lowercase; + width: 100%; +} + +.VPFeatures.VPHomeFeatures { + padding: 0; +} + +.VPFeatures.VPHomeFeatures > .container { + max-width: initial; +} + +.VPFeatures.VPHomeFeatures > .container > .items { + flex-wrap: nowrap; + gap: 0.5rem; + margin: 0; + overflow-x: auto; + padding: 0.2rem 1.5rem; + scroll-padding-inline: 1.5rem; + scroll-snap-type: x mandatory; + scrollbar-width: none; /* Firefox */ + -ms-overflow-style: none; /* IE and Edge */ +} + +@media (min-width: 640px) { + .VPFeatures.VPHomeFeatures > .container > .items { + padding: 0.4rem 3rem; + scroll-padding-inline: 3rem; + } +} + +@media (min-width: 960px) { + .VPFeatures.VPHomeFeatures > .container > .items { + padding: 0.5rem 4rem; + scroll-padding-inline: 4rem; + } +} + +.VPFeatures.VPHomeFeatures > .container > .items::-webkit-scrollbar { + display: none; +} + +.VPFeatures.VPHomeFeatures > .container > .items > .item { + flex-shrink: 0; + max-width: 390px; + padding: 0; + scroll-snap-align: start; + width: 100%; +} diff --git a/docs/index.md b/docs/index.md index 082f0558a..55a304a48 100644 --- a/docs/index.md +++ b/docs/index.md @@ -26,16 +26,11 @@ features: details: Ensure code correctness without runtime overhead. No manual maintenance required. link: /openapi-ts/output linkText: Learn more - - icon: 🦴 + - icon: title: Data Fetching details: Type-safe data with our REST clients. Fetch, Axios, Angular, Node, and XHR are available. link: /openapi-ts/clients linkText: See all clients - - icon: - title: JSON Schemas - details: Export OpenAPI schemas as JavaScript objects. JSON Schema 2020-12 supported. - link: /openapi-ts/output#json-schemas - linkText: Learn more - icon: title: Plugins details: Reduce third-party boilerplate with our plugin ecosystem. @@ -48,9 +43,27 @@ features: linkText: Find out more --- -### Migrating from OpenAPI Typescript Codegen? +
+ +### Sponsors + + + +
+ +
+ +### Migration guides + +- [OpenAPI TypeScript Codegen](/openapi-ts/migrating#openapi-typescript-codegen) -Read our [migration guide](/openapi-ts/migrating#openapi-typescript-codegen). +