Skip to content

Commit 65be060

Browse files
authored
Merge pull request #2358 from hey-api/docs/contributing-overview
docs: add contributor manual overview
2 parents f604323 + b390f8d commit 65be060

31 files changed

+197
-87
lines changed

docs/.vitepress/config/en.ts

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,10 @@ export default defineConfig({
55
'🚀 The OpenAPI to TypeScript codegen. Generate clients, SDKs, validators, and more.',
66
lang: 'en-US',
77
themeConfig: {
8+
editLink: {
9+
pattern: 'https://github.com/hey-api/openapi-ts/edit/main/docs/:path',
10+
text: 'Edit',
11+
},
812
footer: {
913
message: 'Released under the MIT License.',
1014
},
@@ -14,6 +18,10 @@ export default defineConfig({
1418
text: 'Sponsor Hey API',
1519
},
1620
],
21+
outline: {
22+
label: 'Table of Contents',
23+
level: 2,
24+
},
1725
sidebar: [
1826
{
1927
items: [
@@ -236,6 +244,21 @@ export default defineConfig({
236244
text: 'Spotlight',
237245
},
238246
{
247+
collapsed: true,
248+
items: [
249+
{
250+
link: '/openapi-ts/community/contributing/building',
251+
text: 'Building',
252+
},
253+
{
254+
link: '/openapi-ts/community/contributing/developing',
255+
text: 'Developing',
256+
},
257+
{
258+
link: '/openapi-ts/community/contributing/testing',
259+
text: 'Testing',
260+
},
261+
],
239262
link: '/openapi-ts/community/contributing',
240263
text: 'Contributing',
241264
},

docs/.vitepress/config/shared.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,8 @@ export default defineConfig({
6464
provider: 'local',
6565
},
6666
socialLinks: [
67-
{ icon: 'npm', link: 'https://npmjs.com/package/@hey-api/openapi-ts' },
67+
{ icon: 'linkedin', link: 'https://linkedin.com/company/heyapi' },
68+
{ icon: 'x', link: 'https://x.com/mrlubos' },
6869
{ icon: 'github', link: 'https://github.com/hey-api/openapi-ts' },
6970
],
7071
},
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
<script setup lang="ts">
2+
const props = defineProps<{
3+
issueNumber: number;
4+
name: string;
5+
}>();
6+
</script>
7+
8+
<template>
9+
<div class="warning custom-block">
10+
<p class="custom-block-title">Excited about {{ props.name }}?</p>
11+
<p>
12+
Help us prioritize this feature by voting on
13+
<a
14+
:href="`https://github.com/hey-api/openapi-ts/issues/${props.issueNumber}`"
15+
rel="noreferrer"
16+
target="_blank"
17+
>GitHub</a
18+
>
19+
or consider becoming a
20+
<a href="/openapi-ts/community/spotlight">contributor</a>.
21+
</p>
22+
</div>
23+
</template>

docs/.vitepress/theme/components/Heading.vue

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
1+
<script setup lang="ts">
2+
const props = defineProps<{
3+
spaceBetween?: boolean;
4+
}>();
5+
</script>
6+
17
<template>
2-
<div class="container">
8+
<div class="container" :class="{ 'space-between': props.spaceBetween }">
39
<slot />
410
</div>
511
</template>
@@ -10,4 +16,8 @@
1016
column-gap: 1rem;
1117
display: flex;
1218
}
19+
20+
.space-between {
21+
justify-content: space-between;
22+
}
1323
</style>

docs/.vitepress/theme/index.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ import DefaultTheme from 'vitepress/theme';
66
import './custom.css';
77

88
import AuthorsList from './components/AuthorsList.vue';
9+
import FeatureStatus from './components/FeatureStatus.vue';
910
import Heading from './components/Heading.vue';
1011
import VersionLabel from './components/VersionLabel.vue';
1112
import VersionSwitcher from './components/VersionSwitcher.vue';
@@ -15,6 +16,7 @@ export default {
1516
Layout,
1617
enhanceApp: ({ app }) => {
1718
app.component('AuthorsList', AuthorsList);
19+
app.component('FeatureStatus', FeatureStatus);
1820
app.component('Heading', Heading);
1921
app.component('VersionLabel', VersionLabel);
2022
app.component('VersionSwitcher', VersionSwitcher);

docs/openapi-ts/clients/axios.md

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,6 @@ import { embedProject } from '../../embed'
1212
<VersionLabel value="v1" />
1313
</Heading>
1414

15-
::: warning
16-
Axios client is currently in beta. The interface might change before it becomes stable. We encourage you to leave feedback on [GitHub](https://github.com/hey-api/openapi-ts/issues).
17-
:::
18-
1915
### About
2016

2117
[Axios](https://axios-http.com) is a simple promise based HTTP client for the browser and Node.js. Axios provides a simple to use library in a small package with a very extensible interface.

docs/openapi-ts/clients/fetch.md

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,6 @@ import { embedProject } from '../../embed'
99

1010
# Fetch API
1111

12-
::: warning
13-
Fetch API client is currently in beta. The interface might change before it becomes stable. We encourage you to leave feedback on [GitHub](https://github.com/hey-api/openapi-ts/issues).
14-
:::
15-
1612
### About
1713

1814
The [Fetch API](https://developer.mozilla.org/docs/Web/API/Fetch_API) provides an interface for fetching resources (including across the network). It is a more powerful and flexible replacement for XMLHttpRequest.

docs/openapi-ts/clients/next-js.md

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,6 @@ description: Next.js client for Hey API. Compatible with all our features.
55

66
# Next.js
77

8-
::: warning
9-
Next.js client is currently in beta. The interface might change before it becomes stable. We encourage you to leave feedback on [GitHub](https://github.com/hey-api/openapi-ts/issues).
10-
:::
11-
128
### About
139

1410
[Next.js](https://nextjs.org) is the React framework for the web. Used by some of the world's largest companies, Next.js enables you to create high-quality web applications with the power of React components.
Lines changed: 32 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,42 @@
11
---
22
title: Contributing
3-
description: Learn how to contribute to @hey-api/openapi-ts.
3+
description: Learn how to contribute to Hey API.
44
---
55

6-
# Contributing
6+
# Contributor Manual
77

8-
Thank you for considering contributing to Hey API. In order to increase the likelihood of your changes being merged, first open an issue if one does not already exist. Once an issue exists, let us know you'd like to work on it. We will confirm whether we're looking to resolve the issue and provide you with guidance if required. This is to ensure our codebase remains in good state and all features contribute to Hey API's objectives.
8+
## Foreword
99

10-
## Prerequisites
10+
Hey API is building an OpenAPI to TypeScript code generator ecosystem. It’s trusted by thousands of companies – from YC startups to Fortune 500 enterprises – and powers products used by millions worldwide.
1111

12-
You should have a working knowledge of [git](https://git-scm.com), [node](https://nodejs.org/en), and [pnpm](https://pnpm.io).
12+
We welcome contributors of all backgrounds and experience levels. Whether you’re fixing a typo or building a new feature, your input matters. If you need guidance, help with technical writing, or want to bring a feature idea to life, we’re here to support you.
1313

14-
## Guidelines
14+
::: tip
1515

16-
Your [pull request](https://help.github.com/articles/using-pull-requests) must:
16+
New to open source? Take a look at the [Open Source](https://opensource.guide/) or [First Contributions](https://github.com/firstcontributions/first-contributions) guides for helpful information on contributing to open source projects.
1717

18-
- address a single issue or add a single item of functionality
19-
- contain a clean history of small, incremental, logically separate commits, with no merge commits
20-
- use clear commit messages
21-
- be possible to merge automatically
18+
:::
19+
20+
## First Steps
21+
22+
There are many ways to contribute to Hey API. Most of them don't involve writing any code!
23+
24+
- **Read the documentation**. Start with the [Get Started](/openapi-ts/get-started) guide. If you find anything broken or confusing, you can suggest improvements by clicking "Edit" at the bottom of any page.
25+
26+
- **Browse open issues**. Help others by providing workarounds, asking for clarification, triaging, or suggesting labels on [open issues](https://github.com/hey-api/openapi-ts/issues). If you see something you would like to work on, consider opening a pull request.
27+
28+
- **Participate in discussions**. Ask or [answer questions](https://github.com/orgs/hey-api/discussions), provide feedback, or suggest new ideas. Every idea is welcome, no matter how big or small.
29+
30+
- **Engage on social media**. Help others discover Hey API by engaging with our posts on [LinkedIn](https://linkedin.com/company/heyapi), [Bluesky](https://bsky.app/profile/heyapi.dev), or [X](https://x.com/mrlubos). Share your experiences with Hey API on Reddit, Slack, or in your own communities and group chats.
31+
32+
- **Create a new issue**. If you can't find a solution, [open an issue](https://github.com/hey-api/openapi-ts/issues). The issue template will guide you through the process.
33+
34+
- **Open a pull request**. If you find an issue you would like to fix, open a pull request. If you need help, tag [`@mrlubos`](https://github.com/mrlubos) on GitHub, provide enough relevant information, and we will do our best to assist you.
35+
36+
These are some of the best ways not only to contribute to Hey API, but also to learn, connect with others, and share ideas.
37+
38+
## Pull Requests
39+
40+
Ready to write some code? We have dedicated guides to help you [build](/openapi-ts/community/contributing/building), [develop](/openapi-ts/community/contributing/developing), and [test](/openapi-ts/community/contributing/testing) your feature before it's released.
41+
42+
We are excited to see what you’ll contribute!
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
---
2+
title: Building
3+
description: Learn how to contribute to Hey API.
4+
---
5+
6+
# Building
7+
8+
::: warning
9+
This page is under construction. We appreciate your patience.
10+
:::
11+
12+
## Prerequisites
13+
14+
You should have a working knowledge of [git](https://git-scm.com), [node](https://nodejs.org/en), and [pnpm](https://pnpm.io).
15+
16+
## Guidelines
17+
18+
Your [pull request](https://help.github.com/articles/using-pull-requests) must:
19+
20+
- address a single issue or add a single item of functionality
21+
- contain a clean history of small, incremental, logically separate commits, with no merge commits
22+
- use clear commit messages
23+
- be possible to merge automatically

0 commit comments

Comments
 (0)