From 9343e8322070a9b39c1155d318d71cec21f02efe Mon Sep 17 00:00:00 2001 From: nathaniel smith Date: Sat, 23 Sep 2017 01:31:26 -0700 Subject: [PATCH] update readme --- README.org | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/README.org b/README.org index 240394c..a9ba0d5 100644 --- a/README.org +++ b/README.org @@ -10,6 +10,30 @@ as few features as possible. For now, check out the [[https://github.com/tildetown/tilde-wiki/blob/master/rfc.org][rfc]]. +* using this tool + +this tool is super specific to tilde.town, but more or less adaptable to similar +environments. if there are things you think should change to make this more +useful elsewhere, PRs and issues are welcome. + +** prequisites + + - a git repo with a top level path ~src/articles~ + - the files ~src/{footer.md,header.md}~ which contain whatever header and footer content you'd like + - everything in ~src/articles~ to be either a markdown (~.md~), html (~.html~), or plain text (~.txt~) file + - write privileges for anyone who clones the repo + - a ~post-receive~ hook with something like the following: + #+BEGIN_SRC bash + #!/bin/bash + umask 002 + unset GIT_DIR + + cd /wiki + git reset --hard HEAD + git log -1 > git-last-log.txt + #+END_SRC + (you will want to replace ~/wiki~ with whatever the path to your wiki repo is) + * author [[https://tilde.town/~vilmibm][~vilmibm]]