Changes

Jump to: navigation, search

DPS909 & OSD600 Winter 2017 - Lab 4

1,309 bytes added, 13:54, 2 February 2017
no edit summary
</pre>
==6. The gh-pages branch==
For our final experiment, let's learn how to use Github's special <code>gh-pages</code> branch to host static web content.
First, let's convert our <code>animals.txt</code> file to HTML. Open the file and modify it so it's a proper HTML document, something like this:
<pre>
<!doctype html>
<title>Learning about gh-pages</title>
<body>
<ul>
<li>horse
<li>cow
<li>chicken
<li>whale
<li>seahorse
<li>dolphin
<li>monkey
<li>python
<li>bird of paradise
</ul>
</pre>
Next, <code>commit</code> your change, then use <code>git mv</code> to rename <code>animals.txt</code> to <code>animals.html</code>. Make sure you <code>commit</code> that rename change as well.
After youNow let've picked s create a new branch named <code>gh-pages</code> that points to our current commit on <code>animals</code>: <code>git checkout -b gh-pages animals</code> Next, <code>push</code> your bugnew <code>gh-pages</code> branch to Github and your forked repo: <code>git push origin gh-pages</code> Lastly, add we can visit our hosted page at http://{username}.github.io/Spoon-Knife/animals.html. Mine is at https://humphd.github.io/Spoon-Knife/animals.html. There are more instructions [https://help.github.com/articles/configuring-a-publishing-source-for-github-pages/ here]. ==Submission== You will have completed your lab when you have done the following: * Completed the steps above to fork the Spoon-Knife repo, and created the various branches, done the merges, rebasing, etc.* Added a row to the table below with your '''name''' , '''GitHub repo link to your Spoon-Knife fork''', and the '''issue numberhosted gh-pages URL to your animals.html file''' to the table below.* Written a blog post discussing what you learned about branches, merging, rebasing this week.
{| class="wikitable"
|-
| 1
| Dave Humphrey| https://github.com/humphd/Spoon-Knife| https://humphd.github.io/Spoon-Knife/animals.html
|-
| 2
|-
| 35
|
|
|
-
| 36
|
|
|
|}
 
==Submission==
 
You will have completed your lab when you have done the following:
 
* Setup Bramble and Thimble on your local computer, and taken a '''screenshot''' of it running in your browser
* Picked a '''bug''' to fix in Thimble
* Written a blog post discussing what it was like setting up Thimble, what you learned, and which bug you chose. What is the bug about?
* Added a row to the table above with your '''name''', '''issue URL''', and '''blog post URL'''.

Navigation menu