Adjust builder for the removal of the graph static directory

This commit is contained in:
2023-01-01 21:34:07 +00:00
parent e7615c4947
commit 85373a73b0
2 changed files with 6 additions and 6 deletions

View File

@@ -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