Skip to content

Document how to create a preview of the JSDoc #609

Open
@cdauth

Description

@cdauth

I am following the “Writing documentation” guide to add JSDoc comments to my code. To see if my documentation is formatted right and links between symbols work, I would like to preview my rendered JSDoc without having to publish a version of my package after each change.

The documentation links to this blog post for additional information. That blog post mentions the deno doc command. However, my project runs on Node.js and uses TSC, thus I cannot use .ts extensions in my imports, which is required by Deno due to denoland/deno#2506. Thus the deno doc command fails with a lot of errors that it cannot find my imports.

Also, someone mentioned in #582 that the docs generated by Deno are different than the ones on JSR, so they are not suitable as a preview.

It would be nice if the docs would show how to generate a preview for the JSDoc as it will be shown on JSR. So far I haven’t found a way to achieve this.

Metadata

Metadata

Assignees

No one assigned

    Labels

    documentationImprovements or additions to documentation

    Type

    Projects

    Status

    Ready

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions