fix: get this working on alpine linux

This commit is contained in:
Nuno Sempere 2022-03-14 22:33:08 +00:00
parent 72f154a8d6
commit b1e0edffe3
4 changed files with 8 additions and 5 deletions

View File

@ -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

View File

@ -51,7 +51,9 @@ fn link_bar {
echo '</ul>'
}
fn md_handler { $formatter $1 }
fn md_handler {
$formatter $1
}
fn tpl_handler { template $* }

View File

@ -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

View File

@ -1,4 +1,5 @@
<div><a href="http://werc.cat-v.org/">Powered by werc</a></div>
<div>Powered by <a href="http://werc.cat-v.org/">werc</a>,
<a href="https://alpinelinux.org/">Alpine Linux</a> and <a h ref="https://nginx.org/en/"> nginx</a></div>
<div><a href="/_users/login">User Login</a>
<!-- TODO: add duckduckgo site search