beanumber / oiLabs-mosaic

Source files for OpenIntro Statistics labs
Other
1 stars 8 forks source link

Create gh-pages branch so labs can be viewed online? #8

Closed rpruim closed 8 years ago

rpruim commented 10 years ago

Have you considered creating a gh-pages branch so that people can view these labs in a browser without having to go through extra steps? Or are they availalbe already somewhere? Will OpenIntro be creating a link pointing to the mosaic version of the labs?

beanumber commented 10 years ago

This is a good idea -- I will work on this.

galenlong commented 10 years ago

We already have a repo with the same name as the username that's correctly displaying the index.html page inside of it: http://beanumber.github.io/

Then, to create a page for the oiLabs project, we have to add branch named gh-pages to the oiLabs repo. Then, anything pushed to gh-pages will be displayed automatically at http://beanumber.github.io/oiLabs/

The gh-pages branch should be one without any parent branches, according to this page: https://github.com/blog/272-github-pages. You can do this by using the --orphan flag when making the branch: http://stackoverflow.com/questions/5689960/how-do-i-create-a-commit-without-a-parent-in-git

After the gh-pages branch is made, we'll have to manually push the .html/.css lab files to it (which is annoying, because we're going to have to remember to update the gh pages versions when we make changes). We should also probably add an index.html file to that branch with a table of contents to access the labs.

beanumber commented 8 years ago

Done.