This tutorial will guide you through the setup on your local machine for editing just the docs sites for our MDLutoronto project.

Prerequisite

Accounts

  1. GitHub account and to be added to the learning object repository under MDLutoronto GitHub Organization
    1. See the Manage Student Access to MDLutoronto GitHub Repository guide for instructions on how to add students to the repository.

Software

  1. Ruby (install the 3.4.6-1 (x64) version, i.e. Ruby+Devkit 3.4.6-1 (x64))
  2. Git (install the Windows version)
  3. VS Code
    1. Recommended VS Code extensions to install:
      1. GitLens: for visually using git within VS Code
      2. Path Autocomplete: for auto-completing file paths when editing markdown files
      3. Code Spell Checker: for spell checking when editing markdown files

Configuration

Installing software

A recommended order of installation would be:

  1. VS Code
  2. Git
  3. Ruby

Vs code

For VS Code, you can just keep the default installation options.

Once installed, you may install the recommended extensions listed above via the Extensions view in VS Code (Ctrl+Shift+X), by searching for the extension name and clicking on the Install button.

Or you may install them by visiting the extension links above and clicking on the Install button there. The button will redirect you to VS Code and prompt you to install the extension.

Git

For Git, during the installation, make sure to select the following options when prompted:

  1. Choose VS Code as default editor for Git

    When prompted to select the default editor used by Git, select Use Visual Studio Code as Git’s default editor

  2. Choose Git Credential Manager

    Make sure the Git Credential Manager option is selected to enable Git credential manager for managing GitHub credentials

Once you have installed Git, follow the steps below for configuring Git credential manager and setting up git user.name and user.email.

Connect to GitHub using Git credential manager

  1. Open a (Windows) PowerShell Terminal Open PowerShell

  2. Type the following command to make the Git credential manager to manage your GitHub credentials

     git config --global credential.helper manage
    

    It’s normal no output will be shown in the terminal after running this command.

  3. Type the following command to login to your GitHub account

     git credential-manager github login
    

    Git credential manager GitHub login

    A window (outside the terminal) will pop up and prompt you to login to your GitHub account. Click on the Sign in with your browser button. After logging in, you may close the web browser window and return to the PowerShell terminal.

  4. Run the following command to verify your GitHub authentication

     git credential-manager github list
    

    You should see your GitHub username printed in the terminal output

Setting up git user.name and user.email

Note that the user.name and user.email input will be visible publicly. If you have any concerns, consider using the email relay address for commit provided by GitHub.

You can retrieve that email address the under Settings > Emails, after turning on the Keep my email addresses private option

GitHub CLI Authentication

  1. Input the following to set your git user name and email. The email should be the same as the one on your GitHub account (or the email relay address provided by GitHub)

    User name can be any name you want to show up on your commits:

     git config --global user.name "Your Name"
    

    User email should be the email address associated with your GitHub account (or the email relay address provided by GitHub):

     git config --global user.email "Your Email"
    
  2. Check your settings with the following command:

     git config --list
    

    Look at the user.email and user.name row, like the following:

     ...
     user.name=Your Name
     user.email=Your Email
     ...
    

Ruby

For Ruby, during the installation, default options should be fine.

However, at the end of the installation, make sure to check uncheck the Run 'ridk install' to set up MSYS2 and development toolchain option before clicking on the Finish button. Uncheck Run ridk install

Next steps

New guide

See the Create a new guide page for instructions on how to create a new Just-the-Docs guide.

Existing guide

See the Edit a guide page for instructions on how to work with an existing Just-the-Docs guide.


First created: December 09, 2025
Last updated: March 03, 2026

Tutorial maintained by Ken Lui.

Tutorial created by Ken Lui.

Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International icon