简体   繁体   English

如何生成 HTML 文档 Deno

[英]How to generate HTML documentation Deno

I heard that Deno had a built-in documentation generator using the command deno doc which I would like to run on my packages.我听说 Deno 有一个内置的文档生成器,它使用我想在我的包上运行的命令deno doc

But it turns out it only generates JSON documentation and another tool must be used to generate HTML documentation.但事实证明它只生成 JSON 文档,并且必须使用另一个工具来生成 HTML 文档。

Is there any existing tool that I can use to generate local HTML files?是否有任何现有工具可用于生成本地 HTML 文件? These are proprietary packages and can't go onto the official deno doc website.这些是专有软件包,不能 go 到官方 deno doc 网站上。

I tried to use TypeDoc alongside typescript-deno-plugin to no avail.我尝试将TypeDoctypescript-deno-plugin一起使用,但无济于事。 Is there any solution to get this to work?有什么解决方案可以让它工作吗?

You can deploy your own instance of https://github.com/denoland/doc_website .您可以部署自己的https://github.com/denoland/doc_website实例。 It's frontend that can consume JSON output of deno doc command.它是前端,可以使用deno doc命令的 JSON output。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM