Creating a CS180/280A Portfolio with GitHub Pages

TL;DR: If you make a repo called <your_github_username>.github.io, GitHub will host your site for free! Then it's as simple as adding an index.html file to the repo and building on top of it.

Step 1: Create a GitHub Repository

  1. Log in to GitHub:
  2. Create a New Repository:

Step 2: Add an index.html File

  1. Navigate to Your New Repository: After creating the repository, you'll be redirected to the repository page.
  2. Create an index.html File:

Step 3: Access Your Website

  1. Wait a Few Minutes: GitHub will automatically deploy your site. They say this may take up to 10 minutes. This is your time to brew some tea.
  2. Visit Your New Site:

Step 4: Project Pages

Right now, if you copied the example HTML above, you'll notice the 'Project 1' URL returns 404 as it links to a page that doesn't (yet) exist.
For each project, you should create a separate directory/subpage that you'll link to from the main page. An example directory structure is below:

<your_github_username>.github.io/
├─index.html    (main page)
├─1/
│ ├─index.html
│ └─media/
│   ├─img1.jpg
│   ├─ ⋮
│   └─imgN.jpg
└─2/
  ├─⋮

Each time you commit changes, GitHub Pages will update your site in up to 10 minutes. For this reason, we recommend cloning and editing locally so you can witness your modifications real-time and then push once satisfied.

Step 5: Customization

We aren't going to be sticklers about the design of your site, but it should be easy to navigate and understand. You shouldn't bog the site with deliverable images that take up the whole page, for example.

Extras -- These are in no way required!