Skip to content

UW-POLS501/2016

Repository files navigation

Build Status

POLS 501 (Winter 2016)

Repository containing materials and the website for POLS 501: Advanced Political Research Design and Analysis (University of Washington, Winter 2016).

Course website is at https://UW-POLS501.github.io/pols_501_wi16/

Organization

  • web/ : Materials for the website
  • data/ : Any datasets used in the course
  • docs/ : .Rmd docs used in labs

Build

The website is built with

  • Nikola a static site generator
  • travis (to automatically build and deploy to github pages)

The python dependencies are handled with conda.

The conda environment used is named pols_501_wi16. The the environment using the file environment.yml

$ conda env create -f environment.yml

The environment that is created is named pols_501_wi16.

To activate the environment if it already exists. On Linux/OSX:

$ source activate pols_501_wi16

On Windows:

$ activate pols_501_wi16

To deactivate the environment on Linux/OSX

$ source deactivate 

and Windows

deactivate

If changes are made to the environment (packages deleted, added, or updated) save the chagnes to environment.yml.

$ conda env export > environment.yml

To reinstall the conda environment from environment.yml

$ source deactivate
$ conda remove --name pols_501_wi16 --all \
  && conda env create -f environment.yml

The files for the site are in the directory web. This site is built using the static site generator Nikola with Python 3.

> source activate 
> cd web
> nikola build

Canvas

Canvas is only used for collecting assignments, and scheduling meetings.

Posts from the site are used to generate announcements in Canvas by adding the RSS feed as an external source (see the instructions).