From b1e0edffe323980c8816f8a3bd275cad3954e70e Mon Sep 17 00:00:00 2001 From: Nuno Sempere Date: Mon, 14 Mar 2022 22:33:08 +0000 Subject: [PATCH] fix: get this working on alpine linux --- bin/contrib/discount.rc | 4 ++-- bin/corehandlers.rc | 4 +++- etc/initrc | 2 +- lib/footer.inc | 3 ++- 4 files changed, 8 insertions(+), 5 deletions(-) diff --git a/bin/contrib/discount.rc b/bin/contrib/discount.rc index 87af260..f8fb702 100755 --- a/bin/contrib/discount.rc +++ b/bin/contrib/discount.rc @@ -1,4 +1,4 @@ -#!/usr/bin/rc +#!/bin/rc # requires discount markdown: https://www.pell.portland.or.us/~orc/Code/discount/ -markdown -f fencedcode -f ext $1 +/usr/bin/markdown -f fencedcode -f ext $1 diff --git a/bin/corehandlers.rc b/bin/corehandlers.rc index 294b1a7..71fd0ec 100755 --- a/bin/corehandlers.rc +++ b/bin/corehandlers.rc @@ -51,7 +51,9 @@ fn link_bar { echo '' } -fn md_handler { $formatter $1 } +fn md_handler { + $formatter $1 +} fn tpl_handler { template $* } diff --git a/etc/initrc b/etc/initrc index f38f09a..3c60a40 100755 --- a/etc/initrc +++ b/etc/initrc @@ -26,7 +26,7 @@ path=($plan9port/bin . ./bin ./bin/contrib /bin /usr/bin) # formatter, but all major functionality should should be formatter agnostic. #formatter=(fltr_cache markdown.pl) formatter=(fltr_cache md2html.awk) # no perl for old men -# formatter=(fltr_cache discount.rc) # use C for ze modern comforts. Requires https://www.pell.portland.or.us/~orc/Code/discount/ +# formatter=(fltr_cache discount.rc) # use C for ze modern comforts. Requires https://www.pell.portland.or.us/~orc/Code/discount/ # also, check that the #!/bin/rc at the top corresponds to the correct path for rc before using this. # Enable debugging, to disable set to () debug=true diff --git a/lib/footer.inc b/lib/footer.inc index 1eac7d8..07ecd3e 100755 --- a/lib/footer.inc +++ b/lib/footer.inc @@ -1,4 +1,5 @@ -
Powered by werc
+
Powered by werc, +Alpine Linux and nginx
User Login