From b5ff379eb327fd45ad9e46a24b5f6dad17f9017f Mon Sep 17 00:00:00 2001 From: s-ol Date: Sun, 28 Oct 2018 01:34:08 +1100 Subject: readme etc --- README.md | 25 +++++++++++++++++++++++++ app/init.moon | 5 ++++- 2 files changed, 29 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 3b75144..abd704c 100644 --- a/README.md +++ b/README.md @@ -2,4 +2,29 @@ mmm === mmm is not the www, because it runs on [MoonScript][moonscript]. +live version at [mmm.s-ol.nu][mmm]. + +Building & Viewing +------------------ +mmm is built using [tup][tup]. +You can build the static content with: + + $ tup init + $ tup + +Then, run some kind of HTTP server from within `dist`, e.g. with python 3 installed: + + $ cd dist + $ python -m http.server + +You can then view the website in your browser. +The example above will provide it at `http://localhost:8000`. + +During development you may want to automatically rebuild the project as files are changed. +You can do this with the following command: + + $ tup monitor -f -a + [moonscript]: https://moonscript.org/ +[mmm]: https://mmm.s-ol.nu/ +[tup]: https://gittup.org/tup diff --git a/app/init.moon b/app/init.moon index 684c30a..e0eecf6 100644 --- a/app/init.moon +++ b/app/init.moon @@ -70,7 +70,10 @@ table.insert routes, { -- menu append h1 { - style: { position: 'relative' }, + style: { + position: 'relative', + 'border-bottom': '1px solid #000' + }, 'mmm', a { style: { -- cgit v1.2.3