Skip to content

fix(admin-cli): stabilize generated CLI docs - #4471

Draft
poroh wants to merge 1 commit into
NVIDIA:mainfrom
poroh:fix/stable-cli-doc-generation
Draft

fix(admin-cli): stabilize generated CLI docs#4471
poroh wants to merge 1 commit into
NVIDIA:mainfrom
poroh:fix/stable-cli-doc-generation

Conversation

@poroh

@poroh poroh commented Aug 1, 2026

Copy link
Copy Markdown
Contributor

The checked-in nico-admin-cli reference contained manual edits that were not represented in the Clap command definitions. Regenerating the documentation could therefore overwrite useful operator guidance. Pandoc versions also produced different Markdown formatting, creating large unrelated diffs.

This PR moves the relevant descriptions back into the authoritative Clap sources and makes generate-cli-docs deterministic across supported Pandoc versions. The generator now preserves apostrophes, inline code, and Markdown links while normalizing value lists and hard breaks without reformatting unrelated prose.

The complete reference is regenerated from the current command tree, including pages for commands that were previously missing from the checked-in documentation.

Related issues

N/A

Type of Change

  • Add - New feature or capability
  • Change - Changes in existing functionality
  • Fix - Bug fixes
  • Remove - Removed features or deprecated functionality
  • Internal - Internal changes (refactoring, tests, docs, etc.)

Breaking Changes

  • This PR contains breaking changes

Testing

  • Unit tests added/updated
  • Integration tests added/updated
  • Manual testing performed
  • No testing required (docs, internal refactor, etc.)

Additional Notes

CI enforcement is intentionally deferred to a separate change that will add a doc-police job running cargo make check-cli-docs.

@copy-pr-bot

copy-pr-bot Bot commented Aug 1, 2026

Copy link
Copy Markdown

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.

@coderabbitai

coderabbitai Bot commented Aug 1, 2026

Copy link
Copy Markdown
Contributor

Important

Review skipped

Draft detected.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Enterprise

Run ID: 1ab8ca10-ede9-418f-9dcb-e451898ba49a

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review

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

@poroh
poroh force-pushed the fix/stable-cli-doc-generation branch from 1c936e0 to 599be5a Compare August 1, 2026 15:55
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.

1 participant