Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 0 additions & 21 deletions .github/workflows/dependency-check.yml

This file was deleted.

12 changes: 9 additions & 3 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ resolver = "2"
members = [
"cmd/stellar-cli",
"cmd/soroban-cli",
"cmd/doc-gen",
"cmd/crates/*",
"cmd/crates/soroban-test/tests/fixtures/test-wasms/*",
"cmd/crates/soroban-test/tests/fixtures/hello",
Expand Down
1,760 changes: 1,131 additions & 629 deletions FULL_HELP_DOCS.md

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ build-test-wasms:
build-test: build-test-wasms install

docs:
cargo run --bin doc-gen
cargo run --package doc-gen
./node_modules/.bin/prettier --write --log-level warn FULL_HELP_DOCS.md

test: build-test
Expand Down
17 changes: 17 additions & 0 deletions cmd/doc-gen/Cargo.toml
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" }
21 changes: 21 additions & 0 deletions cmd/doc-gen/README.md
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.
5 changes: 0 additions & 5 deletions cmd/soroban-cli/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,6 @@ path = "src/bin/soroban.rs"
pkg-url = "{ repo }/releases/download/v{ version }/{ name }-{ version }-{ target }{ archive-suffix }"
bin-dir = "{ bin }{ binary-ext }"

[[bin]]
name = "doc-gen"
path = "src/bin/doc-gen.rs"

[lib]
name = "soroban_cli"
path = "src/lib.rs"
Expand Down Expand Up @@ -133,7 +129,6 @@ whoami = "1.5.2"
serde_with = "3.11.0"
rustc_version = "0.4.1"
prettytable = "0.10.0"
clap-markdown = "0.1.5"

[build-dependencies]
crate-git-revision = "0.0.6"
Expand Down
5 changes: 4 additions & 1 deletion deny.toml
Original file line number Diff line number Diff line change
Expand Up @@ -258,7 +258,10 @@ unknown-git = "deny"
# if not specified. If it is specified but empty, no registries are allowed.
allow-registry = ["https://github.com/rust-lang/crates.io-index"]
# List of URLs for allowed Git repositories
allow-git = []
allow-git = [
# Only used by the unpublished doc-gen crate, temporarily until PR is merged: https://github.com/ConnorGray/clap-markdown/pull/48
"https://github.com/ConnorGray/clap-markdown?rev=42956b342cef3325d9060fc43995d595e7c8aa66",
]

[sources.allow-org]
# 1 or more github.com organizations to allow git sources for
Expand Down
Loading