Overview

Prof. Grossberg Site

Build

Requirements

Unix

In order to build this web site, it needs a couple of Unix libraries. The following are instructions on how to install them on Mac

YUICompressor
$ brew install yuicompressor
Node.js
$ brew install node
NPM
$ curl http://npmjs.org/install.sh | sh
Less
$ npm install less
Verify

Please make sure that the following commands are found and can be executed

$ which lessc
/some/path/here

Python

On the python side, only Jinja2 templates are required. In order to install all requirements you can use a virtualenv with requirements.txt (in the repo):

$ virtualenv env
$ source env/bin/activate
$ cd /path/to/repo
$ pip install -r requirements.txt

Run Generator

Once all the requirements are present you can generate the site by executing the main.py within generator. It will make another folder in the repository root path - output which will contain all generated files for the site:

$ cd /path/to/repo
$ python main.py
$ cd /path/to/repo/output
$ ls
index.html ...

Credits

The site design and the generator are made by Miroslav Shubernetskiy