about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--.gitignore1
-rwxr-xr-xgen2
-rw-r--r--netlify.toml3
-rwxr-xr-xtools/compile14
4 files changed, 12 insertions, 8 deletions
diff --git a/.gitignore b/.gitignore
index 9c7a479..6e0a249 100644
--- a/.gitignore
+++ b/.gitignore
@@ -8,6 +8,7 @@ wpisy/kronika.html
 
 # testing
 node_modules
+.jekyll-cache
 package-lock.json
 *.in
 
diff --git a/gen b/gen
index 5252b73..af919c7 100755
--- a/gen
+++ b/gen
@@ -3,7 +3,7 @@
 rm -r dest || true
 mkdir dest
 
-export PATH="$PWD/node_modules:$PATH"
+export PATH="$PWD/.jekyll-cache:$PATH"
 
 cat > wpisy/kronika.html << EOF
 <h2>Ostatnie wpisy</h2>
diff --git a/netlify.toml b/netlify.toml
index 136eef7..88b1d50 100644
--- a/netlify.toml
+++ b/netlify.toml
@@ -4,3 +4,6 @@
 
 [[plugins]]
 package = "netlify-plugin-debug-cache"
+
+[[plugins]]
+package = "netlify-plugin-jekyll-cache"
diff --git a/tools/compile b/tools/compile
index a38dd71..baf9fd0 100755
--- a/tools/compile
+++ b/tools/compile
@@ -1,29 +1,29 @@
 #!/bin/sh
 ## Automated script for compiling lowdown
 
-# node_modules is cached by netlify
-mkdir -p node_modules
+# jekyll-cache is cached by netlify plugin
+mkdir -p .jekyll-cache
 
 ## lowdown
-if [ ! -f node_modules/lowdown ]; then
+if [ ! -f .jekyll-cache/lowdown ]; then
   wget https://kristaps.bsd.lv/lowdown/snapshots/lowdown.tar.gz
   tar xf lowdown.tar.gz
   cd lowdown-*
   ./configure
   make
-  cp lowdown ../node_modules
+  cp lowdown ../.jekyll-cache
   cd ..
 fi
 
 
 ## cpio
-if [ ! -d node_modules/cpio_src ]; then
+if [ ! -d .jekyll-cache/cpio_src ]; then
   wget https://ftp.gnu.org/gnu/cpio/cpio-2.13.tar.gz
   tar xf cpio-2.13.tar.gz
   cd cpio-2.13
   ./configure --prefix=$PWD/out
   make
   make install
-  cp -r out ../node_modules/cpio_src
-  ln -s ../node_modules/cpio_src/bin/cpio ../node_modules/cpio
+  cp -r out ../.jekyll-cache/cpio_src
+  ln -s ../.jekyll-cache/cpio_src/bin/cpio ../.jekyll-cache/cpio
 fi