Skip to content

docs: remove prompt markers from Windows setup commands#3909

Merged
cv merged 4 commits into
mainfrom
fix/3847_windows-copy-command-prefix-dco
May 27, 2026
Merged

docs: remove prompt markers from Windows setup commands#3909
cv merged 4 commits into
mainfrom
fix/3847_windows-copy-command-prefix-dco

Conversation

@chengjiew

@chengjiew chengjiew commented May 20, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Replace copyable Windows preparation commands with powershell and bash fences that omit leading $ prompt markers.
  • Update docs contributor guidance, CodeRabbit rules, and markdownlint comments so copyable command examples no longer require prompt prefixes.
  • Regenerate the affected nemoclaw-user-get-started Windows preparation skill reference and add a regression test for the Windows page/style guidance.

Fixes #3847.

Verification

  • npm test -- test/windows-preparation-doc-copy.test.ts
  • python3 scripts/docs-to-skills.py docs/ .agents/skills/ --prefix nemoclaw-user --doc-platform fern-mdx --dry-run
  • npx prek run check-yaml --files .coderabbit.yaml .markdownlint-cli2.yaml
  • npx prek run markdownlint-cli2 --files docs/get-started/windows-preparation.mdx docs/CONTRIBUTING.md .agents/skills/nemoclaw-user-get-started/references/windows-preparation.md .agents/skills/nemoclaw-contributor-update-docs/SKILL.md
  • npm run checks
  • git diff --check
  • npm run docs (0 errors, 2 warnings reported by Fern without warning details)

Note: the normal pre-commit hook was stopped after the broad CLI coverage command hung in Vitest for over two minutes; the commit was created with --no-verify after the focused checks above passed.

Signed-off-by: Chengjie Wang chengjiew@nvidia.com

Summary by CodeRabbit

  • Documentation

    • Standardized command examples to use language-specific fenced code blocks (bash/powershell) for copyable commands and reserve console blocks for interactive transcripts; updated Windows setup and contributor guides to remove prompt-prefixed snippets.
  • Tests

    • Added tests to verify documentation uses language-tagged code fences and contains no prompt-prefixed copyable commands.
  • Chores

    • Updated documentation review/linting rules to enforce the new code-block conventions.

Review Change Stack

Signed-off-by: Chengjie Wang <chengjiew@nvidia.com>
@copy-pr-bot

copy-pr-bot Bot commented May 20, 2026

Copy link
Copy Markdown

This pull request requires additional validation before any workflows can run on NVIDIA's runners.

Pull request vetters can view their responsibilities here.

Contributors can view more details about this message here.

@coderabbitai

coderabbitai Bot commented May 20, 2026

Copy link
Copy Markdown
Contributor

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Enterprise

Run ID: 0d35dae5-131d-443c-8368-72645c70cdfe

📥 Commits

Reviewing files that changed from the base of the PR and between 58a1bf4 and 07198a4.

📒 Files selected for processing (2)
  • .agents/skills/nemoclaw-user-get-started/references/windows-preparation.md
  • .coderabbit.yaml
🚧 Files skipped from review as they are similar to previous changes (1)
  • .coderabbit.yaml

📝 Walkthrough

Walkthrough

Standardizes copyable CLI examples to use language-specific fenced blocks (powershell, bash, sh) without $ prompts, reserves console for transcripts, updates docs and review tooling, and adds tests that assert no $ -prefixed copyable lines remain.

Changes

Documentation style and Windows docs

Layer / File(s) Summary
Style guide & review tooling
docs/CONTRIBUTING.md, .coderabbit.yaml, .markdownlint-cli2.yaml, .agents/skills/nemoclaw-contributor-update-docs/SKILL.md
Require language-specific copyable command fences without $ prompt markers; add clarifying markdownlint comment and update contributor skill guidance.
Windows/get-started docs refactor
docs/get-started/windows-preparation.mdx, .agents/skills/nemoclaw-user-get-started/references/windows-preparation.md
Replace console transcript blocks and $-prefixed inline snippets with language-tagged fenced code blocks (powershell / bash) for bootstrap, installers, WSL steps, verification, Docker-in-WSL, and optional Ollama commands.
Validation tests
test/windows-preparation-doc-copy.test.ts
Add Vitest tests that parse fenced code blocks, assert no copyable lines begin with $ , verify presence of powershell and bash fences, and assert style sources no longer reference legacy console+$ guidance.

Estimated code review effort

🎯 3 (Moderate) | ⏱️ ~20 minutes

Suggested reviewers

  • ericksoa
  • cv

Poem

🐰 I hopped through docs, removed each $,
Swapped console where transcripts should stay.
Now powershell and bash are clear and neat,
Copy-paste works — no broken cheat.
A tiny hop, but a smoother play.

🚥 Pre-merge checks | ✅ 4 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Docstring Coverage ⚠️ Warning Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Write docstrings for the functions missing them to satisfy the coverage threshold.
✅ Passed checks (4 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The PR title 'docs: remove prompt markers from Windows setup commands' accurately reflects the main objective of replacing copyable Windows preparation commands with fenced code blocks that omit leading $ prompt markers.
Linked Issues check ✅ Passed The PR comprehensively addresses all primary coding objectives from issue #3847: replacing console blocks with language-specific fences, removing prompt markers from copyable commands, reserving console for transcripts, updating style guidance in docs/CONTRIBUTING.md and .coderabbit.yaml, updating markdownlint config, and regenerating affected skills.
Out of Scope Changes check ✅ Passed All changes are directly aligned with issue #3847 objectives: documentation updates (Windows prep, CONTRIBUTING.md), style/review automation config (.coderabbit.yaml, .markdownlint-cli2.yaml), and regression testing—no unrelated changes detected.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch fix/3847_windows-copy-command-prefix-dco

Comment @coderabbitai help to get the list of available commands and usage tips.

@github-actions

Copy link
Copy Markdown
Contributor

@github-actions

github-actions Bot commented May 20, 2026

Copy link
Copy Markdown
Contributor

PR Review Advisor

Findings: 0 needs attention, 0 worth checking, 0 nice ideas
Since last review: 1 prior item resolved, 0 still apply, 0 new items found

Workflow run details

This is an automated advisory review. A human maintainer must make the final merge decision.

@github-actions

github-actions Bot commented May 20, 2026

Copy link
Copy Markdown
Contributor

E2E Advisor Recommendation

Required E2E: None
Optional E2E: None

Workflow run

Full advisor summary

E2E Recommendation Advisor

Base: origin/main
Head: HEAD
Confidence: high

Required E2E

  • None. No E2E is recommended. This PR is documentation, generated/reference skill copy, review/lint configuration, and a docs-copy unit test only. The diff changes code fence languages and prompt markers in Windows preparation docs and style guidance, but does not alter installer scripts, onboarding logic, sandbox lifecycle, credentials, security boundaries, network policy, inference routing, deployment assets, or real assistant runtime flows. Local docs/unit validation is sufficient.

Optional E2E

  • None.

New E2E recommendations

  • None.

@HanClinto

Copy link
Copy Markdown
Contributor

@chengjiew This looks very good, thank you. Much better

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 1

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In `@test/windows-preparation-doc-copy.test.ts`:
- Around line 70-77: The test currently bans all `console` blocks by asserting
expect(consoleBlocks).toEqual([]); remove that assertion and instead enforce
only that no copyable console blocks include shell prompt markers: keep
expect(promptLines).toEqual([]) and replace the consoleBlocks assertion with a
filtered check that scans blocks (or consoleBlocks) for lines starting with "$ "
or other prompt markers (e.g. ">") and assert that filtered list is empty;
reference the existing variables blocks, consoleBlocks and promptLines to locate
and update the assertion.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Enterprise

Run ID: aa8d07c6-c231-4b56-aa8b-6f29e4d3cc1b

📥 Commits

Reviewing files that changed from the base of the PR and between 25aa446 and d373fad.

📒 Files selected for processing (7)
  • .agents/skills/nemoclaw-contributor-update-docs/SKILL.md
  • .agents/skills/nemoclaw-user-get-started/references/windows-preparation.md
  • .coderabbit.yaml
  • .markdownlint-cli2.yaml
  • docs/CONTRIBUTING.md
  • docs/get-started/windows-preparation.mdx
  • test/windows-preparation-doc-copy.test.ts

Comment thread test/windows-preparation-doc-copy.test.ts Outdated
@wscurran

Copy link
Copy Markdown
Contributor

Signed-off-by: Chengjie Wang <chengjiew@nvidia.com>
@github-actions

github-actions Bot commented May 23, 2026

Copy link
Copy Markdown
Contributor

E2E Scenario Advisor Recommendation

Required scenario E2E: None
Optional scenario E2E: None

Workflow run

Full scenario advisor summary

E2E Scenario Advisor

Base: origin/main
Head: HEAD
Confidence: high

Required scenario E2E

  • None. No scenario workflow, scenario metadata, scenario runtime, or validation-suite files changed.

Optional scenario E2E

  • None.

Relevant changed files

  • None.

@chengjiew chengjiew added the v0.0.50 Release target label May 25, 2026
@cv cv added v0.0.52 Release target v0.0.53 Release target and removed v0.0.50 Release target v0.0.52 Release target labels May 26, 2026
…-command-prefix-dco

# Conflicts:
#	docs/get-started/windows-preparation.mdx

@cv cv left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Requesting a small change based on the PR Review Advisor rubric.

The source docs change is good: copyable command blocks now use powershell/bash and omit prompt markers. The generated user skill reference included in this PR is stale versus the source MDX, though: docs/get-started/windows-preparation.mdx now documents Ubuntu-24.04, while .agents/skills/nemoclaw-user-get-started/references/windows-preparation.md still says plain Ubuntu in the bootstrap/manual WSL sections.

Please either remove the generated user-skill file from this normal docs PR (preferred per repo guidance; generated user skills are refreshed during release prep), or regenerate it fully from the current docs so it matches the Ubuntu-24.04 source content.

@cv cv merged commit d312144 into main May 27, 2026
22 checks passed
@wscurran wscurran added bug-fix PR fixes a bug or regression platform: windows Affects native Windows environments labels Jun 3, 2026
@wscurran wscurran added platform: wsl Affects Windows Subsystem for Linux area: docs Documentation, examples, guides, or docs build and removed Platform: Windows/WSL labels Jun 3, 2026
cv added a commit that referenced this pull request Jun 8, 2026
<!-- markdownlint-disable MD041 -->
## Summary
Updates the documentation standards by removing `$` prefixes from
copy-pasteable console blocks, and also adopting a clear split between
copyable commands and their example expected transcript output. Part of
this PR is a standards change, and part of it is just updating the last
few files that were missed by #3909.

## Related Issue
#4754

## Changes
* Updates `docs/CONTRIBUTING.md` to request a general split between
copyable commands and their expected output.
* Allowance is given for extended transcripts that will want to mix
commands and output, but in general, if it's just a single command
followed by a single section of expected output, the documentation
expectation is that it label the command clearly with a `console`,
`powershell`, or `bash` label, while the expected output receives a
`json` or `text` label (according to its contents).
* Updates to various .mdx files to be in line with the above, along with
the `$` prefix removal from #3847

## Type of Change

- [ ] Code change (feature, bug fix, or refactor)
- [ ] Code change with doc updates
- [x] Doc only (prose changes, no code sample modifications)
- [ ] Doc only (includes code sample changes)

## Verification
<!-- Check each item you ran and confirmed. Leave unchecked items you
skipped. Doc-only changes do not require npm test unless you ran it. -->
- [ ] `npx prek run --all-files` passes (skipped for now, as this
doesn't seem to like Windows as a host)
- [ ] `npm test` passes
- [ ] Tests added or updated for new or changed behavior
- [x] No secrets, API keys, or credentials committed
- [x] Docs updated for user-facing behavior changes
- [x] `npm run docs` builds without warnings (doc changes only)
- [x] Doc pages follow the [style
guide](https://github.com/NVIDIA/NemoClaw/blob/main/docs/CONTRIBUTING.md)
(doc changes only)
- [ ] New doc pages include SPDX header and frontmatter (new pages only)

---
<!-- DCO sign-off required by CI. Run: git config user.name && git
config user.email -->
Signed-off-by: Clint Herron <hanclinto@gmail.com>


<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit

* **Documentation**
* Standardized command examples: separate command and expected-output
blocks, require `json`/`text` output fences, forbid prompt markers in
copyable commands, restrict mixed command+output to labeled
transcript-only sections, and updated numerous example snippets and
command-reference pages to this format.
* **Bug Fixes**
* Improved frontmatter detection to accept optional BOM and Windows
(CRLF) line endings.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->

---------

Co-authored-by: Carlos Villela <cvillela@nvidia.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: docs Documentation, examples, guides, or docs build bug-fix PR fixes a bug or regression platform: windows Affects native Windows environments platform: wsl Affects Windows Subsystem for Linux v0.0.53 Release target

Projects

None yet

Development

Successfully merging this pull request may close these issues.

"Copy" Shortcut for Quick Install Commands Include $ Prefix (Windows)

4 participants