diff --git a/Makefile b/Makefile index 1a9f339..2afe7b5 100644 --- a/Makefile +++ b/Makefile @@ -5,12 +5,15 @@ endif .PHONY: \ all \ - test + test \ + docs \ + readme all: bin/pomo clean: rm -v bin/* 2> /dev/null || true + rm -v docs/* 2> /dev/null || true bindata.go: go-bindata -pkg main -o $@ tomato-icon.png @@ -22,5 +25,8 @@ bin/pomo: bindata.go @echo mkdir bin 2>/dev/null || true go build -ldflags "-X main.Version=$(VERSION)" -o bin/pomo -www/data/readme.json: +docs: www/data/readme.json + cd www && hugo -d ../docs + +readme: cat README.md | python -c 'import json,sys; print(json.dumps({"content": sys.stdin.read()}))' > $@ diff --git a/docs/404.html b/docs/404.html new file mode 100644 index 0000000..240688d --- /dev/null +++ b/docs/404.html @@ -0,0 +1,127 @@ + + +
+ + + +pomo
is a simple CLI implementation of the Pomodoro Technique. It was written for use on a Linux desktop but can easily be ported over to other platforms.
+
+The Pomodoro Technique is simple and effective time management technique:
+ +Check out the releases section for the latest binrary.
+ + go get github.com/kevinschoon/pomo
+ cd $GOPATH/github.com/kevinschoon/pomo
+ make
+ ./bin/pomo
+
+
+# Initialize the SQLite database and state directory
+pomo init
+# Start a new task
+# Add a tag "dev", allocate 2 pomodoros for 1 minute each
+pomo start -t dev -p 2 -d 1m "Write Some Codes"
+...
+# List previous tasks
+# pomo list
+...
+
+
+pomo
depends on the libnotify client package, a notification server (installed with most Linux desktop environments), and SQLite.