Skip to content

[Docs] Enhancing Contribution Docs#2023

Merged
ly015 merged 12 commits into
open-mmlab:dev-1.xfrom
Tau-J:tau/enhance_contributing
Mar 9, 2023
Merged

[Docs] Enhancing Contribution Docs#2023
ly015 merged 12 commits into
open-mmlab:dev-1.xfrom
Tau-J:tau/enhance_contributing

Conversation

@Tau-J

@Tau-J Tau-J commented Mar 7, 2023

Copy link
Copy Markdown
Collaborator

Motivation

Modification

BC-breaking (Optional)

Use cases (Optional)

Checklist

Before PR:

  • I have read and followed the workflow indicated in the CONTRIBUTING.md to create this PR.
  • Pre-commit or linting tools indicated in CONTRIBUTING.md are used to fix the potential lint issues.
  • Bug fixes are covered by unit tests, the case that causes the bug should be added in the unit tests.
  • New functionalities are covered by complete unit tests. If not, please add more unit tests to ensure correctness.
  • The documentation has been modified accordingly, including docstring or example tutorials.

After PR:

  • CLA has been signed and all committers have signed the CLA in this PR.

@Tau-J Tau-J requested a review from ly015 March 7, 2023 06:18
Comment thread docs/en/notes/contribution_guide.md Outdated
Comment thread docs/en/notes/contribution_guide.md Outdated
Comment thread docs/en/notes/contribution_guide.md Outdated
Comment on lines +34 to +39
Second, check your Git Config.

```shell
# view the Git config
git config --global --list
```

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
Second, check your Git Config.
```shell
# view the Git config
git config --global --list
```
Second, check your Git config and ensure that `user.name` and `user.email` are properly configured.
```shell
# view the Git config
git config --global --list
# configure the user name and email
git config --global user.name "Change your user name here"
git config --global user.email "Change your user email here"

Comment thread docs/en/notes/contribution_guide.md Outdated
git config --global user.email "Change your useremail here"
```

Finally, run the command in git bash or terminal to generate the key file. After the generation is successful, a `.ssh` file will appear in the user directory, and `id_rsa.pub` is the public key file.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I suggest we remove ssh content and recommend contributors use http, which is easier.

Comment thread docs/en/notes/contribution_guide.md Outdated
Comment on lines +161 to +167
git checkout dev-1.x

git pull upstream dev-1.x

git checkout username/refactor_contributing_doc

git rebase dev-1.x

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

By default, the local dev-1.x will track origin/dev-1.x instead of upstream/dev-1.x, so should it be like:

git checkout username/refactor_contributing_doc
git fetch upstream
git rebase upstream/dev-1.x

Comment thread docs/en/notes/contribution_guide.md Outdated
Comment on lines +205 to +225
### Unit Test

We should also make sure the committed code will not decrease the coverage of unit test, we could run the following command to check the coverage of unit test:

```Shell
python -m coverage run -m pytest tests/
python -m coverage html
# check file in htmlcov/index.html
```

### Document rendering

If the documents are modified/added, we should check the rendering result. We could install the dependencies and run the following command to render the documents and check the results:

```Shell
pip install -r requirements/docs.txt
cd docs/en/
# or docs/zh_cn
make html
# check file in ./docs/en/_build/html/index.html
```

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think the unit test belongs to 'advanced' part. We can add docs about how do write ut script and how to run it locally in the future.

Online documentation is not what community contributors need to concern about (different from the case of MMYOLO).

Comment thread docs/en/notes/contribution_guide.md Outdated

```shell
# clone the forked repository
git clone git@github.com:{username}/mmpose.git

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
git clone git@github.com:{username}/mmpose.git
git clone https://github.com/{username}/mmpose.git

Comment thread docs/en/notes/contribution_guide.md Outdated

# Add official repository as upstream remote
cd mmpose
git remote add upstream git@github.com:open-mmlab/mmpose.git

@ly015 ly015 Mar 9, 2023

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
git remote add upstream git@github.com:open-mmlab/mmpose.git
git remote add upstream https://github.com/open-mmlab/mmpose.git

Please also update other links in EN and CN docs.

Comment thread docs/en/notes/contribution_guide.md Outdated
Comment thread docs/en/notes/contribution_guide.md Outdated
Comment thread docs/zh_cn/notes/contribution_guide.md Outdated
Comment thread docs/zh_cn/notes/contribution_guide.md Outdated
@ly015 ly015 merged commit f106c23 into open-mmlab:dev-1.x Mar 9, 2023
shuheilocale pushed a commit to shuheilocale/mmpose that referenced this pull request May 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants