Description
deno_doc is a Rust crate that generates documentation for JavaScript and TypeScript modules. It powers the deno doc command in Deno, but the README says it is not Deno specific, so it can also be used to write documentation generators for other targets such as Node or the browser. The repository includes a minimal standalone binary that shows how to use the crate. For HTML output, the README describes three development tasks: one regenerates the transpiled Tailwind styles from the CSS files and class names used across the Rust and JavaScript code, one generates an HTML output directory from the provided files, and one combines these with a set of test fixtures for faster debugging. Snapshot tests use the insta tool, and any change to the rendered HTML is checked with cargo-insta. Most generated HTML lives in src/html/templates, which also holds the scripts, CSS and icons. Usage from the Deno CLI or Deploy is covered in a separate README in the js folder. The project is on GitHub.…
Highlights
- Generates docs for JavaScript and TypeScript modules
- Powers deno doc in the Deno CLI
- Rust crate usable in other documentation tools
- HTML generation with Tailwind styles
- Snapshot tests with insta
Ratings & Reviews
No ratings yet
Be the first to rate Deno Doc.
People also visit
Docma
A powerful tool to easily generate beautiful HTML documentation from JavaScript
Deno Doc FAQ
What is deno_doc?
A Rust crate that generates documentation for JavaScript and TypeScript modules.
Do I need Deno to use it?
No. The README says it is not Deno specific and can be used for documentation generators aimed at Node or the browser. It is also what the deno doc command runs on.
How do I use it from Deno?
The README points to the js folder for usage from the Deno CLI or Deploy.
Is there an example?
Yes. examples/ddoc/main.rs is a minimal standalone binary that shows how to use the crate.
How do I change the HTML output?
Run the Tailwind task after changing styles, then the gen_html or debug task. Snapshot changes are updated with cargo-insta.
What are the best Deno Doc alternatives?
Popular alternatives to Deno Doc include Typedoc, Documentation and Jsdoc To Markdown. See all Deno Doc alternatives

