2021-06-11 08:00:42 +00:00
|
|
|
# meow
|
|
|
|
|
|
|
|
meow
|
2021-06-11 10:09:29 +00:00
|
|
|
|
2021-06-11 22:21:32 +00:00
|
|
|
## ???
|
|
|
|
|
|
|
|
this is a (very early stage) static site generator written in racket
|
|
|
|
|
|
|
|
## why not frog?
|
|
|
|
|
|
|
|
NIH syndrome :3
|
|
|
|
|
2021-06-11 10:23:07 +00:00
|
|
|
## install
|
|
|
|
|
|
|
|
```bash
|
2021-06-11 22:21:32 +00:00
|
|
|
# external dependencies (unfortunately i could not reasonably replace these with racket)
|
2021-06-12 02:55:13 +00:00
|
|
|
(cd ext && cargo build)
|
2021-06-11 22:21:32 +00:00
|
|
|
# install the package
|
2021-06-11 10:23:07 +00:00
|
|
|
raco pkg install $PWD
|
2021-06-11 22:21:32 +00:00
|
|
|
# ensure your PATH has racket stuff on it. replace 8.1 with your version
|
|
|
|
# alternatively, you can use the capybara commands through raco
|
|
|
|
export PATH=$HOME/.racket/8.1/bin:$PATH
|
2021-06-11 10:23:07 +00:00
|
|
|
```
|
|
|
|
|
2021-06-11 10:09:29 +00:00
|
|
|
## getting started
|
|
|
|
|
|
|
|
```bash
|
2021-06-11 22:21:32 +00:00
|
|
|
# create a new project
|
2021-06-11 10:09:29 +00:00
|
|
|
capybara-init my-awesome-website
|
|
|
|
cd my-awesome-website
|
2021-06-11 22:21:32 +00:00
|
|
|
# start serving it (nginx is required right now)
|
|
|
|
nginx -c $PWD/nginx.conf &
|
|
|
|
# view your masterpiece
|
2021-06-11 10:09:29 +00:00
|
|
|
firefox http://localhost:8080
|
|
|
|
```
|