How to Update the People Page
Contributing to the Lab Website
This guide explains how students and collaborators can update the People page of the lab website by submitting a pull request (PR) through GitHub. All edits take place inside people.qmd
1. Clone the repo
Open the lab’s GitHub repository.
Use the green
Codebutton to obtain the repo’s URL.Open RStudio
Go to: File → New Project → Version Control → Git
Paste the URL of the repo
https://github.com/jcvdav/lab.gitChoose a local folder and click Create Project.
2. Create a New Branch
In RStudio (Terminal, not console!):
git checkout -b dev_<your name>
3. Open the people.qmd File
All profiles are inside: people.qmd
Scroll to the appropriate section: PhD Students, Undergraduate Students, etc. You may add a new section if a fitting one does not exist already.
4. Add or Edit Your Profile
Guidelines
- Keep the same layout as the existing profiles.
- Write your bio in paragraph form.
- Put your name in a
###heading.
- Keep formatting consistent with other entries.
5. Add Your Photo
Put your headshot in: img/
Example filenames:
headshot_smith.jpgheadshot_lopez.png
Recommended:
- Under 300 KB
- JPG or PNG files
Reference in your profile as: img/headshot_lastname.jpg
Render the page and make sure your profile looks OK.
6. Commit Your Changes
In RStudio:
Open the Git tab
Stage edited files
Write a commit message, e.g.:
Add profile for Jane Doe to people.qmdClick Commit
Click Push
7. Open a Pull Request (PR)
- Go to the repo’s page on GitHub
- Click on the Pull request tab and start a new request
- Make sure the PR compares:
- base branch:
main
- compare branch: your branch
Add a short description, e.g.:
Added my profile to people.qmd and uploaded a headshot.Click Create pull request.
8. Review and Merge
I will then:
- Review your changes
- Suggest edits if needed
- Merge the PR
GitHub Pages will rebuild the site automatically.
Thank You
Thank you for contributing to the lab website! Your updates help keep our team information accurate and up to date.