docs/devshell: make sure we are in the right directory before symlinking files

This commit is contained in:
Jörg Thalheim
2025-05-13 12:24:20 +02:00
parent ebe5aedec1
commit 6abfd87858

View File

@@ -17,6 +17,9 @@ pkgs.mkShell {
self'.devShells.default self'.devShells.default
]; ];
shellHook = '' shellHook = ''
git_root=$(git rev-parse --show-toplevel)
cd ''${git_root}/docs
mkdir -p ./site/reference/cli mkdir -p ./site/reference/cli
cp -af ${module-docs}/* ./site/reference/ cp -af ${module-docs}/* ./site/reference/
cp -af ${clan-cli-docs}/* ./site/reference/cli/ cp -af ${clan-cli-docs}/* ./site/reference/cli/