Skip to content

How to update your image

Koustuv Sinha edited this page Nov 25, 2021 · 2 revisions

You can easily update your image using the Github portal. We store the images in assets/img/ folder. To do this, first we need to go to your Fork of the repository.

Step 1

Create a Fork of the repository in your account

Screen Shot 2021-11-25 at 4 25 19 PM

If you already have a fork

Navigate to your Fork of the repository and click on Fetch Upstream to sync it to the current version.

Screen Shot 2021-11-25 at 4 25 32 PM

Step 2

In your fork, navigate to assets/img/ folder.

Screen Shot 2021-11-25 at 4 18 16 PM

Step 3

Click on Upload Files to add the image in this folder.

Screen Shot 2021-11-25 at 4 20 11 PM

Step 4

  • Prepare a profile pic, have a one word name (usually better to have it <firstname><lastname>.jpg or <your mcgill username>.jpg, but anything works as long as it doesn't conflict with an image already in the repo)
  • Ensure this profile pic is within reasonable size
  • Drag and drop your profile pic here.

Screen Shot 2021-11-25 at 4 29 22 PM

  • Click on "Commit Changes" to add it in your fork

Step 5

  • Now, navigate to _data/students.yml file and Click the pencil icon to edit the file.

Screen Shot 2021-11-25 at 4 37 50 PM

  • Find your entry. In there, edit the image field to your the filename of the image you added.

Screen Shot 2021-11-25 at 4 39 03 PM

  • Click "Commit Changes" to save your edits

Step 6

Now it is time to submit your Pull Request! In your fork, you should see a "Contribute" link, click that and click on "Open Pull Request"

Screen Shot 2021-11-25 at 4 41 29 PM

You should see a Pull Request page like this: Screen Shot 2021-11-21 at 2 46 01 PM

  • Add a note in the field (could be same as before) and click on "Create pull request" to submit your change for review Screen Shot 2021-11-21 at 2 46 27 PM

Step 7

After this step, we will receive the Pull Request in this page: https://github.com/rllabmcgill/new_website/pulls . As soon as someone in the moderation team accepts the PR, it will be reflected in the website.

Clone this wiki locally