h3 docs is broken on Windows, and on any install path containing a space.
bin/h3.mjs:19 builds the docs directory with URL.pathname, which is a URL component rather than a filesystem path. It keeps the slash before the drive letter, percent-encodes the rest, and is then interpolated unquoted.
Windows, node 24.18.0, v2.0.1-rc.27:
$ node bin/h3.mjs docs
Error: ENOENT: no such file or directory, scandir 'C:\C:\...\dist\docs'
Error: Command failed: bun x mdzilla /C:/.../dist/docs
Every other file URL in this repo already uses fileURLToPath. Switching to it plus quoting fixes both halves, and I have that working locally with a regression test that copies the CLI into a directory with a space in the name.
Happy to open a PR if you want it. Checking first per your note on #1507: the analysis was agent-assisted, and I ran the repro, the fix and the suite on this machine.
h3 docsis broken on Windows, and on any install path containing a space.bin/h3.mjs:19builds the docs directory withURL.pathname, which is a URL component rather than a filesystem path. It keeps the slash before the drive letter, percent-encodes the rest, and is then interpolated unquoted.Windows, node 24.18.0, v2.0.1-rc.27:
Every other file URL in this repo already uses
fileURLToPath. Switching to it plus quoting fixes both halves, and I have that working locally with a regression test that copies the CLI into a directory with a space in the name.Happy to open a PR if you want it. Checking first per your note on #1507: the analysis was agent-assisted, and I ran the repro, the fix and the suite on this machine.