blob: f72e5af01a8f7b0c5c28c605c01baad22171695f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
let pkgs = import <nixpkgs> {};
in pkgs.runCommand "ripple.unfathomable.blue" {
nativeBuildInputs = [ pkgs.lowdown ];
} ''
mkdir $out
for x in ${./pages}/*.md; do
{
cat <<EOS
<!DOCTYPE html>
<title>$(lowdown -X title $x)</title>
<style>body { max-width: 72ch; margin: auto; }</style>
EOS
lowdown --html-no-head-ids $x
} >$out/$(basename $x .md).html
done
''
|