I tested the docs local preview workflow on Windows PowerShell from a clean upstream worktree.
Screenshot 1 shows the clean test setup. I created a separate worktree from origin/master, entered it, and confirmed git status showed nothing to commit, working tree clean.
Screenshot 2 shows the first failure. Running the documented command:
fails in PowerShell because grep is not recognized. The command then continues with an empty RELEASE value and fails at Makefile:206.
Screenshot 3 shows the Hugo version I used for the direct test:
hugo v0.92.1 ... extended windows/amd64
Screenshot 4 shows the second failure. After setting the release manually and running Hugo directly:
$env:RELEASE = "v0.55.0"
& "$env:TEMP\hugo-0.92.1\hugo.exe" server --source=docs
the docs site starts building, but fails with:
can't evaluate field IsServer in type interface {}
Screenshot 5 shows the worktree was still clean after testing, so this does not appear to be caused by local docs changes.
Expected behavior should be The documented local docs preview workflow should work on Windows, or the docs should explain the supported Windows workflow and required tools. My Envirnment is Windows PowerShell with hugo v0.92.1 extended windows/amd64.
I tested the docs local preview workflow on Windows PowerShell from a clean upstream worktree.
Screenshot 1 shows the clean test setup. I created a separate worktree from
origin/master, entered it, and confirmedgit statusshowednothing to commit, working tree clean.Screenshot 2 shows the first failure. Running the documented command:
make run/sitefails in PowerShell because
grepis not recognized. The command then continues with an emptyRELEASEvalue and fails atMakefile:206.Screenshot 3 shows the Hugo version I used for the direct test:
Screenshot 4 shows the second failure. After setting the release manually and running Hugo directly:
the docs site starts building, but fails with:
Screenshot 5 shows the worktree was still clean after testing, so this does not appear to be caused by local docs changes.
Expected behavior should be The documented local docs preview workflow should work on Windows, or the docs should explain the supported Windows workflow and required tools. My Envirnment is Windows PowerShell with
hugo v0.92.1 extended windows/amd64.