@@ -4,9 +4,23 @@ When it comes to open source, there are different ways you can contribute, all
4
4
of which are valuable. Here's a few guidelines that should help you as you
5
5
prepare your contribution.
6
6
7
+ Here's the table of contents:
8
+
9
+ - [ Setup the Project] ( #setup-the-project )
10
+ - [ Commands] ( #commands )
11
+ - [ Updating the docs for new release] ( #updating-the-docs-for-new-release )
12
+ - [ Proposing new or changed API?] ( #proposing-new-or-changed-api )
13
+ - [ Making a Pull Request?] ( #making-a-pull-request )
14
+ - [ Commit Convention] ( #commit-convention )
15
+ - [ Steps to PR] ( #steps-to-pr )
16
+ - [ Want to write a blog post or tutorial] ( #want-to-write-a-blog-post-or-tutorial )
17
+ - [ Want to help improve the docs?] ( #want-to-help-improve-the-docs )
18
+ - [ License] ( #license )
19
+
7
20
## Setup the Project
8
21
9
- Setting up the docsite project is easy. It's a Next JS site. The following steps will get you up and running to contribute to the Chakra UI docsite:
22
+ Setting up the docsite project is easy. It's a Next JS site. The following steps
23
+ will get you up and running to contribute to the Chakra UI docsite:
10
24
11
25
1 . Fork the repo (click the <kbd >Fork</kbd > button at the top right of
12
26
[ this page] ( https://github.com/chakra-ui/chakra-ui-docs ) )
@@ -21,8 +35,8 @@ cd chakra-ui-docs
21
35
1 . Setup all the dependencies and packages by running ` yarn ` .
22
36
2 . Execute ` yarn dev ` to spin up a local development server
23
37
24
- > If you run into any issues, kindly reach out to the Chakra UI
25
- > React team here: https://discord.gg/chakra-ui
38
+ > If you run into any issues, kindly reach out to the Chakra UI React team here:
39
+ > https://discord.gg/chakra-ui
26
40
27
41
### Commands
28
42
@@ -34,6 +48,16 @@ cd chakra-ui-docs
34
48
35
49
** ` yarn lint ` ** : runs the nextjs linter which checks for code issues.
36
50
51
+ ## Updating the docs for new release
52
+
53
+ When a new version of ` @chakra-ui/react ` has been released, here's what you need
54
+ to do to get it reflected in the docs:
55
+
56
+ - Bump the version of ` @chakra-ui/react `
57
+ - Run ` yarn changelog:gen ` to fetch the most recent changelog from the
58
+ [ main repository] ( https://github.com/chakra-ui/chakra-ui )
59
+ - Open a Pull Request titled ` docs: updates for new release `
60
+
37
61
## Proposing new or changed API?
38
62
39
63
Please provide thoughtful comments and some sample API code. Proposals that
@@ -54,8 +78,7 @@ When you create a commit we kindly ask you to follow the convention
54
78
` category(scope or module): message ` in your commit message while using one of
55
79
the following categories:
56
80
57
- - ` feat / feature ` : all changes that introduce completely new code or new
58
- features
81
+ - ` feat ` : all changes that introduce completely new code or new features
59
82
- ` fix ` : changes that fix a bug (ideally you will additionally reference an
60
83
issue if present)
61
84
- ` refactor ` : any code related change that is not a fix nor a feature
@@ -85,7 +108,9 @@ https://www.conventionalcommits.org/ or check out the
85
108
86
109
3 . Make and commit your changes following the
87
110
[ commit convention] ( https://github.com/chakra-ui/chakra-ui-docs/blob/main/CONTRIBUTING.md#commit-convention ) .
88
- As you develop, you can run ` yarn lint ` and ` yarn lint ` to make sure everything works as expected. Please note that you might have to run ` yarn ` first in order to install all dependencies.
111
+ As you develop, you can run ` yarn lint ` and ` yarn lint ` to make sure
112
+ everything works as expected. Please note that you might have to run ` yarn `
113
+ first in order to install all dependencies.
89
114
90
115
## Want to write a blog post or tutorial
91
116
0 commit comments