Just like we did in class, open a new pull request adding a new slide to the deck.
-
Create a new branch, and switch to that branch:
git switch -c NEWBRANCHNAME
-
Create a new file in the
_slides
directory:touch 00-USERNAME.md
-
Follow the directions for the same activity we created together, where it says "Activity: Edit Your File".
-
Instead of just adding the caption, you will need to find a new image from the image list and use that to fill in this template:
--- layout: slide --- SLIDE-CAPTION IMAGE-URL {: .center}
-
Save and commit your changes on your new branch.
-
If working locally, push your changes up to the remote:
git push -u origin NEWBRANCHNAME
-
Open a pull request In the body of the pull request, @ mention anyone you'd like to review your changes.
-
Once the tests pass on your pull request, merge the pull request.
Add a caption to an existing slide in someone else's pull request.
- Find a pull request that you'd like to add a caption to.
- See what image they have chosen by clicking 'files changed', and then 'view'.
- Edit the file, either in the browser or locally, to add a line with your caption. (Please do not erase work that others have added to this file.)
- If you are working locally, you will need to check out to the branch.
- Make sure you have all the remote changes updated in your local repository:
git pull
. - Look for the name of the branch in the pull request, and check out to that branch locally:
git switch BRANCHNAME
.
- Save the changes, and commit the file.
- If you are working locally, push the changes up to the remote:
git push
.
- If you are working locally, push the changes up to the remote:
- Do not merge the pull request, simply
@
mention the user who opened the pull request to let them know about your changes.
Improve our README.md
by adding some of your favorite resources.
- Create branch, and switch to that branch:
git switch -c NEWBRANCHNAME
. - Edit the README.md to be better in some way. This could mean adding a new resource, or making the existing descriptions more clear. Save and commit your changes.
- If working locally, push your changes up to the remote:
git push -u origin NEWBRANCHNAME
. - Open a pull request
In the body of the pull request, with
base: main
andcompare: NEWBRANCHNAME
. @
mention anyone you'd like to review your changes.- Once the tests pass on your pull request, merge the pull request.
If you'd like a more advanced challenge, and you have an eye for style, change the colors, font, and other aspects of the class slide deck. Note: If multiple participants attempt this, there may be merge conflicts.
- Create a new branch and check out to it:
git switch -c NEWBRANCHNAME
. - Find the file
_sass/solarized/solarized.scss
. - Make changes in the file.
- Lines 12-19 affect colors
- Lines 33-35 affect font and font size
- Lines 52-55 affect headers
- Save and commit your changes on your branch.
- Push your branch to the remote:
git push -u origin NEWBRANCHNAME
. - Open a pull request with
base: main
andcompare: NEWBRANCHNAME
. @
mention anyone you'd like to review your changes.- Once the tests pass on your pull request, merge the pull request.