Make subsetting into a toggle.
Signed-off-by: Danila Fedorin <danila.fedorin@gmail.com>
This commit is contained in:
@@ -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
|
||||||
|
|||||||
2
lib.nix
2
lib.nix
@@ -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 = ".";
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user