8 lines
238 B
Nix
8 lines
238 B
Nix
# Render a Markdown file to HTML.
|
|
{ depot, pkgs, ... }:
|
|
|
|
with depot.nix.yants;
|
|
|
|
defun [ path drv ] (file: pkgs.runCommand "${file}.rendered.html" { } ''
|
|
cat ${file} | ${depot.tools.cheddar}/bin/cheddar --about-filter ${file} > $out
|
|
'')
|