clan-core/docs/nix/shell.nix

19 lines
352 B
Nix
Raw Normal View History

2024-04-16 17:06:45 +00:00
{
docs,
pkgs,
module-docs,
clan-cli-docs,
2024-04-16 17:06:45 +00:00
...
}:
pkgs.mkShell {
inputsFrom = [ docs ];
shellHook = ''
mkdir -p ./site/reference/cli
2024-04-16 17:06:45 +00:00
cp -af ${module-docs}/* ./site/reference/
cp -af ${clan-cli-docs}/* ./site/reference/cli/
2024-04-16 17:06:45 +00:00
chmod +w ./site/reference/*
echo "Generated API documentation in './site/reference/' "
'';
}