Skip to content

Commit

Permalink
nix: added 'website' command to build website correctly in dev shell
Browse files Browse the repository at this point in the history
  • Loading branch information
AliceOrunitia committed Aug 20, 2024
1 parent 8a84ef8 commit a847ea0
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,13 @@
'';
};
commands = [
{
name = "website";
command = ''
nix build '.?submodules=1#website'
'';
help = "Build the website with submodules included and export to the result folder.";
}
{
name = "build";
# dev dependencies include "hugo-extended", which fails to
Expand Down Expand Up @@ -96,4 +103,4 @@
});
}
);
}
}

0 comments on commit a847ea0

Please sign in to comment.