Skip to content

Commit 99cd032

Browse files
authored
Expand README, add docs contributing guide (#1254)
1 parent 44dd499 commit 99cd032

File tree

4 files changed

+71
-3
lines changed

4 files changed

+71
-3
lines changed

.github/pull_request_template.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,5 @@ _How can a reviewer review your changes? What should be kept in mind for this re
99
## Checklist
1010

1111
- [ ] Unit tests updated
12-
- [ ] README updated
13-
- [ ] `examples/` directory updated (only applicable for openapi-typescript)
12+
- [ ] `docs/` updated (if necessary)
13+
- [ ] `pnpm run update:examples` run (only applicable for openapi-typescript)

README.md

+16-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
Tools for consuming OpenAPI schemas in TypeScript.
44

5-
## Packages
5+
## 📦 Packages
66

77
<a href="./packages/openapi-typescript"><img src="./docs/public/assets/openapi-ts.svg" alt="openapi-typescript" width="200" height="40" /><br />
88
Generate TypeScript types from static OpenAPI schemas
@@ -11,3 +11,18 @@ Generate TypeScript types from static OpenAPI schemas
1111
<a href="./packages/openapi-fetch"><img src="./docs/public/assets/openapi-fetch.svg" alt="openapi-fetch" width="216" height="40" /><br />
1212
Ultra-fast fetching for TypeScript generated automatically from your OpenAPI schema.
1313
</a>
14+
15+
## 🤝 Contributing
16+
17+
Contributions are appreciated and welcome! See the appropriate guide for each package:
18+
19+
- [Contributing to openapi-typescript](./packages/openapi-typescript/CONTRIBUTING.md)
20+
- [Contributing to openapi-fetch](./packages/openapi-fetch/CONTRIBUTING.md)
21+
- [Contributing to docs](./docs/CONTRIBUTING.md)
22+
23+
## ♥️ Thanks
24+
25+
- Thanks to [dozens of lovely, smart contributors](https://github.com/drwpow/openapi-typescript/graphs/contributors) that made this library possible
26+
- Thanks to [Astro](https://astro.build/) for the docs site
27+
- Thanks to [Cloudflare Pages](https://pages.cloudflare.com/) for docs site hosting
28+
- Thanks to [Algolia](https://www.algolia.com/) for the docs site search

docs/CONTRIBUTING.md

+27
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
# Contributing to openapi-typescript docs
2+
3+
## Setup
4+
5+
See the [README](./README.md) for basic setup.
6+
7+
## Corrections / small edits
8+
9+
Corrections are always welcome! Please go straight to [opening a PR](https://github.com/drwpow/openapi-typescript/pulls) for correcting typos or misinformation language. Small edits are also welcome, which include shortening verbose language or clarifying confusing wording.
10+
11+
## Styling fixes
12+
13+
Styling fixes are also welcome (contrast improvements, styling bugs, general frontend improvements). You can also go straight to [opening a PR](https://github.com/drwpow/openapi-typescript/pulls) for those.
14+
15+
## Additions & Larger edits
16+
17+
[Opening a new discussion](https://github.com/drwpow/openapi-typescript/discussions) would be appreciated for all of the following:
18+
19+
- Adding a new section or page
20+
- Restructuring the docs
21+
- Major rewrites
22+
23+
All of the above are welcome! But if you just opened a PR without discussing the plan ahead-of-time, it will probably be rejected. Be sure to save your own time by talking about big changes first!
24+
25+
## Code of Conduct
26+
27+
All docs edits are held accountable to the [Code of Conduct](../../CODE_OF_CONDUCT.md) outlined in this project. Language in the documentation must be inclusive, kind, and respectful.

docs/README.md

+26
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
# openapi-typescript Docs
2+
3+
Docs site powered by [Astro](https://github.com/withastro/astro), a modern static site generator.
4+
5+
Lives at [https://openapi-ts.pages.dev](https://openapi-ts.pages.dev).
6+
7+
## Setup
8+
9+
Setup requires the latest version of [Node.js](https://nodejs.org/en) and [pnpm](https://pnpm.io/). With both installed, run:
10+
11+
```
12+
pnpm 1
13+
pnpm run dev
14+
```
15+
16+
That will launch the docs site at `http://localhost:3000`.
17+
18+
## Editing
19+
20+
All content lives in the [content/](./src/content) directory, in `.md` files that should be familiar to edit to most.
21+
22+
For the non-markdown bits, please see the [Astro Documentation](https://docs.astro.build/en/getting-started/).
23+
24+
## Contributing
25+
26+
Docs contributions are welcome! Please refer to [CONTRIBUTING.md](./CONTRIBUTING.md) for additional assistance.

0 commit comments

Comments
 (0)