aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlex Auvolat <alex@adnab.me>2022-11-16 12:06:57 +0100
committerAlex Auvolat <alex@adnab.me>2022-11-16 12:06:57 +0100
commit1559433753adedd2de5695c0892a6e1df25cf304 (patch)
tree55d092efd0a3acb9253f09788178f8351a5adfcd
parent08d43d3a9553dffc7f7ea916ef3890b7208c5aec (diff)
downloadgaragehq.deuxfleurs.fr-1559433753adedd2de5695c0892a6e1df25cf304.tar.gz
garagehq.deuxfleurs.fr-1559433753adedd2de5695c0892a6e1df25cf304.zip
Add shell.nix and update garage source, include api docs copy
-rw-r--r--.drone.yml1
-rw-r--r--.gitignore1
m---------garage0
-rw-r--r--shell.nix20
4 files changed, 22 insertions, 0 deletions
diff --git a/.drone.yml b/.drone.yml
index ea82d34..1208649 100644
--- a/.drone.yml
+++ b/.drone.yml
@@ -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
diff --git a/.gitignore b/.gitignore
index 5819798..9710104 100644
--- a/.gitignore
+++ b/.gitignore
@@ -2,3 +2,4 @@ node_modules
public
content/documentation
static/style.css
+static/api
diff --git a/garage b/garage
-Subproject b17d59cfabbe92c509f4888cae83f6053a8cab1
+Subproject bcc97724707aaa39fd64490cdd81aa5073285f3
diff --git a/shell.nix b/shell.nix
new file mode 100644
index 0000000..fefedc9
--- /dev/null
+++ b/shell.nix
@@ -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
+ }
+ '';
+}