Add shell.nix and update garage source, include api docs copy
Some checks reported errors
continuous-integration/drone/push Build was killed
Some checks reported errors
continuous-integration/drone/push Build was killed
This commit is contained in:
parent
08d43d3a95
commit
1559433753
4 changed files with 23 additions and 1 deletions
|
@ -10,6 +10,7 @@ steps:
|
|||
commands:
|
||||
- git submodule update --init --recursive
|
||||
- cp -rv garage/doc/book content/documentation
|
||||
- cp -rv garage/doc/api static/api
|
||||
|
||||
- name: build-css
|
||||
image: node
|
||||
|
|
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -2,3 +2,4 @@ node_modules
|
|||
public
|
||||
content/documentation
|
||||
static/style.css
|
||||
static/api
|
||||
|
|
2
garage
2
garage
|
@ -1 +1 @@
|
|||
Subproject commit b17d59cfabbe92c509f4888cae83f6053a8cab1e
|
||||
Subproject commit bcc97724707aaa39fd64490cdd81aa5073285f33
|
20
shell.nix
Normal file
20
shell.nix
Normal file
|
@ -0,0 +1,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
|
||||
}
|
||||
'';
|
||||
}
|
Loading…
Reference in a new issue