better readme, fixed example

pull/1/head
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 ## Examples
Generate site from directory to `cool_site` Generate site from directory to `cool_site`
```sh ```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 The makefile I use to generate my site
```make ```make
SRCDIR = src SRCDIR = src
DESTDIR = dst DESTDIR = dst
DOMAIN = alemauri.eu
all: all:
mkdir -p ${DESTDIR} rivet -o ${DESTDIR} ${SRCDIR} ${DOMAIN}
ssg -o ${DESTDIR} ${SRCDIR}
test: all test: all
xdg-open ${DESTDIR}/index.html xdg-open ${DESTDIR}/index.html
install: all install: all
rsync -vmruLz --delete ${DESTDIR}/ www@${URL}:/www/ rsync -vmruLz --delete ${DESTDIR}/ www@${DOMAIN}:/www/
clean: clean:
rm -rf ${DESTDIR} rm -rf ${DESTDIR}

Loading…
Cancel
Save