Skip to content

Commit 4de7b2c

Browse files
committed
add: metadata to core pages
1 parent a806c40 commit 4de7b2c

File tree

6 files changed

+36
-20
lines changed

6 files changed

+36
-20
lines changed

github-git/clone-repo.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,11 @@ kernelspec:
99
display_name: Python 3 (ipykernel)
1010
language: python
1111
name: python3
12+
myst_html_meta:
13+
"title": "How to Clone a GitHub Repository to Work Locally: Collaborative GitHub for beginners"
14+
"description lang=en": "Learn how to clone or make a copy of a GitHub repository online on your computer so you can work locally."
15+
"keywords": "GitHub, OpenSource"
16+
"property=og:locale": "en_US"
1217
---
1318

1419
(clone-repository)=

github-git/edit-commit-files.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ kernelspec:
1010
language: python
1111
name: python3
1212
myst_html_meta:
13-
"title": "How to edit and commit changes to a file on GitHub"
13+
"title": "How to edit and commit changes to a file on GitHub: Intro to Collaborative GitHub"
1414
"description lang=en": "Learn how to edit a file and then commit changes to that file to version control. All in the GitHub interface."
1515
"keywords": "GitHub, OpenSource, beginner-friendly"
1616
"property=og:locale": "en_US"

github-git/fork-repo.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,11 @@ kernelspec:
99
display_name: Python 3 (ipykernel)
1010
language: python
1111
name: python3
12+
myst_html_meta:
13+
"title": "How to fork a GitHub repository and make a copy of it in your GitHub account: Intro to Collaborative GitHub"
14+
"description lang=en": "A complete guide to forking or making a copy of a GitHub repository that you don't own into your own account."
15+
"keywords": "GitHub, OpenSource, beginner-friendly"
16+
"property=og:locale": "en_US"
1217
---
1318

1419
(fork-repository)=

github-git/get-to-know-repo.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,11 @@ kernelspec:
99
display_name: Python 3 (ipykernel)
1010
language: python
1111
name: python3
12+
myst_html_meta:
13+
"title": "Get to know a (new to you) GitHub repository: Contribute to Open Source code and documentation."
14+
"description lang=en": "It's useful to get to know a GitHub repo by reading the README and CONTRIBUTING files before getting started. Learn what to look for when getting to know a new repository. A beginner-friendly guide."
15+
"keywords": "GitHub, OpenSource, beginner-friendly"
16+
"property=og:locale": "en_US"
1217
---
1318

1419
# Get to Know a (new to you) GitHub Repository

github-git/pull-request.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ kernelspec:
1010
language: python
1111
name: python3
1212
myst_html_meta:
13-
"title": "Collaborative GitHub for Beginners: How to submit a GitHub pull request"
13+
"title": "How to submit a GitHub pull request: Collaborative GitHub for beginners"
1414
"description lang=en": "Learn how to submit a pull request after making changes to a file in a GitHub repository"
1515
"keywords": "GitHub, OpenSource"
1616
"property=og:locale": "en_US"

github-git/your-first-contribution.md

Lines changed: 19 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ kernelspec:
1111
name: python3
1212
myst_html_meta:
1313
"title": "Intro to Collaborative GitHub: Make your first contribution to open source"
14-
"description lang=en": "Learn about the steps involved with using GitHub to collaborate and contribute to open source."
14+
"description lang=en": "Learn the steps involved with using GitHub to collaborate and contribute to open source code and documentation. A beginner-friendly guide."
1515
"keywords": "GitHub, OpenSource, beginner-friendly"
1616
"property=og:locale": "en_US"
1717
og:image: /images/github/steps-to-contribute.png
@@ -30,9 +30,9 @@ Completing this activity will give you the technical and social skills needed to
3030
repository successfully. You will use the [pyOpenSci example GitHub repository](https://github.com/pyOpenSci/pyos-demo-package-contribute) to practice making contributions.
3131
:::
3232

33-
This lesson series will teach you how to collaborate on code and documentation using GitHub. It will help you confidently contribute to a GitHub repository and build skills to collaborate with colleagues (some of whom you may not have met in real life!).
33+
Here, you will learn how to collaborate on code and documentation using GitHub. After completing the activities below, you will be able to contribute to a GitHub repository you don't own with confidence.
3434

35-
This page introduces all of the steps and walks you through the activities. Each activity has a related lesson that will help you navigate and understand any technical elements associated with the process.
35+
This page introduces all of the steps and walks you through each one. Each activity has a related lesson that will help you navigate and understand the social and technical elements associated with the process.
3636

3737
## An overview of the collaborative GitHub workflow
3838

@@ -48,9 +48,9 @@ The steps for making your first contribution to an open source repo. In this les
4848

4949
First, identify and get to know the repository you want to contribute to. Use the [pyOpenSci learning repository](https://github.com/pyOpenSci/pyos-demo-package-contribute) to test out the process.
5050

51-
[Getting to know that repository](get-to-know-repo) will save you and the maintainers time when you make your first contribution. Ideally, the contribution process is well-documented in the repo, which will help you get started quickly and minimize the questions you must ask the maintainer team.
51+
[Getting to know that repository](get-to-know-repo) will save you and the maintainers time when you make your first contribution. Ideally, the repository has documented the types of contributions they welcome and how they want contributions to happen. Reading through that documentation first will help you get started quickly and minimize the questions you ask the maintainer team. Most often, the best place for a new contributor to start, regardless of their experience contributing, is the [contributing guide](https://www.pyopensci.org/python-package-guide/documentation/repository-files/contributing-file.html) and the [README file](https://www.pyopensci.org/python-package-guide/documentation/repository-files/readme-file-best-practices.html).
5252

53-
:::{button-link} get-to-know-repo
53+
:::{button-link} get-to-know-repo.html
5454
:color: primary
5555
:shadow:
5656

@@ -59,13 +59,14 @@ First, identify and get to know the repository you want to contribute to. Use th
5959

6060
:::{admonition} Activity 1: Get to know the repository
6161

62-
In your browser, navigate to [https://github.com/pyOpenSci/pyos-demo-package-contribute/](https://github.com/pyOpenSci/pyos-demo-package-contribute/).
62+
Open a new browser tab after reading through the [get-to-know a repo lesson](get-to-know-repo). Navigate to [https://github.com/pyOpenSci/pyos-demo-package-contribute/](https://github.com/pyOpenSci/pyos-demo-package-contribute/).
6363

6464
* Check out the [README](https://github.com/pyOpenSci/pyos-demo-package-contribute/blob/main/README.md) and [CONTRIBUTING](https://github.com/pyOpenSci/pyos-demo-package-contribute/blob/main/CONTRIBUTING.md) files.
6565

6666
**Answer these questions**
6767

6868
* Does the repository accept contributions? If so, what types of contributions are accepted?
69+
* Are there existing issues open in the repository? Do those issues have labels?
6970
* Is the contribution process documented in the repo?
7071
* Does the repository use specific code or text formatting standards or liters?
7172
* Does the repository have continuous integration (CI) set up?
@@ -79,7 +80,7 @@ In your browser, navigate to [https://github.com/pyOpenSci/pyos-demo-package-con
7980

8081
Next, [identify an issue or bug that you want to work on](identify-issue). Sometimes, there is already an open issue in a repo that you want to address. So, reading through existing open issues before opening a new one is always a good idea. If you already have a fix in mind that doesn't exist in the existing issue list, you will [create a new issue](create-issue) in the repo.
8182

82-
:::{button-link} identify-issue
83+
:::{button-link} identify-issue.html
8384
:color: primary
8485
:shadow:
8586

@@ -102,7 +103,7 @@ Once you have submitted an issue and someone has responded positively, you can b
102103

103104
Once you have created an issue or identified what you wish to work on, you will [`Fork` or create a copy of the repo](fork-repository) in your GitHub account.
104105

105-
:::{button-link} fork-repo
106+
:::{button-link} fork-repo.html
106107
:color: primary
107108
:shadow:
108109

@@ -113,8 +114,10 @@ Once you have created an issue or identified what you wish to work on, you will
113114

114115
**Fork the pyOpenSci practice GitHub repository**
115116
*******
117+
* Navigate to the [pyOpenSci example repo](https://github.com/pyOpenSci/pyos-demo-package-contribute).
118+
* Fork the repository.
116119

117-
Fork the <a href="http://www.github.com/pyopensci/repo-here" target="_blank">pyOpenSci demo repository on GitHub</a>. Remember that a fork is a copy of a repository that is owned by someone else or an organization that lives in your GitHub account.
120+
*Remember that a fork is a copy of a repository that is owned by someone else or an organization that lives in your GitHub account.*
118121
:::
119122

120123
********
@@ -133,13 +136,13 @@ Once you've successfully forked the repo, it's time to edit the file you want to
133136
:::{admonition} Activity: Make a change to a file and commit it to your fork
134137

135138
1. Navigate to your fork on GitHub.com
136-
2. In the GitHub interface, click on the file that you proposed to modify or fix [in the identify issue lesson](identify-issue): instructions on how to do this are below
139+
2. In the GitHub interface, click on the file that you proposed to modify or fix [in the identify issue lesson](identify-issue)
137140
3. Click on the edit <kbd><i class="fa-solid fa-pencil"></i></kbd> button in the GitHub interface.
138141
4. Make the edits to the file that you proposed in your issue.
139142
5. Hit the <kbd>commit</kbd> button to save your edits
140143
6. Add a descriptive commit message that describes the change that you made
141144

142-
Some examples:
145+
Commit message examples:
143146
> fix: fixed numerous typos in the filename.py file
144147
>
145148
> fix: updated the code to align with PEP 8 syntax
@@ -154,28 +157,26 @@ Some examples:
154157

155158
Once your edits are [committed to git version control](edit-commit-files), open a <kbd>Pull Request</kbd> to the parent repository.
156159

157-
:::{button-link} pull-request
160+
:::{button-link} pull-request.html
158161
:color: primary
159162
:shadow:
160163

161164
<i class="fa-brands fa-leanpub" style="color: #6ec9c3;"></i> Learn more about creating your first GitHub pull request
162165
:::
163166

164167
:::{admonition} Activity: Submit a PR to the pyOpenSci parent repository
165-
Create a pull request to the [pyOpenSci parent repository](https://github.com/pyOpenSci/pyos-demo-package-contribute), from the branch on your fork that you worked on in the previous lesson.
168+
Create a <kbd><i class="fa-solid fa-code-pull-request"></i> Pull Request</kbd> to the [pyOpenSci parent repository](https://github.com/pyOpenSci/pyos-demo-package-contribute), from the branch on your fork that you worked on in the previous lesson.
166169
:::
167170

168171
Once your PR is open, it's time to sit back and wait for the maintainers, collaborators, or project owners to review/comment on your PR. Be patient; this step can take time as people are busy and often donate their time to this effort!
169172

170173
********
171174

172-
## Start with contributions to documentation
175+
## Many people's first contributions are to documentation
173176

174-
Many people's first contributions are to documentation. Documentation contributions can be incredibly valuable as developers often don't have time to work on documentation and code!
177+
In this lesson, you make your first open source contribution by updating documentation (including docstrings) rather than code. Many people start with small fixes like typos, which are simpler to contribute as you don't always need a development environment but are still valuable. Developers often focus on code, leaving less time for writing and editing documentation. So your small contributions can have a large impact.
175178

176-
Fixing typos and other small documentation issues makes for great, easy-to-create (and review) first pull requests. In fact, if you find that the contributing information isn't detailed enough, that could also be your first contribution!
177-
178-
When you edit documentation, you can often make the changes in the GitHub interface online versus needing to clone the repository and work locally.
179+
Further, if you go to contribute and find that the contributing guidelines lack detail, that could also be a useful place for you to start.
179180

180181
:::{admonition} A real-life first contribution to PyPI
181182

0 commit comments

Comments
 (0)