From 6abfd8785805f670b786152058596c4823c4da91 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rg=20Thalheim?= Date: Tue, 13 May 2025 12:24:20 +0200 Subject: [PATCH] docs/devshell: make sure we are in the right directory before symlinking files --- docs/nix/shell.nix | 3 +++ 1 file changed, 3 insertions(+) diff --git a/docs/nix/shell.nix b/docs/nix/shell.nix index 0a4f2ed9b..180d53b08 100644 --- a/docs/nix/shell.nix +++ b/docs/nix/shell.nix @@ -17,6 +17,9 @@ pkgs.mkShell { self'.devShells.default ]; shellHook = '' + git_root=$(git rev-parse --show-toplevel) + cd ''${git_root}/docs + mkdir -p ./site/reference/cli cp -af ${module-docs}/* ./site/reference/ cp -af ${clan-cli-docs}/* ./site/reference/cli/