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.
|
# Copy files to a mutable directory.
|
||||||
cp -r $src/* .
|
cp -r $src/* .
|
||||||
# We'll generate some static files so make static writable
|
# We'll generate some static files so make static writable
|
||||||
chmod -R u+w .
|
chmod -R u+w static
|
||||||
|
|
||||||
# Build site with Hugo
|
# Build site with Hugo
|
||||||
hugo $hugoFlags --config=config.toml,config-gen.toml
|
hugo $hugoFlags --config=config.toml,config-gen.toml
|
||||||
|
|
||||||
# Create generated files
|
# Create generated files
|
||||||
# Can't do submodules because nix flake inputs get their .git deleted
|
# 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
|
stork build --input public/index.toml --output static/index.st # Search index
|
||||||
|
|
||||||
# Static folder changed, re-run Hugo
|
# Static folder changed, re-run Hugo
|
||||||
|
|
|
@ -3,11 +3,11 @@
|
||||||
"blog-source": {
|
"blog-source": {
|
||||||
"flake": false,
|
"flake": false,
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1672443445,
|
"lastModified": 1672608070,
|
||||||
"narHash": "sha256-s7woTyMkyrtudu20bUcbyF5HXFXGa4NdM7H9id4mTVw=",
|
"narHash": "sha256-QMGmXhahzrjEyebA48DX9HD2z1ipvym8kkKCTLQOT4s=",
|
||||||
"ref": "master",
|
"ref": "master",
|
||||||
"rev": "0dfb964e99d20a8d630dacc7670e77bcbea8d43c",
|
"rev": "6bf0b37694e91bb02ed0a12cce9eb11bee64e3d9",
|
||||||
"revCount": 610,
|
"revCount": 614,
|
||||||
"submodules": true,
|
"submodules": true,
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "https://dev.danilafe.com/Web-Projects/blog-static.git"
|
"url": "https://dev.danilafe.com/Web-Projects/blog-static.git"
|
||||||
|
|
Loading…
Reference in New Issue
Block a user