https://github.com/evincarofautumn/kittenlang.org
http://kittenlang.org/
https://github.com/evincarofautumn/kittenlang.org
Last synced: 6 months ago
JSON representation
http://kittenlang.org/
- Host: GitHub
- URL: https://github.com/evincarofautumn/kittenlang.org
- Owner: evincarofautumn
- License: other
- Created: 2013-07-13T20:11:11.000Z (about 12 years ago)
- Default Branch: master
- Last Pushed: 2023-09-16T20:28:53.000Z (about 2 years ago)
- Last Synced: 2025-02-12T09:33:28.393Z (8 months ago)
- Language: CSS
- Size: 69.3 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 6
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# kittenlang.org
This is the source of [kittenlang.org][kittenlang], the official site of the
[Kitten][kitten] programming language. It’s implemented as a primitive “static
site generator” written in Kitten, consisting of functions which simply print
HTML.To build the site, you need to have a build of the Kitten compiler. Make sure
the common vocab `common.ktn` is installed in the same directory as the `kitten`
executable. By default, the `Makefile` will use whatever `kitten` executable is
found in your `PATH`; you can override this by setting the `KITTEN` variable
when invoking `make`.```
make KITTEN=path/to/kitten
```This target can also be invoked as `make default`. To delete the generated HTML,
run `make clean`. I use the `make deploy` target to upload the HTML to the
server over SFTP—however, you will not be able to run deployments yourself
without a server login.To add a page:
* Create a directory for it
* Create a Kitten source file in that directory named `index.ktn`
* Add the directory name to `TARGETS` in the `Makefile`
Common website-related functions such as `page_template` should go in
`Kittenlang.ktn`. If you want to add a *general-purpose* utility function,
consider submitting a pull request to the [common vocab][common] instead.[common]: https://github.com/evincarofautumn/kitten/blob/master/common.ktn
[kitten]: https://github.com/evincarofautumn/kitten
[kittenlang]: http://kittenlang.org/