better readme, fixed example
This commit is contained in:
parent
c12d89a757
commit
297b3f0c9f
@ -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…
Reference in New Issue
Block a user