Skip to content

Commit 059b6aa

Browse files
committed
fix path
1 parent 6aedf56 commit 059b6aa

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

modules/documentation.nix

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,9 +42,9 @@ in
4242
program = pkgs.writeShellScriptBin "mkdocs-watch" ''
4343
set -euo pipefail
4444
if ! test -f mkdocs.yml; then
45-
if test -f "${docsRoot}/mkdocs.yml"; then
46-
echo "Your documentation is in ${docsRoot}. Switching into that folder."
47-
cd "${docsRoot}"
45+
if test -f "${cfg.mkdocs-root}/mkdocs.yml"; then
46+
echo "Your documentation is in ${cfg.mkdocs-root}. Switching into that folder."
47+
cd "${cfg.mkdocs-root}"
4848
else
4949
echo "Can't find mkdocs.yml. Is your flake's `documentation.mkdocs-root` set correctly?"
5050
fi

0 commit comments

Comments
 (0)