ludorival / vscode-preview-jsdoc

VSCode extension to automatically preview the generated jsdoc
MIT License
6 stars 1 forks source link
jsdoc jsdoc-generation vscode-extension

Build Status

Simply preview your jsdoc generation on your browser.

screencast

Features

Each time a .js or .md file is saved, jsdoc is launched on its parent directory and the preview page is automatically reloaded (or opened if not exist).

You can open a new page in your browser with the command Preview JSDoc : Open browser.

No need to have jsdoc installed on your machine.

Extension Settings

This extension contributes the following settings:

Use a custom templates

If you want to use a different template than the default one. You can set in your configuration file the location of this template.

For example, if you want to use the template fooDoc.

  1. Get the absolute path where you installed this template.
  2. Update the configuration file like below
    {
    "opts": {
        ...
        "template": "<root path>/node_modules/foodoc/template"
    }
    }
  3. Open the preview jsdoc browser or save a file to see the new template

Release Notes

Look at the Changelog

Others

This extension has been inspired from Instant Markdown extension.