diff options
-rw-r--r-- | ripple/website/build.nix | 2 | ||||
-rw-r--r-- | ripple/website/default.nix | 19 |
2 files changed, 7 insertions, 14 deletions
diff --git a/ripple/website/build.nix b/ripple/website/build.nix new file mode 100644 index 0000000..b87c642 --- /dev/null +++ b/ripple/website/build.nix @@ -0,0 +1,2 @@ +let pkgs = import <nixpkgs> {}; +in pkgs.callPackage ./default.nix {} diff --git a/ripple/website/default.nix b/ripple/website/default.nix index f72e5af..3dad32c 100644 --- a/ripple/website/default.nix +++ b/ripple/website/default.nix @@ -1,16 +1,7 @@ -let pkgs = import <nixpkgs> {}; -in pkgs.runCommand "ripple.unfathomable.blue" { - nativeBuildInputs = [ pkgs.lowdown ]; -} '' - mkdir $out - for x in ${./pages}/*.md; do - { - cat <<EOS +{ writeTextDir }: + +writeTextDir "index.html" '' <!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 + <title>Ripple</title> + WIP '' |