Compare commits

..

No commits in common. "main" and "static-brew" have entirely different histories.

4 changed files with 2 additions and 11 deletions

View file

@ -8,10 +8,6 @@
# maybe don't do this but its possible to reference _any file_. # maybe don't do this but its possible to reference _any file_.
defaultLayout = ./layouts/default.html; defaultLayout = ./layouts/default.html;
# this could technically be a raw path; but nix doesn't keep directory name the same.
# use best judgement.
staticAssets = [ "./static" ];
markdollPlugins = let markdollPlugins = let
sPoNgEbOb = pkgs.buildGoModule { sPoNgEbOb = pkgs.buildGoModule {
name = "sPoNgEbOb"; name = "sPoNgEbOb";
@ -32,6 +28,5 @@
(pkgs.mkMarkdollPlugin "plural" ./plugins/plural.sh) (pkgs.mkMarkdollPlugin "plural" ./plugins/plural.sh)
((pkgs.mkMarkdollPlugin "tools" ./plugins/tools.py).override { buildInputs = [ pkgs.python3 ]; }) ((pkgs.mkMarkdollPlugin "tools" ./plugins/tools.py).override { buildInputs = [ pkgs.python3 ]; })
(pkgs.mkMarkdollPlugin "sPoNgEbOb" sPoNgEbOb) (pkgs.mkMarkdollPlugin "sPoNgEbOb" sPoNgEbOb)
# if your scripts need other things in path, they're sometimes best put here too.
]; ];
} }

View file

@ -15,6 +15,4 @@ this is markdoll!
[img(https://codeberg.org/0x57e11a/markdoll/raw/branch/main/button.png):: [img(https://codeberg.org/0x57e11a/markdoll/raw/branch/main/button.png)::
alt text goes here (88x31 button that says MADE WITH MARKDOLL) alt text goes here (88x31 button that says MADE WITH MARKDOLL)
] ]
[img(/static/noe-pat.gif):noe being patted]

Binary file not shown.

Before

Width:  |  Height:  |  Size: 25 KiB

View file

@ -120,11 +120,9 @@ in pkgs.stdenvNoCC.mkDerivation {
render_final $file $outFile $outFile.tmp.render render_final $file $outFile $outFile.tmp.render
done done
echo ">>> STATIC ASSETS"
${pkgs.lib.concatStrings (map (path: "cp -rv ${path} dist/\n") staticAssets)}
''; '';
installPhase = '' installPhase = ''
cp -rv dist $out cp -rv dist $out
''; '' + pkgs.lib.concatString (map path: "cp -rv ${path} $out/${path}; " staticAssets);
} }