Editing this grad school Guide takes a little more work than the previous wiki, but the good news is that this Guide is backed up to the cloud and deeply customizable. There are a couple ways you can update this document, but all of them start with going to the GitHub page. We’ll list your options from there from least to most involved, but all will require a GitHub account.
Important: Everything about this website is public; do not record any passwords or other sensitive information here!
This option doesn’t require you to edit anything about the Guide, but it will take longer. On the GitHub page for the uoftgasa.github.io, you’ll find the ‘Issues’ tab under the title of the repository. Click on this tab, then click ‘create an issue.’ This will open up a comment box where you can suggest changes to the guide. It is important that both your title and comment clearly describe what you want to change. An example issue might be titled ‘Blue Food Truck Page,’ with the comment
As a saving grace for all graduate students who forget to bring lunch, the blue food truck deserves its own page. The page should describe where the blue food truck parks and the prices for fries, hot dogs and poutine.
Submitting your issue will notify everyone who has access to the uoftgasa GitHub account and everyone on the gasauoft Gmail account. However, it is up to those people to decide whether they think your suggestion is worth following up on, and whether they have time to do so. In the example above, they may reply asking you to provide the price list for the food truck, or they may simply deem the issue unimportant and close it.
If you feel a little more comfortable about modifying the Guide yourself, you may want to try editing the Markdown documents used to generate the guide. These documents are converted into HTML, but Markdown is much more human-readable. My favourite Markdown guide is here.
If you decide to edit the Markdown documents, you’ll first need to fork the GitHub repository to your own GitHub account. The uoftgasa Grad Guide uses the StackEdit in-browser Markdown editor to convert Markdown files into attractive HTML.
Ensure that you have the latest copy of the Guide on your fork before you make any edits. The normal approach is to pull from the main repository (‘upstream’) using Terminal, as outlined here, but that requires you to clone the repository onto your machine. An alternate approach that does not require you to leave the browser is to make a ‘reverse pull request’ – i.e., you pull changes from the main repository onto your fork:
Should you mess up, you can always delete your fork and re-fork a fresh copy from the main repository.
After forking the repository, you can add a new Markdown file by following these steps:
github.com/<username>/uoftgasa.github.io
, where <username>
is your GitHub usernameblue-truck-page
markdown
folder in this repository. If you are adding a page called bluetruck, you would put markdown/bluetruck.md
in this boxYou’re now ready to add content to your file. Pressing the circular arrow symbol in the top right of the page will update the file in your GitHub repository. When you’re finished making changes, you’ll need to submit a pull request, described below.
After forking the repository, follow these steps to edit the existing Markdown files:
github.com/<username>/uoftgasa.github.io
, where <username>
is your GitHub username.blue-truck-page
markdown
folder in this repository. If you wanted to edit the homepage, you would put markdown/index.md
in this box.Having followed these steps, your file of choice will now open in the browser and you can edit to your heart’s content. Pressing the circular arrow symbol in the top right of the page will update the file in your github repository. When you’re finished making changes, you’ll need to submit a pull request, described below.
If you want your Markdown changes to be implemented quickly, you can take the extra step of converting your Markdown file to HTML before submitting your pull request. To do this, follow these steps:
github.com/<username>/uoftgasa.github.io
, where <username>
is your GitHub usernameblue-truck-page
/github.com/uoftgasa/uoftgasa.github.io/tree/master/html-template/template.html
. Dates of changes to the template are included in commit messages on that file; if you make a lot of edits, you can keep using your template until it changes. Click ‘OK’markdown/index.md
, your path should be index.html
; HTML files live in the surface level of this repository. You must do this after configuring the template because otherwise StackEdit will give your HTML file a Markdown file extension by defaultIf you make further changes to your file after you’ve published it, you can update the published version any time by clicking the straight upward arrow in the top right of the page. However, you still need to submit a pull request.
If you’ve made all the desired changes/additions to the Guide’s Markdown (and optionally published the result to HTML), it’s time to submit your changes for consideration. Do this by navigating to your fork of the Guide repository at github.com/<username>/uoftgasa.github.io
, where <username>
is your GitHub username.
This last step will notify everyone with access to the uoftgasa GitHub account and everyone with access to the gasauoft email account. If you’ve only changed Markdown files, someone will still need to publish your work to update the website, which may take longer. If you’ve published your results, the update may be faster. Either way, this has a much higher success chance than submitting an issue.
The HTML template we use to convert the Markdown files will automatically create a table of contents for your page, but all pages should also have a manually added table of contents, with entries for every title with three or fewer #
s. For example, this page has a table of contents section created as follows in Markdown
## Table of Contents
- [Submit an Issue](#submit-an-issue)
- [Edit the Markdown](#edit-the-markdown)
- [Before you begin](#before-you-begin)
- [Adding new files](#adding-new-files)
- [Changing existing files](#changing-existing-files)
- [Publishing your file](#publishing-your-file)
- [Pull request](#pull-request)
- [Style Guide](#style-guide)
Until I figure out a better way to do this, every section should have a table of contents link to prevent unnecessary scrolling on mobile, i.e.,
[**Table of Contents**](#table-of-contents)