Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/k8hertweck/2015-11-19-umiami-r
Website and materials for fall 2015 U Miami workshop in R
https://github.com/k8hertweck/2015-11-19-umiami-r
Last synced: 4 days ago
JSON representation
Website and materials for fall 2015 U Miami workshop in R
- Host: GitHub
- URL: https://github.com/k8hertweck/2015-11-19-umiami-r
- Owner: k8hertweck
- License: other
- Created: 2015-10-15T12:41:36.000Z (about 9 years ago)
- Default Branch: gh-pages
- Last Pushed: 2015-11-19T12:02:26.000Z (almost 9 years ago)
- Last Synced: 2023-04-04T08:51:57.120Z (over 1 year ago)
- Language: Python
- Homepage: k8hertweck.github.io/2015-11-19-umiami-R
- Size: 748 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE.md
Awesome Lists containing this project
README
# workshop-template
This repository is [Software Carpentry](http://software-carpentry.org)'s
template for creating websites for workshops.1. Do *not* fork this repository directly on GitHub.
Instead, please use GitHub's importer following the instructions [below](#creating-a-repository)
to create a website repository for your workshop.2. Please *do your work in your repository's `gh-pages` branch*,
since that is what is [automatically published as a website by GitHub](https://help.github.com/articles/creating-project-pages-manually/).3. Once you are done,
please **send your repository's URL to the [Software Carpentry administrator](mailto:[email protected])**.
We build the [list of workshops on the main website](http://software-carpentry.org/workshops/index.html)
from the data included in your `index.html` page.
We can only do that if you [customize](CUSTOMIZATION.md) that page correctly
*and* send us a link to your workshop website.4. Please also read
[the notes on customizing your website](CUSTOMIZATION.md) and the [FAQ](FAQ.md).
If you're interested in knowing more about why we do things the way we do,
please check out the [design notes](DESIGN.md).5. If you are teaching Git,
please [create a separate repository](#setting-up-a-separate-repository-for-learners)
for your learners to practice in.6. If you run into problems,
or have ideas about how to make this process simpler,
please [get in touch](#getting-and-giving-help).## Creating a Repository
1. Go to [GitHub's importer][import].
2. Click on "Check the URL". (GitHub won't import until you've done this.)
3. Select the owner for your new repository.
(This will probably be you, but may instead be an organization you belong to.)4. Choose a name for your workshop website repository.
This name should have the form `YYYY-MM-DD-site`,
e.g., `2015-07-01-miskatonic`.5. Make sure the repository is public.
6. At this point, you should have a page like this:
![](http://software-carpentry.org/img/workshop-template/using-github-import.png)
You can now click "Begin Import".
When the process is done,
you can click "Continue to repository" to visit your newly-created repository.**Note:**
some people have had intermittent errors during the import process,
possibly because of the network timing out.
If you experience a problem, please re-try;
if the problem persists,
please [get in touch](#getting-and-giving-help).To clone your new repository, use:
~~~
git clone -b gh-pages https://github.com/your_username/YYYY-MM-DD-site
~~~This is needed because the imported repository doesn't have a `master` branch.
**Note:** please do all of your work in your repository's `gh-pages` branch,
since [GitHub automatically publishes that as a website](https://help.github.com/articles/creating-project-pages-manually/).## Customizing Your Website
1. Go into your newly-created repository,
which will be at `https://github.com/your_username/YYYY-MM-DD-site`.
For example,
if `your_username` is `gvwilson`,
the repository's URL will be `https://github.com/gvwilson/2015-07-01-mistaktonic`.2. Edit `index.html` to customize the list of instructors,
workshop venue,
etc.
You can do this in the browser by clicking on it in the file view
and then selecting the pencil icon in the menu bar:![](http://software-carpentry.org/img/workshop-template/edit-index-file-menu-bar.png)
or you can clone the repository to your desktop,
edit `index.html` there,
and push your changes back to the repository.
Editing hints are embedded in `index.html`,
and full instructions are in [CUSTOMIZATION.md](CUSTOMIZATION.md).3. Edit `_config.yml` in the same way
so that `workshop_repo` and `workshop_site`
are the URLs of your repository and your GitHub Pages website respectively.Note: the URL for your website is determined automatically
based on the URL for your repository.
If your repository is at `https://github.com/gvwilson/2015-07-01-mistaktonic`,
its GitHub Pages website is at `http://gvwilson.github.io/2015-07-01-miskatonic`.4. When you are done editing,
you can preview your website.
Again,
if your repository is `https://github.com/your_username/YYYY-MM-DD-site`,
its website will be `http://your_username.github.io/YYYY-MM-DD-site`.Full instructions are available in [CUSTOMIZATION.md](CUSTOMIZATION.md).
This [FAQ](FAQ.md) includes a few extra tips
(additions are always welcome)
and these notes on [the background and design](DESIGN.md) of this template may help as well.That's it.
The following steps are only necessary if you want to run the website locally on your computer.## Checking Your Changes
**Note:** to check your changes you need some softwares
that are describe at [Installing Software session](#installing-software).No matter how you edit `index.html`, you should:
1. Check your changes by running `tools/check.py` at the command line
from the root directory of your repository.2. Preview your changes by running `tools/preview` and looking at `_site/index.html`.
For some links to work properly,
particularly the link to your workshop's Eventbrite registration page,
you must view `_site/index.html` using an HTTP server.
If you have Jekyll installed,
you can do this by running:~~~
$ jekyll server -d _site
~~~and going to http://localhost:4000.
## Installing Software
In order to preview the workshop website locally on your computer,
you must install the software described below.> If you aren't able to install this software (or you just can't be
> bothered), you can still create a website for your workshop. Every
> time you push a change to your website respository the live website
> will update automatically, so you can check your changes on the live
> site instead of locally.1. Ruby 2.0 or greater
On Debian/Ubuntu based machines you can install it using
~~~
$ sudo apt-get install ruby2.0 ruby2.0-dev
~~~2. NodeJS
On Debian/Ubuntu based machines you can install it using
~~~
$ sudo apt-get install nodejs
~~~3. Jekyll
Install `github-pages`:
~~~
$ gem install github-pages
~~~or if that doesn't work:
~~~
$ gem install jekyll
$ gem install kramdown
~~~We use Kramdown to translate Markdown into HTML, instead of
the default Redcarpet, because Kramdown handles Markdown
inside HTML blocks.2. The Python YAML module
If you are using the Anaconda Python distribution, you probably
already have it; if you don't, you can install it with:~~~
$ conda install pyyaml
~~~If you are using some other distribution, you can install the
Python YAML module using Pip:~~~
$ pip install pyyaml
~~~and if you are on Debian Linux, you can use:
~~~
$ apt-get install python-yaml
~~~## Setting Up a Separate Repository for Learners
If you are teaching Git,
you should create a separate repository for learners to use in that lesson.
You should not have them use the workshop website repository because:* your workshop website repository contains many files
that most learners don't need to see during the lesson,
and* you probably don't want to accidentally merge
a damaging pull request from a novice Git user
into your workshop's website while you are using it to teach.You can call this repository whatever you like,
and add whatever content you need to it.## Getting and Giving Help
We are committed to offering a pleasant setup experience for our learners and organizers.
If you find bugs in our instructions,
or would like to suggest improvements,
please [file an issue](https://github.com/swcarpentry/workshop-template/issues)
or [mail us](mailto:[email protected]).[import]: http://import.github.com/new?import_url=https://github.com/swcarpentry/workshop-template