Compare commits

...

3 Commits

4 changed files with 5 additions and 3 deletions

1
blog/change_blog_nix.sh Executable file
View File

@ -0,0 +1 @@
sed -i "s/rev = \".*\"/rev = \"$1\"/" "s/sha256 = \".*\"/sha256 = \"$2\"/" default.nix

View File

@ -32,5 +32,5 @@ files.each do |file|
document.search('//*[not(ancestor-or-self::code)]/text()').each do |t|
t.replace(perform_katex_sub(inline_cache, display_cache, t.content))
end
File.write(file, document.to_html(encoding: 'US-ASCII'))
File.write(file, document.to_html(encoding: 'UTF-8'))
end

View File

@ -28,8 +28,8 @@ let
(ruby.withPackages (ps: [ ps.nokogiri ]))
];
};
rev = "565d4a695541de1d2c760270adf082e36809c464";
sha256 = "0sv23falf3dciapclhl25yf22qi6c26in9zqcl3dvad2v2j7bzbc";
rev = "3bac151b0836848a83f9fbc646133160515142f8";
sha256 = "0kzmpbjsr4y6pkinx22fq3l9zqcvidns1hw38b0k25nz9xwysnjq";
localizationRev = "0b5748cc5a19b5d1d78bfcfa58d4027cc10524dd";
localizationSha256 = "12pqh534z3ppvgzy0a77s9j1qzzmiyxwvlmh5y76pccf32wvi9wz";
in

1
blog/update_blog.sh Executable file
View File

@ -0,0 +1 @@
nix-prefetch-git --rev refs/heads/master https://dev.danilafe.com/Web-Projects/blog-static.git --quiet | jq '.rev,.sha256' | xargs ./change_blog_nix.sh