diff options
author | Bartek IwaĆczuk <biwanczuk@gmail.com> | 2023-11-01 16:25:05 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-11-01 15:25:05 +0000 |
commit | 8ea2d926a9c75b0b13e7ad37e7181657d680560e (patch) | |
tree | 6a96beb4d9a877bf774dadb9f94cbf31134fe1fc /cli/main.rs | |
parent | f8f4e776325efe0d8dd50207beecb425f0875999 (diff) |
feat: deno doc --html (#21015)
This commit adds static documentation site generate to "deno doc"
subcommand.
Example:
```
$ deno doc --html --name="My library" ./mod.ts
# outputs to ./docs/
$ deno doc --html --name="My library" --output=./documentation/ ./mod.ts ./file2.js
# outputs to ./documentation/
$ deno doc --html --name="My library" ./**/mod.ts
# generate docs for all files with "mod.ts" name
```
Closes https://github.com/denoland/deno/issues/8233
Diffstat (limited to 'cli/main.rs')
-rw-r--r-- | cli/main.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cli/main.rs b/cli/main.rs index dbd3b470b..7a8647a81 100644 --- a/cli/main.rs +++ b/cli/main.rs @@ -95,7 +95,7 @@ async fn run_subcommand(flags: Flags) -> Result<i32, AnyError> { tools::bundle::bundle(flags, bundle_flags).await }), DenoSubcommand::Doc(doc_flags) => { - spawn_subcommand(async { tools::doc::print_docs(flags, doc_flags).await }) + spawn_subcommand(async { tools::doc::doc(flags, doc_flags).await }) } DenoSubcommand::Eval(eval_flags) => spawn_subcommand(async { tools::run::eval_command(flags, eval_flags).await |