better readme, fixed example

typo
Alessandro Mauri 4 years ago
parent c12d89a757
commit 297b3f0c9f
  1. 8
      README.md

@ -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}

Loading…
Cancel
Save