Merge pull request #236 from taskchampion/issue140

Generate usage documentation
This commit is contained in:
Dustin J. Mitchell 2021-05-26 11:03:49 -04:00 committed by GitHub
commit adfde8be15
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
21 changed files with 1177 additions and 55 deletions

View file

@ -23,6 +23,10 @@ atty = "^0.2.14"
toml = "^0.5.8"
toml_edit = "^0.2.0"
# only needed for usage-docs
mdbook = { version = "0.4", optional = true }
serde_json = { version = "*", optional = true }
[dependencies.taskchampion]
path = "../taskchampion"
@ -30,3 +34,14 @@ path = "../taskchampion"
assert_cmd = "^1.0.3"
predicates = "^1.0.7"
tempfile = "3"
[features]
usage-docs = [ "mdbook", "serde_json" ]
[[bin]]
name = "ta"
[[bin]]
# this is an mdbook plugin and only needed when running `mdbook`
name = "usage-docs"
required-features = [ "usage-docs" ]