DEV Community

Discussion on: Let's talk about the state of auto-generated documentation tools for JavaScript

Collapse
 
chinmaykothari profile image
chinmay-kothari

I working on an abandoned project and I have to set up the automated deployment of docs(from JSDOC comments in the main codebase).
So what I understood is that, I have jsdoc comments in the code, I to make (most probably) show them in on a HTML page such that when the user makes any change in the base code comments the HTML page show the change.
I need help as I couldn't find any way to do it. Can you please guide me how can I do it. I would be grateful if you could do any type of help.
I got to know that previously doclet.io could have been used for that but now what service is defunct.
Thanks!

Collapse
 
joelnet profile image
JavaScript Joel

If your codebase is already using JSDoc, check out their Templates and Build Tools section:

github.com/jsdoc/jsdoc

There's a couple different automation tools to choose from in there.

Collapse
 
chinmaykothari profile image
chinmay-kothari

This may come as silly, but I am new to documentation.

I tried to work with what you said but the couldn't find any solution.
Problem is that I have many Nodejs files with JSDoc comments in them. I can 'run jsdoc' command on each file but then I'll end up having a lot of 'index.html' files that I would be needed to connect somehow. Also if there comes a change in the comment in one file then I would need to change that file manually. Canceling the point that we are trying to get automated documentation that changes as the source code changes.

I don't think templates would be helpful in this case. Please help me if you can, I would be grateful. Thanks!

Thread Thread
 
joelnet profile image
JavaScript Joel

I ended up abandoning the approach of creating JSDoc html files from the code comments. I instead just manually created the docs. So I don't really know a good solution for it.

I ended up going with this instead: docz.site/

Thread Thread
 
chinmaykothari profile image
chinmay-kothari

I would also start using docz then. Thanks!

Collapse
 
chinmaykothari profile image
chinmay-kothari

Sure I'll look into it. Thanks a lot!