DEV Community

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

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!