blob: fefedc9d6550e5f9217a4112fb69dd684716cb34 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
with import <nixpkgs> {};
stdenv.mkDerivation {
name = "node";
buildInputs = [
nodejs
zola
];
shellHook = ''
export PATH="$PWD/node_modules/.bin/:$PATH"
function build {
rm -r content/documentation static/api
cp -rv garage/doc/book content/documentation
cp -rv garage/doc/api static/api
npm install
npx tailwindcss -i ./src/input.css -o ./static/style.css --minify
zola build -u https://garagehq.deuxfleurs.fr
}
'';
}
|