feat: add index.html to send people to
Deploy Website / build-and-deploy (push) Failing after 6m19s

This commit is contained in:
Andrew Rioux
2026-05-30 22:32:02 -04:00
parent a346f06d49
commit 47226ecad4
6 changed files with 367 additions and 3 deletions
+10 -2
View File
@@ -6,17 +6,25 @@ let
text = builtins.readFile ./build/build-article.sh;
};
build-index = pkgs.writeShellApplication {
name = "build-index";
text = builtins.readFile ./build/build-index.sh;
};
articles = pkgs.stdenv.mkDerivation {
name = "articles";
src = builtins.filterSource
(path: type: !(pkgs.lib.strings.hasPrefix "result" (baseNameOf path)))
./.;
buildInputs = with pkgs; [ emacs git build-article ];
buildInputs = with pkgs; [ emacs git build-article build-index ];
buildPhase = ''
cp -a . $out
cd $out
find . -name '*.org' -exec build-article {} \;
mv index.html index.html.in
find . -name 'articles/*.org' -exec build-article {} \;
build-index > index.html
'';
};
in { inherit build-article articles; }