feat: Add automated CLI documentation generator#1643
Closed
johndmulhausen wants to merge 2 commits into
Closed
Conversation
Deploying docs with
|
| Latest commit: |
9cc1f18
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://3322712f.docodile.pages.dev |
| Branch Preview URL: | https://feat-cli-docs-generator.docodile.pages.dev |
Contributor
|
PR Preview: Changed content Base preview: https://feat-cli-docs-generator.docodile.pages.dev Added
Modified
|
35fb30f to
21470db
Compare
johndmulhausen
commented
Sep 14, 2025
9cc1f18 to
09267dd
Compare
Contributor
|
I hard-reset to main, put back your script, updated it for Mintlify, and regenerated the refs for 0.23.0. Those are the commits at the tip, PTAL. I can see that we still have some broken links that I didn't see locally, I will review it more carefully tomorrow morning if you don't get a chance first. |
09267dd to
98af679
Compare
Contributor
|
Closing this to get the Mintlify checks to run in a new PR against the same branch. |
mdlinville
added a commit
that referenced
this pull request
Nov 20, 2025
## Description Moved from #1643 and updated for Mintlify This PR introduces an automated CLI documentation generator for the W&B CLI reference documentation. The new script introspects the W&B CLI structure and generates Mintlify-compatible markdown documentation automatically.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
This PR introduces an automated CLI documentation generator for the W&B CLI reference documentation. The new script introspects the W&B CLI structure and generates Hugo-compatible markdown documentation automatically.
Changes
New Script:
/scripts/cli-docs-generator.pyA Python script that:
Key Features
titleandno_listdirectives--helpwandb-artifact-cache-cleanup.md)-i/--interactive: Prompts for confirmation before overwriting-o/--output: Custom output directory optionDocumentation Updates
wandb-local.mdwandb-off.mdwandb-on.mdwandb-projects.mdUsage
Run the script from the project root:
Benefits
Testing
The script has been tested and successfully generates documentation for all W&B CLI commands, including nested command groups like
wandb artifact cache cleanup.📄 View preview links for changed pages