Skip to content

Commit

Permalink
chore(docs): update documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
mrlubos committed Apr 4, 2024
1 parent a5e2420 commit 2e20565
Show file tree
Hide file tree
Showing 4 changed files with 41 additions and 14 deletions.
3 changes: 3 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,8 @@ indent_size = 4
[*.hbs]
indent_style = tab

[*.md]
indent_size = 2

[*.yml]
indent_size = 2
13 changes: 2 additions & 11 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,18 +8,9 @@

`openapi-ts` started as a fork of [openapi-typescript-codegen](https://github.com/ferdikoomen/openapi-typescript-codegen). We created it after the original project became [unmaintained](https://github.com/ferdikoomen/openapi-typescript-codegen/issues/1276#issuecomment-1302392146) to add support for OpenAPI v3.1. We plan to resolve the most pressing issues in the original project – open an issue if you'd like to prioritise your use case!

## Features
## Documentation

- Generate TypeScript clients from OpenAPI v2.0, v3.0, and v3.1 specifications
- Support JSON or YAML input files
- Handle external references using [JSON Schema $Ref Parser](https://github.com/APIDevTools/json-schema-ref-parser/)
- Generate Fetch, Node-Fetch, Axios, Angular, or XHR HTTP clients
- Can be used with CLI, Node.js, or npx
- Abortable requests through cancellable promise pattern

## Getting Started

Please follow the documentation [here](https://heyapi.vercel.app/).
Please visit our [website](https://heyapi.vercel.app/) for documentation, guides, migrating, and more.

## Contributing

Expand Down
8 changes: 7 additions & 1 deletion docs/.vitepress/config/shared.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,17 @@ export default defineConfig({
},
head: [
['link', { rel: 'icon', type: 'image/png', href: '/logo.png' }],
['meta', { property: 'og:type', content: 'website' }],
['meta', { property: 'og:locale', content: 'en' }],
['meta', { property: 'og:title', content: 'Turn your OpenAPI specification into a beautiful TypeScript client' }],
['meta', { property: 'og:site_name', content: 'OpenAPI TypeScript' }],
['meta', { property: 'og:image', content: '/logo.png' }],
['meta', { property: 'og:url', content: 'https://heyapi.vercel.app' }],
],
themeConfig: {
logo: '/logo.png',
socialLinks: [
{ icon: 'npm', link: 'https://www.npmjs.com/package/@hey-api/openapi-ts' },
{ icon: 'npm', link: 'https://npmjs.com/package/@hey-api/openapi-ts' },
{ icon: 'github', link: 'https://github.com/hey-api/openapi-ts' },
],
search: {
Expand Down
31 changes: 29 additions & 2 deletions docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
layout: home

hero:
name: "OpenAPI TypeScript"
tagline: "Turn your OpenAPI specification into a beautiful TypeScript client"
name: OpenAPI TypeScript
tagline: Turn your OpenAPI specification into a beautiful TypeScript client
actions:
- theme: brand
text: Get Started
Expand All @@ -17,10 +17,37 @@ hero:

features:
- title: Full Support
icon: 📝
details: Generate TypeScript clients from OpenAPI v2.0, v3.0, and v3.1 specifications.
- title: Local or External
icon: 📝
details: Support for JSON and YAML input files, or pass a remote URL to your specification.
- title: Clients
icon: 📝
details: Generate a Fetch, Node-Fetch, Axios, Angular, or XHR HTTP client.
---

<style>
:root {
--vp-c-brand-1: #0e263b;
--vp-c-brand-2: #18344b;
--vp-c-brand-3: #1b4f66;
--vp-home-hero-name-color: transparent;
--vp-home-hero-name-background: -webkit-linear-gradient(120deg, var(--vp-c-brand-3) 30%, #41d1ff);

--vp-home-hero-image-background-image: linear-gradient(-45deg, var(--vp-c-brand-3) 50%, #47caff 50%);
--vp-home-hero-image-filter: blur(44px);
}

@media (min-width: 640px) {
:root {
--vp-home-hero-image-filter: blur(56px);
}
}

@media (min-width: 960px) {
:root {
--vp-home-hero-image-filter: blur(68px);
}
}
</style>

0 comments on commit 2e20565

Please sign in to comment.