Update README with Sass, add pip install to run.sh
This commit is contained in:
parent
5abe06e42a
commit
8574d1042c
|
@ -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
3
run.sh
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue