How to use/edit this site

This is a static website automatically generated with Jekyll by GitHub Pages. The source code is available on GitHub and you are free to copy it, modify it and share it under the terms of the Creative Commons 4.0 BY-SA license.

You are a student, a collaborator, or a casual visitor to this site and want to learn how to take advantage of the freedom offered to you by the CC license, this help page is for you!

Quickly editing pages for collaborators

You are a collaborator of mine, and have write access to the GitHub repository, you can make quick edits to any page by clicking on the Quick edit link on top.

This will drop you in GitHub’s file editing interface, where you can modify the source code, preview it, and commit your changes by giving a short description of what you modified.

Most of the pages are written in Markdown, which is a textual format for generating formatted text. Markdown syntax is very intuitive, you can get a quick review here or here.

CAVEATS: The Markdown engine used by this site is Kramdown. Its syntax definitions are slightly different form GitHub Flavored Markdown, thus the preview feature in GitHub might not render source as in the final result.

Other reasons why GitHub’s preview may not correspond to the final results are:

Copying the site for your own use

You want to get a copy of the website and its source code to analyze it, or because you are afraid that I might take it down someday, this is very easily done, even if you’re not (yet!) the technical type.

All you need is a GitHub account. Once your account is setup, forking the repository will create your own copy in your GitHub account.

Now you can make changes to your own copy of the site. Edit some files, commit the changes, and examine the result. The compiled static site will be served at http://username.github.io/aws-2014 (replace username by your GitHub user name).

Note: the website will not be compiled when you first fork the repository. If you want your fork to be served on github.io before committing any changes, you will have to create a local clone of your fork, then push. This will not create any new commit, but will force GitHub to compile your copy of the site. In a Unix shell, this is

git clone git@github.com:username/aws-2014.git
cd aws-2014
git push

Contributing your changes back to this site

You have forked the repository, made your changes, and now want to contribute them back to the site, but you do not have write access.

Pull requests are GitHub’s standard way of contributing changes back to the original repository. You can make a pull request for this repository, and I will be happy to review your changes and integrate them.

Working locally

You want to do more than the occasional typo fix, or you want to deeply modify the code to make your own site. GitHub’s editor and preview are too limited for this, and handling git history via GitHub’s web interface becomes too clumsy at this point. You need to work locally on your computer.

All you need to work locally is a Git client. Clone the repository and start coding right away.

At some point, you will need to preview your work, but pushing to GitHub each time you want to preview is clumsy. Your best option is to install Jekyll and the required dependencies on your machine. It is recommended to install the GitHub pages gem which provides you with the exact same versions used by GitHub to compile your site.

If you already have Ruby >1.9.3, the install part should be as easy as

gem install github-pages

Note that you will need Ruby headers (ruby-dev package on Ubuntu) in order to compile C dependencies.

Now you can cd into your local clone of the repository and launch the compilation by

jekyll serve -w -b''

Your site will be generated in a _site sub-directory, and served live at http://localhost:4000/. Any changes to the sources will trigger an automatic recompilation!

Have fun coding!

Note: you will notice that the source for the site is in a branch mysteriously called gh-pages. If you are familiar with Git, this will surprise you as the usual branch name for Git repositories is master. This special name is where all the GitHub pages magic comes from: name your branch gh-pages, and GitHub will automatically compile it when you push.

Using the template

I maintain an empty Jekyll template at https://github.com/defeo/class-boilerplate/. If you have a look at the history graph, you will notice that it is often merged to this project.

You can start from there to create your own site. Beware that some of the features of this site may be experimental and not integrated in the template.
{"cc_re__cc_re__cc_by_sa_4_0": ["\n<a href=\"https://github.com/defeo/class-boilerplate/\">https://github.com/defeo/class-boilerplate/</a>.  If you have a look at\nthe <a href=\"https://github.com/defeo/aws-2014/network\">history graph</a>, you will\nnotice that it is often merged to this project.</p>\n\n<p>You can start from there to create your own site. Beware that some of\nthe features of this site may be experimental and not integrated in\nthe template.</p>\n\n\n      </div>\n\n      <footer class=\"footer\">\n\t<div class=\"container\">\n\t  <p><a rel=\"license\"\n\t\thref=\"http://creativecommons.org/licenses/by-sa/4.0/\">\n\t      <img alt=\"Creative Commons Licence\" style=\"border-width:0\"\n\t\t   src=\"http://i.creativecommons.org/l/by-sa/4.0/80x15.png\"/>\n\t    </a> <a href=\"http://defeo.lu\" class=\"print-link\">Luca De\n\t      Feo</a> 2015, licensed\n\t    under <a rel=\"license\" class=\"print-link\"\n\t\t     href=\"http://creativecommons.org/licenses/by-sa/4.0/\">CC-BY-SA\n\t      4.0</a>.</p>\n\n\t  <p class=\"dont-print\">Source code available\n\t    on <a href=\"https://github.com/defeo/aws-2014\">GitHub</a>,\n\t    static Website generat", "wn site. Beware that some of\nthe features of this site may be experimental and not integrated in\nthe template.</p>\n\n\n      </div>\n\n      <footer class=\"footer\">\n\t<div class=\"container\">\n\t  <p><a rel=\"license\"\n\t\thref=\"http://creativecommons.org/licenses/by-sa/4.0/\">\n\t      <img alt=\"Creative Commons Licence\" style=\"border-width:0\"\n\t\t   src=\"http://i.creativecommons.org/l/by-sa/4.0/80x15.png\"/>\n\t    </a> <a href=\"http://defeo.lu\" class=\"print-link\">Luca De\n\t      Feo</a> 2015, licensed\n\t    under <a rel=\"license\" class=\"print-link\"\n\t\t     href=\"http://creativecommons.org/licenses/by-sa/4.0/\">CC-BY-SA\n\t      4.0</a>.</p>\n\n\t  <p class=\"dont-print\">Source code available\n\t    on <a href=\"https://github.com/defeo/aws-2014\">GitHub</a>,\n\t    static Website generated\n\t    with <a href=\"http://jekyllrb.com/\">Jekyll</a> and kindly\n\t    hosted by <a href=\"http://pages.github.com/\">GitHub</a>.</p>\n\t</div>\n      </footer>\n    </div>\n\n    \n\n    \n\n    \n  </body>\n</html>\n"], "cc_re__cc_re__cc_by_sa_4_0_en": ["div class=\"main\">\n      <div class=\"container\">\n\t<h1 id=\"how-to-useedit-this-site\">How to use/edit this site</h1>\n\n<p>This is a\n<a href=\"http://en.wikipedia.org/wiki/Static_web_page\"><em>static website</em></a>\nautomatically generated with <a href=\"http://jekyllrb.com/\">Jekyll</a> by\n<a href=\"http://pages.github.com/\">GitHub Pages</a>. The source code is\n<a href=\"https://github.com/defeo/aws-2014\">available on GitHub</a> and you are\nfree to copy it, modify it and share it under the terms of the\n<a href=\"http://creativecommons.org/licenses/by-sa/4.0/deed.en_GB\">Creative Commons 4.0 BY-SA license</a>.</p>\n\n<p>You are a student, a collaborator, or a casual visitor to this site\nand want to learn how to take advantage of the\n<a href=\"https://creativecommons.org/about\">freedom offered to you by the CC license</a>,\nthis help page is for you!</p>\n\n<h2 id=\"quickly-editing-pages-for-collaborators\">Quickly editing pages for collaborators</h2>\n\n<p>You are a collaborator of mine, and have\n<a href=\"https://help.github.com/articles/what-are-the-different-access-perm"]}