We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6aedf56 commit 059b6aaCopy full SHA for 059b6aa
1 file changed
modules/documentation.nix
@@ -42,9 +42,9 @@ in
42
program = pkgs.writeShellScriptBin "mkdocs-watch" ''
43
set -euo pipefail
44
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}"
+ if test -f "${cfg.mkdocs-root}/mkdocs.yml"; then
+ echo "Your documentation is in ${cfg.mkdocs-root}. Switching into that folder."
+ cd "${cfg.mkdocs-root}"
48
else
49
echo "Can't find mkdocs.yml. Is your flake's `documentation.mkdocs-root` set correctly?"
50
fi
0 commit comments