Github Pages...
- Create a new repo under the CS10 organization as "fa15" 1.1 Go to new repo on GitHub and make sure CS10 is the owner. 1.2 Name it "fa15" (or whatever the semester name is.)
- Clone this folder
git clone git@github.com:cs10/fa15.git
- Clone a copy of the previous CS10 site, like "su15"
- Copy the contents of the previous site to the new one. 4.1 (You don't need copy the git history)
- Before you add stuff, you should delete some old files.
- 'lecture/*'
- 'disc/*'
- Make sure
resources/
has a.git
folder in it, or is empty.
- Create a branch
gh-pages
and all the contents to it. 5.1git checkout -b gh-pages
5.2git add .
5.3git commit -am 'Initial Commit'
5.4git push -u origin gh-pages
- Push to github
- Make sure the resources folder exists.
7.1
git submodule add git@github.com:cs10/resources.git
7.2git add .
7.3git commit -am 'Added Resources submodule'
7.4 Push to github (git push
) - You should new be able to see the site at cs10.org/fa15
- See the (very basic) README in the folder of recent websites for some info.
- If you have Ruby installed, you should be able to do
gem install bundler
2.1 If you want to, you can installrvm
from rvm.io 2.2 Then install a new Ruby - Once bundler is installed run
bundle install