Skip to content

Commit 15b8db1

Browse files
committed
fix broken links
1 parent 2accf98 commit 15b8db1

File tree

10 files changed

+33
-40
lines changed

10 files changed

+33
-40
lines changed

contribute-open-source/edit-commit-files.md

Lines changed: 11 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -18,15 +18,17 @@ og:image: /images/github/steps-to-contribute.png
1818
og:image:alt: An image that shows the steps for contributing to open source on GitHub.
1919
---
2020

21+
(pyos-edit-commit-files)=
22+
2123
# Your First Edits to a File in Your Fork: Edit & Commit
2224

23-
Now that you've [identified and comment on an issue](identify-issue), [forked the repository](fork-repo) and received approval to work on an issue, it's time to make your changes.
25+
Now that you've [identified and comment on an issue](identify-github-issue), [forked the repository](fork-repo) and received approval to work on an issue, it's time to make your changes.
2426

2527
> **💡 Reminder:** Your fix should be **small and text-based**, like updating documentation or fixing a typo.
2628
2729
:::{admonition} What you'll learn
2830
:class: tip
29-
You’ll edit a file directly in your **fork** using GitHub’s interface and commit the changes using only the native GitHub interface.
31+
You’ll edit a file directly in your **fork** using GitHub’s interface and commit the changes using only the native GitHub interface.
3032

3133
NOTE: If you want to work on the files locally on your laptop, you will need to [clone or make a copy of your repo locally](clone-repo).
3234

@@ -44,15 +46,14 @@ GitHub lets you edit files right in your browser. Here’s how:
4446
:::{figure} /images/github/edit-commit-file.gif
4547
:alt: "GIF showing how to edit and commit a file on GitHub."
4648

47-
Editing a file directly in the GitHub interface is a straight forward process.
49+
Editing a file directly in the GitHub interface is a straight forward process.
4850
:::
4951

5052
> **⚡ Quick tip:** You can edit as many files as you want, but GitHub only lets you commit them **one at a time** in the browser.
5153
52-
5354
## Ways to edit a file: GitHub vs. GitHub Codespaces
5455

55-
GitHub now offers **two ways** to edit files directly in the interface or using the [cloud-based GitHub Codespaces](about-codespace). If you’re making a small change, use GitHub’s interface. If you need to edit multiple files, try Codespaces.
56+
GitHub now offers **two ways** to edit files directly in the interface or using the [cloud-based GitHub Codespaces](about-codespace). If you’re making a small change, use GitHub’s interface. If you need to edit multiple files, try Codespaces.
5657

5758
| | Option | When to Use | Pros | Limitations |
5859
|-|---------|------------|------|-------------|
@@ -63,10 +64,10 @@ GitHub now offers **two ways** to edit files directly in the interface or using
6364
6465
## What is a commit?
6566

66-
A commit is like taking a snapshot of your changes so you can always "undo" the changes if needed. You can think of a **commit** as a save (or restore) point in git's history. Each commit captures changes you make to one or more files in the repository at a specific time; each commit includes a note explaining what you did.
67+
A commit is like taking a snapshot of your changes so you can always "undo" the changes if needed. You can think of a **commit** as a save (or restore) point in git's history. Each commit captures changes you make to one or more files in the repository at a specific time; each commit includes a note explaining what you did.
6768

6869
:::{tip}
69-
A **commit** is a feature of [git version control](what-is-git), the version control system that GitHub runs in the background.
70+
A **commit** is a feature of [git version control](what-is-git), the version control system that GitHub runs in the background.
7071

7172
:::
7273

@@ -75,16 +76,15 @@ A **commit** is a feature of [git version control](what-is-git), the version con
7576
:::{figure} /images/github/git-commits-files.png
7677
:alt: A visual example demonstrating how Git tracks changes to a document through commits. The image shows an “Original File” with its initial text, followed by two commits. The first commit adds a new paragraph of text, with the changes highlighted in green and the commit message, “Fix: added a new paragraph to clarify text.” The second commit fixes typos in the text, with the edits highlighted in green and the commit message, “Fix: copy edits.” At the bottom, a comparison shows the document after each commit, illustrating how the file evolves with changes.
7778

78-
Each commit represents **a set of changes** at a specific time.
79+
Each commit represents **a set of changes** at a specific time.
7980
:::
8081

8182
> **🛠 Do you need to undo changes that you made?** Git lets you revert to an earlier commit, so you don’t have to worry about breaking anything.
8283
83-
8484
:::{figure} /images/github/git-what-are-commits.png
8585
:alt: A diagram explaining Git commits and their role in version control. The top section shows a timeline of circular commits, each paired with a file icon to represent file changes, with the text: “Each commit represents one or more file changes made at a specific point in time.” The middle section highlights the “Latest Commit” on the timeline, showing it as the current state of the repository. The bottom section demonstrates the concept of reverting, with an arrow pointing from a later commit back to a previous one, illustrating that Git allows reverting or going back to earlier commits. The text reads: “You can also always revert or return to a previous commit. This is what makes Git powerful.”
8686

87-
You can always **undo or revert** changes using Git.
87+
You can always **undo or revert** changes using Git.
8888
:::
8989

9090
:::{admonition} What's next?
@@ -94,9 +94,8 @@ You can always **undo or revert** changes using Git.
9494

9595
*****
9696

97-
[Learn how to create a pull request →](pull-request)
97+
[Learn how to create a pull request →](pyos-pull-request)
9898
:::
99-
10099

101100
:::{todo}
102101

contribute-open-source/fork-repo.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,5 +141,5 @@ Graphi: Screenshot of GitHub’s "Sync Fork" button
141141
:class: important
142142

143143
Now that you’ve forked a repository, the next step is to **edit a file and commit your changes**.
144-
[Learn how to edit and commit files →](edit-commit-files)
144+
[Learn how to edit and commit files →](pyos-edit-commit-files)
145145
:::

contribute-open-source/get-to-know-repo.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,4 +88,4 @@ The above steps will help you determine whether a project is **welcoming, respon
8888

8989
## Next steps
9090

91-
Once you have explored and gotten to know the repository and decided that it's a good project to contribute to, it's time to [find an issue to work](identify-issue). You will learn more about that next.
91+
Once you have explored and gotten to know the repository and decided that it's a good project to contribute to, it's time to [find an issue to work](identify-github-issue). You will learn more about that next.

contribute-open-source/github-codespaces.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ kernelspec:
1313

1414
# Code spaces and contributing to open source
1515

16-
[In the edit commit files lesson](edit-commit-files), you learned how to directly change a file on GitHub in the browser. You didn't need a special development environment to make that change in this lesson.
16+
[In the edit commit files lesson](pyos-edit-commit-files), you learned how to directly change a file on GitHub in the browser. You didn't need a special development environment to make that change in this lesson.
1717

1818
However, in some cases, developers have set up a codespace for you to use on GitHub. A codespace is a cloud-based development environment that has been set up for you (or that you can create yourself) with all of the tool and dependencies that you need to work on a project.
1919

contribute-open-source/identify-issue.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -177,5 +177,5 @@ Focus on making small, meaningful contributions. Most first contributions are sm
177177
If the maintainers invite you to submit a pull request, it's time to:
178178

179179
- [Fork the repository](fork-repository) if you haven't already.
180-
- [Make your changes on a new branch in your fork.](edit-commit-files)
181-
- [Submit a pull request](pull-request) with your updates.
180+
- [Make your changes on a new branch in your fork.](pyos-edit-commit-files)
181+
- [Submit a pull request](pyos-pull-request) with your updates.

contribute-open-source/index.md

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,9 @@ GitHub is a **social coding platform** that allows individuals and teams to mana
2727
2828
## GitHub and open source
2929

30-
**Open source software (OSS)** is code that is publicly accessible—anyone can view, modify, and distribute it. GitHub provides the tools needed for open source projects to store code publically, manage contributions, track and address issues, and collaborate efficiently.
30+
**Open source software (OSS)** is code that is publicly accessible—anyone can view, modify, and distribute it. GitHub provides the tools needed for open source projects to store code publically, manage contributions, track and address issues, and collaborate efficiently.
3131

32-
Specifically, in the Python language, the software is often [associated with packaging](https://www.pyopensci.org/python-package-guide/tutorials/intro.html), where you package up code and make it easier for a user to install on their computer. Reusable sofware allow developers and scientists to share common workflows rather than needing to recreate the code needed for each workflow themselves from scratch.
32+
Specifically, in the Python language, the software is often [associated with packaging](https://www.pyopensci.org/python-package-guide/tutorials/intro.html), where you package up code and make it easier for a user to install on their computer. Reusable sofware allow developers and scientists to share common workflows rather than needing to recreate the code needed for each workflow themselves from scratch.
3333

3434
### Why open source communities use GitHub
3535

@@ -97,8 +97,6 @@ GitHub is widely used in **open source** and **team-based projects** where multi
9797
> **<i class="fa-solid fa-users" style="color: #81c0aa;"></i> Social cue:**
9898
> Working on GitHub is more than writing code—it’s about **communication, teamwork, and reviewing each other's work**.
9999
100-
101-
102100
## Summary
103101

104102
| | **Feature** | **Solo Use** | **Collaborative Use** |
@@ -111,16 +109,15 @@ GitHub is widely used in **open source** and **team-based projects** where multi
111109
:::{admonition} What's next?
112110
:class: seealso
113111
Now that you understand GitHub's role in **open source** and **collaboration**,
114-
you're ready to dive into **contributing to a project!**
112+
you're ready to dive into **contributing to a project!**
115113

116114
*****
117115

118-
<i class="fa-brands fa-github-alt"></i> [Get started with activities to guide you through your first contribution →](your-first-contribution)
119-
<i class="fa-brands fa-github-alt"></i> [Learn how to identify an issue →](identify-issue)
116+
<i class="fa-brands fa-github-alt"></i> [Get started with activities to guide you through your first contribution →](pyos-first-contribution)
117+
<i class="fa-brands fa-github-alt"></i> [Learn how to identify an issue →](identify-github-issue)
120118
<i class="fa-brands fa-github-alt"></i> [Learn how to fork a repository →](fork-repository)
121119
:::
122120

123-
124121
:::{todo}
125122
resources
126123
<https://www.youtube.com/watch?v=eWxxfttcMts>
@@ -160,7 +157,6 @@ Clone a GitHub Repo <clone-repo>
160157
:maxdepth: 2
161158
:hidden:
162159

163-
164160
What is Git/GitHub <what-is-git-github>
165161
GitHub Social platform <github-social-platform>
166162
Use GitHub codespaces <github-codespaces>

contribute-open-source/pull-request.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,10 @@ myst_html_meta:
1515
"keywords": "GitHub, OpenSource"
1616
"property=og:locale": "en_US"
1717
---
18-
18+
(pyos-pull-request)=
1919
# About Pull Requests
2020

21-
In the last lesson, you learned how to [make and commit a change to a document in a GitHub repository](edit-commit-files).
21+
In the last lesson, you learned how to [make and commit a change to a document in a GitHub repository](pyos-edit-commit-files).
2222
In this lesson, you will learn how to submit a pull request after making changes to a file in a GitHub repository.
2323

2424
A GitHub pull request (**PR**):

contribute-open-source/your-first-contribution.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@ myst_html_meta:
1717
"og:image": /images/github/steps-to-contribute.png
1818
"og:image:alt": An image that shows the steps for contributing to open source on GitHub.
1919
---
20-
21-
# Mastering GitHub Collaboration Skills
20+
(pyos-first-contribution)=
21+
# Your First Open Source Contribution
2222

2323
Contributing to open source in a public space like GitHub can feel intimidating. You may not know the project maintainers, feel unsure about your GitHub skills, or wonder where to begin.
2424

@@ -82,7 +82,7 @@ Open a new browser tab after reading through the [get-to-know a repo lesson](get
8282

8383
### Step 2: Find an issue to work on
8484

85-
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.
85+
Next, [identify an issue or bug that you want to work on](identify-github-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.
8686

8787
:::{button-link} identify-issue.html
8888
:color: primary
@@ -140,7 +140,7 @@ Once you've successfully forked the repo, it's time to edit the file you want to
140140
:::{admonition} Activity: Make a change to a file and commit it to your fork
141141

142142
1. Navigate to your fork on GitHub.com
143-
2. In the GitHub interface, click on the file that you proposed to modify or fix [in the identify issue lesson](identify-issue)
143+
2. In the GitHub interface, click on the file that you proposed to modify or fix [in the identify issue lesson](identify-github-issue)
144144
3. Click on the edit <kbd><i class="fa-solid fa-pencil"></i></kbd> button in the GitHub interface.
145145
4. Make the edits to the file that you proposed in your issue.
146146
5. Hit the <kbd>commit</kbd> button to save your edits
@@ -159,7 +159,7 @@ Commit message examples:
159159

160160
### Step 5: Submit a pull request
161161

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

164164
:::{button-link} pull-request.html
165165
:color: primary

index.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,12 @@
1616

1717
Learn how to navigate the technical and social elements of making a contribution to open source code on GitHub.
1818

19-
* [Your First Contribution](your-first-contribution)
19+
* [Your First Contribution](pyos-first-contribution)
2020
* [Get to know a new repo](new-repo)
21-
* [Find an issue to work on](identify-issue)
21+
* [Find an issue to work on](identify-github-issue)
2222
* [Fork a repo](fork-repository)
23-
* [Edit & commit files](edit-commit-files)
24-
* [Submit a pull request](pull-request)
23+
* [Edit & commit files](pyos-edit-commit-files)
24+
* [Submit a pull request](pyos-pull-request)
2525

2626
:::
2727
::::

write-better-code/optimize-code/index.md

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,13 +15,11 @@ kernelspec:
1515

1616
More here
1717

18-
1918
:::{toctree}
2019
:hidden:
2120
:maxdepth: 2
2221
:glob:
2322

2423
*
25-
:::
26-
2724

25+
:::

0 commit comments

Comments
 (0)