Skip to content

Commit c7df272

Browse files
authored
Merge pull request #21 from status-im/develop
Add Status Help contributor's guide
2 parents 809da10 + 90bcdc6 commit c7df272

File tree

1 file changed

+174
-0
lines changed

1 file changed

+174
-0
lines changed

CONTRIBUTING.md

Lines changed: 174 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,174 @@
1+
# CONTRIBUTING.md
2+
3+
## Welcome to the Status documentation contributing guide
4+
5+
Thank you for investing your time in contributing to our project! Any contribution you make will be reflected on [help.status.im](https://help.status.im).
6+
7+
This guide provides an overview of the different contributions and the contribution workflow. Read the [Status Code of Conduct](https://people-ops.status.im/code-of-conduct/) to keep this place approachable and respectable.
8+
9+
> TL;DR: if you know what to do, skip to the [How to contribute](#how-to-contribute)
10+
11+
## Types of contributions
12+
13+
We accept different contributions, including some that don't require you to use a GitHub account. Independently of how you contribute, your contribution is considered a documentation issue and included in the [Status documentation project](https://github.com/orgs/status-im/projects/71) at GitHub.
14+
15+
We provide the following ways to contribute:
16+
17+
### GitHub issues
18+
19+
You can create a new issue or solve [an existing one](https://github.com/status-im/help.status.im/issues) via [pull request](https://docs.github.com/en/pull-requests/collaborating-with-pull-requests/proposing-changes-to-your-work-with-pull-requests/creating-a-pull-request-from-a-fork). If you work on an existing documentation issue, [submit a pull request](https://www.notion.so/CONTRIBUTING-md-3e01223cb2f14df79dd064c6aa965aca), and link the pull request to the issue on the GitHub website.
20+
21+
Issues without a `triage` label are pending review, and you shouldn't begin work on them.
22+
23+
### Pull request
24+
25+
A pull request is a way to suggest changes in our documentation repository. If you spot an inaccuracy in our docs or you would like to submit additional content, use this method.
26+
27+
You can submit a pull request from a topic in the Status documentation using the edit ![edit](./overrides/assets/icons/edit_black_24dp.svg) button. This is the preferred method for small fixes or typos. If you want to contribute with new content, submit a pull request following the [How to contribute](https://www.notion.so/CONTRIBUTING-md-3e01223cb2f14df79dd064c6aa965aca) section steps.
28+
29+
### How we work with issues or pull requests
30+
31+
Consider this information:
32+
33+
- We prioritize issues or pull requests related to documentation errors over the rest.
34+
- We triage your issue or pull request after submission and assign the `triage` label to it.
35+
- Issues or pull requests that don't fit into a technical documentation criterion are discarded with the `invalid` label.
36+
- Issues or pull requests outside of the scope of the Status user documentation project are discarded with the `wontfix` label.
37+
38+
### Feedback form
39+
40+
> The feedback form for Status documentation will be available soon.
41+
42+
Use the Status documentation feedback form if you don't have a GitHub account. While GitHub provides a more accessible and more straightforward to solve documentation issues or suggest new content, we recognize that not every reader of our docs owns a GitHub account or knows how to use the GitHub workflow.
43+
44+
When using our feedback form, you must use your Status username or email address. Once your suggestion is submitted, we create a new [GitHub issue](https://www.notion.so/CONTRIBUTING-md-3e01223cb2f14df79dd064c6aa965aca). Before submitting a suggestion using the feedback form, search if [an issue already exists](https://github.com/status-im/help.status.im/issues).
45+
46+
## Support
47+
48+
If you find an error using the Status app please, don't open a documentation issue. Instead, open an issue with the corresponding team at Status:
49+
50+
- [Status mobile](https://github.com/status-im/status-react)
51+
- [Status desktop](https://github.com/status-im/status-desktop)
52+
- [Status web](https://github.com/status-im/status-web)
53+
54+
## About Status docs translations
55+
56+
We are an international team with contributors and users from all over the world. Therefore, we know that providing documentation in multiple languages is crucial. Unfortunately, as a small team, we're unable to provide translator tools for our content or add translations to our docs at this time.
57+
58+
## How to contribute
59+
60+
Here you can find a step-by-step guide to make changes to our docs. This process describes the git and [GitHub CLI](https://docs.github.com/en/github-cli/github-cli/about-github-cli) instructions.
61+
62+
### TL;DR:
63+
64+
- [Fork](https://docs.github.com/en/get-started/quickstart/fork-a-repo#fork-an-example-repository) and [clone](https://docs.github.com/en/repositories/creating-and-managing-repositories/cloning-a-repository) the `status-im/help.status.im` repository.
65+
- Use the `develop` branch to create your topic branch.
66+
- Push your changes to the `status-im/help.status.im` repository and `develop` branch.
67+
- Propose changes using pull requests. Add a description to your pull requests.
68+
- If the pull request fixes an existing issue, link the pull request to the issue.
69+
70+
### 1. Fork and clone this repository
71+
72+
To understand how a repository fork works, see [About forks](https://docs.github.com/en/pull-requests/collaborating-with-pull-requests/working-with-forks/about-forks) in the GitHub documentation.
73+
74+
1. Using the terminal, go to the directory where you want to clone the Status documentation repository.
75+
2. Fork and clone the repository:
76+
77+
`gh repo fork 'status-im/help.status.im' --remote --clone=true`
78+
79+
80+
### 2. Create a topic branch and commit changes to your own branch
81+
82+
1. Update your local `develop` branch with the latest changes from `upstream`:
83+
84+
`git pull upstream develop`
85+
`git push origin develop`
86+
87+
2. Using the `develop` branch, create a topic branch to include your changes
88+
89+
`git checkout -b *feature-branch-name* develop`
90+
91+
92+
> Use a descriptive name for your feature branch, separating words with dashes. If you know the issue number, include this in the branch name. Examples: `fix-typo-on-creating-status-communities`, `#133-wrong-table-values`.
93+
94+
3. Using the editor of your choice, write the required changes.
95+
96+
> If you have doubts about how to write something, check the [Status style guide]().
97+
98+
### 4. Test your changes
99+
100+
You can test your proposed changes using MkDocs live preview.
101+
102+
1. [Install Material for MkDocs](https://squidfunk.github.io/mkdocs-material/getting-started/) on your computer.
103+
2. Using the terminal, change to the site configuration directory for your language. For example, if you're changing content under the English folder, go to the `config/en` directory in the `help.status.im` folder repository.
104+
3. Run the live preview server:
105+
106+
`mkdocs serve`
107+
108+
4. The output of this command shows a URL with the IP address and port where the live preview server is running. Example:
109+
110+
`INFO - [13:48:18] Serving on [http://127.0.0.1:8000/help/en/](http://127.0.0.1:8000/help/en/)`
111+
112+
5. Open your browser and enter the URL.
113+
114+
With the Mkdocs live preview server, you can preview your changes as you write your documentation. The server will automatically rebuild the site upon saving.
115+
116+
### 5. Commit and push your work to your own fork
117+
118+
1. Stage your changes:
119+
120+
`git add .`
121+
122+
2. Commit your changes with a description of what's included:
123+
124+
`git commit -m "*description of the changes*"`
125+
126+
3. Set the `upstream` to push your changes:
127+
128+
`git push --set-upstream origin *topic-branch-name*`
129+
130+
4. If you need to add more changes, you don't need to set the `upstream` branch:
131+
132+
`git push`
133+
134+
135+
### 6. Submit a pull request
136+
137+
1. Create a pull request with your proposed changes:
138+
139+
`gh pr create --base develop --title "*pull request title*"`
140+
141+
2. If prompted for the base repository, select `status-im/help.status.im`:
142+
143+
```bash
144+
? Which should be the base repository (used for e.g. querying issues) for this directory? [Use arrows to move, type to filter]
145+
> **status-im/help.status.im**
146+
jorge-campo/help.status.im
147+
```
148+
149+
3. When asked for the **Body**, type `e` to launch the default terminal editor. Include a description of the proposed changes:
150+
151+
`? Body [(e) to launch nano, enter to skip]`
152+
153+
> You can also skip this step and add the pull request description using the GitHub webpage.
154+
155+
4. In the **What's next** question, select `Submit`:
156+
157+
```bash
158+
? What's next? [Use arrows to move, type to filter]
159+
> **Submit**
160+
Continue in browser
161+
Add metadata
162+
Cancel
163+
```
164+
165+
5. On the GitHub website, enable the checkbox to [allow maintainer edits](https://docs.github.com/en/github/collaborating-with-issues-and-pull-requests/allowing-changes-to-a-pull-request-branch-created-from-a-fork) for the pull request
166+
 so the branch can be updated for a merge.
167+
168+
### 7. What's next?
169+
170+
1. If your pull request is related to an existing issue, link the pull request to the issue on the GitHub website.
171+
2. We may ask for changes to be made before a PR can be merged, either using [suggested changes](https://docs.github.com/en/github/collaborating-with-issues-and-pull-requests/incorporating-feedback-in-your-pull-request) or pull request comments.
172+
3. As you update your PR and apply changes, mark each conversation as [resolved](https://docs.github.com/en/github/collaborating-with-issues-and-pull-requests/commenting-on-a-pull-request#resolving-conversations).
173+
174+
Congratulations on making it this far! The Status team thanks you.

0 commit comments

Comments
 (0)