From 85373a73b0f0dbb761c4e127f4945c6004f21a71 Mon Sep 17 00:00:00 2001 From: Danila Fedorin Date: Sun, 1 Jan 2023 21:34:07 +0000 Subject: [PATCH] Adjust builder for the removal of the graph static directory --- build/builder.sh | 4 ++-- flake.lock | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/build/builder.sh b/build/builder.sh index 4d1dada..b27e5c0 100644 --- a/build/builder.sh +++ b/build/builder.sh @@ -6,14 +6,14 @@ export RUBYOPT="-KU -E utf-8:utf-8" # Copy files to a mutable directory. cp -r $src/* . # We'll generate some static files so make static writable -chmod -R u+w . +chmod -R u+w static # Build site with Hugo hugo $hugoFlags --config=config.toml,config-gen.toml # Create generated files # Can't do submodules because nix flake inputs get their .git deleted -ruby ./analyze.rb > static/graph/graph.gen.js # Graph files +mkdir -p static/graph && ruby ./analyze.rb > static/graph/graph.gen.js # Graph files stork build --input public/index.toml --output static/index.st # Search index # Static folder changed, re-run Hugo diff --git a/flake.lock b/flake.lock index 4869898..3152406 100644 --- a/flake.lock +++ b/flake.lock @@ -3,11 +3,11 @@ "blog-source": { "flake": false, "locked": { - "lastModified": 1672443445, - "narHash": "sha256-s7woTyMkyrtudu20bUcbyF5HXFXGa4NdM7H9id4mTVw=", + "lastModified": 1672608070, + "narHash": "sha256-QMGmXhahzrjEyebA48DX9HD2z1ipvym8kkKCTLQOT4s=", "ref": "master", - "rev": "0dfb964e99d20a8d630dacc7670e77bcbea8d43c", - "revCount": 610, + "rev": "6bf0b37694e91bb02ed0a12cce9eb11bee64e3d9", + "revCount": 614, "submodules": true, "type": "git", "url": "https://dev.danilafe.com/Web-Projects/blog-static.git"