2

I have install the Jsdoc in my solution with the help of command npm install jsdoc. Now in method I have defined with the comment as:-

/** * @param {object} state person/thing you want to say hello to. * @param {object} action * @returns {object} state */ 

Now the question is how can I generate the document?, what will be the command to generate the document?

1 Answer 1

3

First of all, you may have a look at the documentation. It is a bit confusing at first but quite comprehensive.

Then, I would recommend to install jsdocs globally with npm -g

Now you can go to your project folder and just type

jsdoc src -r -d docs 

This will go through all files in the subdirectory src and output the documentation in docs.

Sign up to request clarification or add additional context in comments.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.