Skip to content

build(docs): make check:docs PowerShell-compatible#596

Open
BingqingLyu wants to merge 1 commit intomainfrom
fork-pr-44824-fix-44293-powershell-check-docs
Open

build(docs): make check:docs PowerShell-compatible#596
BingqingLyu wants to merge 1 commit intomainfrom
fork-pr-44824-fix-44293-powershell-check-docs

Conversation

@BingqingLyu
Copy link
Copy Markdown
Owner

@BingqingLyu BingqingLyu commented Apr 27, 2026

Summary

Fixes openclaw#44293.

pnpm check:docs previously depended on xargs, which is unavailable in native Windows PowerShell by default.

This PR replaces the shell pipeline with a cross-platform Node script that:

  • collects tracked docs files via git ls-files -z
  • invokes oxfmt directly without xargs
  • chunks file arguments to avoid Windows command-line length issues

Changes

  • add scripts/format-docs.mjs
  • update package scripts:
    • format:docs -> node scripts/format-docs.mjs --write
    • format:docs:check -> node scripts/format-docs.mjs --check

Validation

  • node --check scripts/format-docs.mjs

Note: full pnpm check:docs execution requires project dependencies (including oxfmt) to be installed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Make pnpm check:docs work in native PowerShell

2 participants