Adjust builder for the removal of the graph static directory
This commit is contained in:
parent
e7615c4947
commit
85373a73b0
|
@ -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
|
||||
|
|
|
@ -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"
|
||||
|
|
Loading…
Reference in New Issue
Block a user