I have a VUE.JS application that needs to be documented. For .VUE components, we are using Vuese. However, when it comes to regular JS files like modules, we decided to use JsDoc. I have installed JsDoc and everything seems fine, but when I generate the HTML files, it renders the entire code instead of just my commented lines.
Here's an example:
/**
* This is a description of the foo function.
*/
function myfunction() {
alert('hello world');
}
console.log(myfunction);
And this is what I get:
(HTML code preview shown)
What could be causing this issue? Am I doing something wrong?
Notes: I installed JsDoc globally and tried both using my jsdocrc.json file and running it alone with the command jsdoc -(PathOfMyJsFile).
TLTR: The problem is that it is rendering the whole code instead of just my JsDoc comments.