docs: generate agent variant code samples#4721
Conversation
|
Auto-sync is disabled for draft pull requests in this repository. Workflows must be run manually. Contributors can view more details about this message here. |
|
Caution Review failedPull request was closed or merged during review 📝 WalkthroughWalkthroughThis PR introduces a ChangesUnified CLI placeholder for variant documentation generation
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~25 minutes Possibly related PRs
Suggested labels
Suggested reviewers
Poem
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Comment |
E2E Advisor RecommendationRequired E2E: None Dispatch hint: Full advisor summaryE2E Recommendation AdvisorBase: Required E2E
Optional E2E
New E2E recommendations
Dispatch hint
|
E2E Scenario Advisor RecommendationRequired scenario E2E: None Full scenario advisor summaryE2E Scenario AdvisorBase: Required scenario E2E
Optional scenario E2E
Relevant changed files
|
PR Review AdvisorFindings: 1 needs attention, 8 worth checking, 0 nice ideas Review findings🛠️ Needs attention
🔎 Worth checking
🌱 Nice ideas
Since last review detailsCurrent findings:
This is an automated advisory review. A human maintainer must make the final merge decision. |
|
🌿 Preview your docs: https://nvidia-preview-pr-4721.docs.buildwithfern.com/nemoclaw |
|
The link check is ok to ignore. It detected example link format in the contributing guide skill. |
Summary
Adds build-time generation for agent-specific docs variants so shared source samples can use
$$nemoclawwhile Fern still renders native fenced code blocks.Tested preview:
Changes
docs/manage-sandboxes/lifecycle.mdxand route both Fern variants to generated pages.$$nemoclawsentinel samples while keepingAgentOnlyfor real content differences.docs:preview:watchdoes not loop on generated files.Type of Change
Verification
git commit --no-verifyandgit push --no-verifywere used at the user's request after a hook run failed in unrelated broad tests.npx prek run --all-filespassesnpm testpassesnpm run docsbuilds without warnings (doc changes only)Verified locally:
npm test -- test/agent-variant-docs.test.tsnpm run docs(passes with the existing Fern warning)python3 scripts/docs-to-skills.py docs/ .agents/skills/ --prefix nemoclaw-user --doc-platform fern-mdx --dry-runSigned-off-by: Miyoung Choi miyoungc@nvidia.com
Summary by CodeRabbit
Release Notes
New Features
Documentation
Chores