Compare commits
2 commits
static-bre
...
main
Author | SHA1 | Date | |
---|---|---|---|
f9dd886974 | |||
9d17b10a24 |
4 changed files with 11 additions and 2 deletions
|
@ -8,6 +8,10 @@
|
|||
# maybe don't do this but its possible to reference _any file_.
|
||||
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
|
||||
sPoNgEbOb = pkgs.buildGoModule {
|
||||
name = "sPoNgEbOb";
|
||||
|
@ -28,5 +32,6 @@
|
|||
(pkgs.mkMarkdollPlugin "plural" ./plugins/plural.sh)
|
||||
((pkgs.mkMarkdollPlugin "tools" ./plugins/tools.py).override { buildInputs = [ pkgs.python3 ]; })
|
||||
(pkgs.mkMarkdollPlugin "sPoNgEbOb" sPoNgEbOb)
|
||||
# if your scripts need other things in path, they're sometimes best put here too.
|
||||
];
|
||||
}
|
|
@ -15,4 +15,6 @@ this is markdoll!
|
|||
|
||||
[img(https://codeberg.org/0x57e11a/markdoll/raw/branch/main/button.png)::
|
||||
alt text goes here (88x31 button that says MADE WITH MARKDOLL)
|
||||
]
|
||||
]
|
||||
|
||||
[img(/static/noe-pat.gif):noe being patted]
|
BIN
examples/quickstart/static/noe-pat.gif
Normal file
BIN
examples/quickstart/static/noe-pat.gif
Normal file
Binary file not shown.
After Width: | Height: | Size: 25 KiB |
|
@ -120,9 +120,11 @@ in pkgs.stdenvNoCC.mkDerivation {
|
|||
render_final $file $outFile $outFile.tmp.render
|
||||
done
|
||||
|
||||
echo ">>> STATIC ASSETS"
|
||||
${pkgs.lib.concatStrings (map (path: "cp -rv ${path} dist/\n") staticAssets)}
|
||||
'';
|
||||
|
||||
installPhase = ''
|
||||
cp -rv dist $out
|
||||
'' + pkgs.lib.concatString (map path: "cp -rv ${path} $out/${path}; " staticAssets);
|
||||
'';
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue