|
|
|
@ -10,23 +10,23 @@ output directory that can actually be uploaded to a server. |
|
|
|
|
## Examples |
|
|
|
|
Generate site from directory to `cool_site` |
|
|
|
|
```sh |
|
|
|
|
$ rivet -o cool_site source_of_cool_site/ |
|
|
|
|
$ rivet -o cool-site/ secret-sauce/ cool-url |
|
|
|
|
``` |
|
|
|
|
|
|
|
|
|
The makefile I use to generate my site |
|
|
|
|
```make |
|
|
|
|
SRCDIR = src |
|
|
|
|
DESTDIR = dst |
|
|
|
|
DOMAIN = alemauri.eu |
|
|
|
|
|
|
|
|
|
all: |
|
|
|
|
mkdir -p ${DESTDIR} |
|
|
|
|
ssg -o ${DESTDIR} ${SRCDIR} |
|
|
|
|
rivet -o ${DESTDIR} ${SRCDIR} ${DOMAIN} |
|
|
|
|
|
|
|
|
|
test: all |
|
|
|
|
xdg-open ${DESTDIR}/index.html |
|
|
|
|
|
|
|
|
|
install: all |
|
|
|
|
rsync -vmruLz --delete ${DESTDIR}/ www@${URL}:/www/ |
|
|
|
|
rsync -vmruLz --delete ${DESTDIR}/ www@${DOMAIN}:/www/ |
|
|
|
|
|
|
|
|
|
clean: |
|
|
|
|
rm -rf ${DESTDIR} |
|
|
|
|