This tutorial will guide you on how to add or modify records in the tutorials-search repository.

Prerequisite

Follow the Home page’s setup for the prerequisite software and accounts.

Steps to Edit Records in tutorials-search

Background: The website is backed by a guides.yml file. Each record in the YAML file represents a tutorial record in the search site. You can add new records or modify existing records by editing this file.

There are two ways to edit the records in the tutorials-search repository:

  1. Clone the repository to your local machine, edit the guides.yml file using a text editor (e.g. VS Code), and push the changes back to GitHub.
  2. Directly edit the guides.yml file in the GitHub web interface.

Method 1: Edit Locally using VS Code

You will first need to install the prerequisite software and set up your GitHub account as described on the Home page.

  1. Open a (Windows) PowerShell Terminal
  2. Navigate to the directory where you want to clone the repository
  3. Clone the repository using the command:
     git clone https://github.com/MDLutoronto/tutorials-search.git
    
  4. Change directory to the cloned repository in the terminal:
     cd tutorials-search
    
  5. Switch to a new git branch for your edits (optional but strongly recommended):
     git checkout -b update-tutorials # You can change 'update-tutorials' to a more descriptive branch name
    
  6. Open the repository in VS Code using the command:
     code .
    
  7. A VS Code window will open. In the Explorer pane, navigate to _data/guides.yml and open it.
  8. Edit the guides.yml file to add or modify tutorial records.
  9. Save the changes and make a commit in the terminal:
     git add _data/guides.yml
     git commit -m "Updated tutorial records"  # Add a meaningful commit message within the quotes
     git push origin main
    
  10. Your changes will be pushed to the GitHub repository. You should see an alert in the repository to create a Pull Request.
  11. Create a Pull Request for your changes. There will be some automated checks that run. Once they pass, you can click on the Squash and merge button to merge your changes into the main branch.
  12. Your changes will be live on the tutorials-search site shortly after the merge.

Method 2: Edit Directly in GitHub Web Interface

  1. Navigate to the tutorials-search repository in a web browser.
  2. Create a new branch for your edits (optional but strongly recommended):
    1. Click on the X Branch button next to the main branch icon. Branches list button on GitHub
    2. You will see ‘New branch’ green button on the right side. Enter a name for your new branch (e.g. update-tutorials), and select main in the Source option.
    3. You should see the branch under the Your branches section. Click on it to switch to the new branch. Switch to new branch on GitHub
    4. You should see update-tutorials next to the branch icon now. After switching to new branch
  3. Navigate to the _data folder and click on the guides.yml file. Click on the pencil icon at the top right corner of the file view to edit the file. Location of guides.yml file
  4. You will be lead to an online editor. Make your changes to the guides.yml file. Click on the Commit changes button at the top right corner when you are done.
  5. A pop-up will appear.
    1. Enter a meaningful commit message and description for your changes at the Commit message column.
    2. You can leave the Extended description field empty. Ensure that the option Commit directly to the <your-branch-name> branch. is selected. Click on the Commit changes button to save your changes to the branch. Commit changes popup
  6. Your changes will be saved to the new branch. Click on the tutorials-search box to go back to the repository main page in the current branch. After commit changes and back to repo main page
  7. You should see an alert to create a Pull Request for your changes. Click on the Compare & pull request button. Create Pull Request alert
  8. You will be lead to the Pull Request creation page. Scroll down and click the Create pull request button. Create Pull Request page
  9. You will be brought to a new page. There will be some automated checks that run. Once they pass, you can click on the Squash and merge button to merge your changes into the main branch. Squash and Merge button
  10. Your changes will be live on the tutorials-search site shortly after the merge.

First created: December 05, 2025
Last updated: December 12, 2025

Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International icon