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