Update README with Sass, add pip install to run.sh

This commit is contained in:
Corey Richardson 2016-02-16 04:21:27 +11:00
parent 5abe06e42a
commit 8574d1042c
No known key found for this signature in database
GPG Key ID: 990278AD76243314
2 changed files with 8 additions and 3 deletions

View File

@ -30,9 +30,13 @@ Use the included `new_contribs.sh` script:
## Building
Ensure you have SASS installed. The easiest way to get it is via `gem`, the
Ruby package manager.
```
pelican content -s pelicanconf.py
env SASS_BIN=$HOME/.gem/ruby/*/bin/sass pelican content -s pelicanconf.py
```
### To build the newsletter
* Generate the HTML
@ -40,4 +44,4 @@ pelican content -s pelicanconf.py
TWIR_NEWSLETTER_THEME=1 pelican --delete-output-directory content
```
* Copy the HTML and inline CSS at http://zurb.com/ink/inliner.php - (MailChimp's inliner doesn't remove the CSS from `<head>`).
* Send the newsletter (we currently use MailChimp).
* Send the newsletter (we currently use MailChimp).

3
run.sh
View File

@ -1,6 +1,7 @@
#!/bin/sh
. ./bin/activate
./bin/pelican content -s pelicanconf.py -t themes/pelican-elegant-1.3 || exit
pip2 install -r requirements.txt
./bin/pelican content -s pelicanconf.py || exit
if [ "$REALLY_DEPLOY" = "1" ]; then
rsync -e "ssh -i $HOME/.ssh/twir_deploy_key" -razvP --delete-after output/ twir@octayn.net:production
fi