-
Notifications
You must be signed in to change notification settings - Fork 113
Group CLI options into sections in help docs #2272
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
a4d0a11
group CLI options into sections in help docs
leighmcculloch c2c32eb
shift docgen into its own crate
leighmcculloch 86a2975
remove old doc gen
leighmcculloch 32fab49
remove git rev check because the deny.toml already achieves this
leighmcculloch 3cda7f0
allow the git rev
leighmcculloch 1d11a3e
Update README.md
leighmcculloch File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Some comments aren't visible on the classic Files Changed page.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
Large diffs are not rendered by default.
Oops, something went wrong.
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,17 @@ | ||
| [package] | ||
| name = "doc-gen" | ||
| description = "Stellar CLI generator of markdown help documentation" | ||
| homepage = "https://github.com/stellar/stellar-cli" | ||
| repository = "https://github.com/stellar/stellar-cli" | ||
| authors = ["Stellar Development Foundation <[email protected]>"] | ||
| license = "Apache-2.0" | ||
| readme = "README.md" | ||
| version.workspace = true | ||
| edition = "2021" | ||
| rust-version.workspace = true | ||
| publish = false | ||
|
|
||
| [dependencies] | ||
| soroban-cli = { workspace = true } | ||
| # clap-markdown from https://github.com/ConnorGray/clap-markdown/pull/48 | ||
| clap-markdown = { version = "0.1.5", git = "https://github.com/ConnorGray/clap-markdown", rev = "42956b342cef3325d9060fc43995d595e7c8aa66" } | ||
leighmcculloch marked this conversation as resolved.
Show resolved
Hide resolved
|
||
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,21 @@ | ||
| # Stellar CLI Documentation Generator | ||
|
|
||
| A generator for the help documentation using clap-markdown. | ||
|
|
||
| ## Usage | ||
|
|
||
| Run the following command from the workspace root. | ||
|
|
||
| ``` | ||
| cargo run --package doc-gen | ||
| ``` | ||
|
|
||
| The command will update the file `FULL_HELP_DOCS.md` located in the root of the workspace. | ||
|
|
||
| Typically this command is not run directly, but in the root `Makefile` the `docs` target will run this command in conjunction with formatting the markdown. | ||
|
|
||
| So typically run this command via make: | ||
|
|
||
| ``` | ||
| make docs | ||
| ``` |
File renamed without changes.
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
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
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.