You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
print.css: Print styles (custom); imports the two Bootstrap files
screen.css: Screen styles (custom)
img/: Images for your site
glyphicons-halflings-white.png: White Glyphicons packaged with
Twitter Bootstrap
glyphicons-halflings.png: Black Glyphicons packaged with
Twitter Bootstrap
js/: JavaScript files
bootstrap.min.js: Twitter Bootstrap JavaScript file (depends on jQuery, which is loaded
from the Google Code API in the default.html layout file
html5shiv.js: HTML5 Shiv, a JavaScript file that enables older Internet Explorer browsers
(prior to v. 9) to style HTML5 elements used in the default.html layout file
index.md: Content file for home page; treated as Course Calendar, but can be anything you
like
README.md: You’re looking at it.
Setup
Mac:
Install TextWrangler (available on the Mac app store, or
here)
Create SSH keys, if you don’t have them yet, and add them to GitHub. If running
$ cat ~/.ssh/id_rsa.pub
in your terminal doesn’t result in output, follow
these instructions,
specifically Steps 3, 4, and 5.
Open up your Terminal (Mac) or Command Prompt (Win) and create a directory for your
course websites:
$ mkdir Courses
Change into that directory:
$ cd Courses
Clone your forked repository by running $ git clone followed by the SSH link from your
forked copy of this repository
Do lots of things to make your site; run
$ git add FILENAMES
replacing FILENAMES with a space-separated list of files and directories to add,
followed by
$ git commit -m "Descriptive message..."
replacing Descriptive message... with a message describing the change to the files
you added.
Remove the original remote of your forked repo
$ git remote rm origin
Add a new remote to your forked repo by running
$ git remote add origin YOURURL
replacing YOURURL with the SSH URL from your newly created remote
Push your course site to make it live
$ git push origin gh-pages
Make more changes; commit them; then run git push origin gh-pages to make them live
Using a custom domain
Instead of using a domain name like http://username.github.com/repo-name/, you can use
a custom domain or subdomain. Use your domain registrar’s control panel to set up either a
CNAME or A Record, as
described here
Then, create a text file called CNAME containing the domain or subdomain you set up with your
domain registrar. For example, if you set up a CNAME record for http://course.example.com/``, the contents of your CNAME file will be course.example.com Add the file to your repository ($ git add CNAME&$ git commit -m "Added CNAME file for my custom domain"`)
Give it time; it can take several hours for nameservers to correctly route
your domain/subdomain to GitHub.