2024-04-16 17:06:45 +00:00
|
|
|
{
|
|
|
|
docs,
|
|
|
|
pkgs,
|
|
|
|
module-docs,
|
2024-05-07 11:23:03 +00:00
|
|
|
clan-cli-docs,
|
2024-05-24 14:54:51 +00:00
|
|
|
asciinema-player-js,
|
|
|
|
asciinema-player-css,
|
2024-04-16 17:06:45 +00:00
|
|
|
...
|
|
|
|
}:
|
|
|
|
pkgs.mkShell {
|
|
|
|
inputsFrom = [ docs ];
|
|
|
|
shellHook = ''
|
2024-05-07 11:23:03 +00:00
|
|
|
mkdir -p ./site/reference/cli
|
2024-04-16 17:06:45 +00:00
|
|
|
cp -af ${module-docs}/* ./site/reference/
|
2024-05-07 11:23:03 +00:00
|
|
|
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/' "
|
2024-05-24 14:54:51 +00:00
|
|
|
|
|
|
|
mkdir -p ./site/static/asciinema-player
|
|
|
|
ln -snf ${asciinema-player-js} ./site/static/asciinema-player/asciinema-player.min.js
|
|
|
|
ln -snf ${asciinema-player-css} ./site/static/asciinema-player/asciinema-player.css
|
2024-04-16 17:06:45 +00:00
|
|
|
'';
|
|
|
|
}
|