Make subsetting into a toggle.

Signed-off-by: Danila Fedorin <danila.fedorin@gmail.com>
This commit is contained in:
2026-01-03 23:33:22 +00:00
parent 2cc6cadb8c
commit ff8fe17cde
2 changed files with 7 additions and 2 deletions

View File

@@ -40,8 +40,11 @@ htmlfiles=$(find $gendir/ -regex "$gendir/.*\.html")
chmod -R u+w $gendir chmod -R u+w $gendir
echo $htmlfiles | xargs ${gems}/bin/bundle exec ${ruby}/bin/ruby ./convert.rb --katex-js-file static/katex/katex.min.js echo $htmlfiles | xargs ${gems}/bin/bundle exec ${ruby}/bin/ruby ./convert.rb --katex-js-file static/katex/katex.min.js
echo $htmlfiles | xargs ${gems}/bin/bundle exec ${ruby}/bin/ruby ./agda.rb echo $htmlfiles | xargs ${gems}/bin/bundle exec ${ruby}/bin/ruby ./agda.rb
echo $htmlfiles | xargs ${gems}/bin/bundle exec ${ruby}/bin/ruby ./chatgpt-subset-feather-icon.rb $gendir/feather-sprite.svg
echo $htmlfiles | xargs python3 chatgpt-subset-one-go.py $gendir/fonts if [ "$subset" = "true" ]; then
echo $htmlfiles | xargs ${gems}/bin/bundle exec ${ruby}/bin/ruby ./chatgpt-subset-feather-icon.rb $gendir/feather-sprite.svg
echo $htmlfiles | xargs python3 chatgpt-subset-one-go.py $gendir/fonts
fi
# Output result # Output result
mkdir $out mkdir $out

View File

@@ -61,6 +61,7 @@ let
buildInputs = [ buildInputs = [
hugo ruby stork agdaEnv pythonEnv hugo ruby stork agdaEnv pythonEnv
]; ];
subset = lib.boolToString settings.subset;
}; };
in in
{ {
@@ -68,6 +69,7 @@ in
inherit (settings) host; inherit (settings) host;
ssl = settings.ssl or false; ssl = settings.ssl or false;
drafts = settings.drafts or false; drafts = settings.drafts or false;
subset = settings.subset or true;
src = blog-source; src = blog-source;
path = "."; path = ".";
}; };