Skip to content

tools: fix man-page generation on Windows - #64886

Open
Cherry wants to merge 1 commit into
nodejs:mainfrom
Cherry:doc-kit-windows-man-page
Open

tools: fix man-page generation on Windows#64886
Cherry wants to merge 1 commit into
nodejs:mainfrom
Cherry:doc-kit-windows-man-page

Conversation

@Cherry

@Cherry Cherry commented Jul 31, 2026

Copy link
Copy Markdown

I hit this while working on #64606, which changes doc/api/cli.md and so needs doc/node.1 regenerated. I couldn't regenerate it natively on Windows at all - I had to run the generator from WSL to get an up-to-date man page committed.

Two separate path assumptions in tools/doc/man-page.doc-kit.config.mjs:

  • changelog/index were native paths. doc-kit only reads a value from disk when it parses as a file: URL, and E: parses as a URL scheme (which is from where I tried to run this on Windows), so it tried to fetch them over the network and died with TypeError: fetch failed. Now passed as file: URLs.
  • input is a glob pattern, where \ is an escape character, so the native path matched no files. The run then spun indefinitely with no log output, which is why this wasn't obvious. Now uses POSIX separators.

Signed-off-by: James Ross <james@jross.me>
@nodejs-github-bot

Copy link
Copy Markdown
Collaborator

Review requested:

  • @nodejs/web-infra

@nodejs-github-bot nodejs-github-bot added doc Issues and PRs related to the documentations. tools Issues and PRs related to the tools directory. labels Jul 31, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

doc Issues and PRs related to the documentations. tools Issues and PRs related to the tools directory.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants