Pippin's Introduction to GitHub Pages - pippinbarr/dart450-2018 GitHub Wiki

One you have your dart450 repository set up on GitHub, you can quickly turn it into hosted a website as follows:

  1. Go to your dart450 repository on github.com
  2. Go to the Settings tab in the menu at the top
  3. Scroll down to the GitHub Pages section
  4. In the Sources dropdown, select master branch
  5. Select "Save"

Now your repository is available as a website! By way of example, imagine your username is joe (and your repository is called dart450). Then the website version of the repository is available at:

http://joe.github.io/dart450/

This URL will point to the base or root directory of your repository. So if there's an index.html file in there, then you'll see that file displayed as a webpage. This means you can create websites in subdirectories, like for your exercises, and then just submit a link to the subdirectory to show the exercise, e.g.:

http://joe.github.io/dart450/exercises/exercise01/

(Assuming you have an exercises/ folder in your repository, and in that there is an exercise01/ folder, and inside that there is the website for the exercise, including index.html.)

This website lives on the GitHub servers, so it will only be updated with your local changes whenever you push your local repository to the remote repository by clicking Push to origin in GitHub Desktop. (It might take a couple of minutes to update, potentially.)