development icon indicating copy to clipboard operation
development copied to clipboard

JS documentation generators

Open contolini opened this issue 10 years ago • 3 comments

We recommend using the JSDoc format for commenting code but we don't mention generating a documentation website from those comments.

JSDoc has a command-line tool that can do it automatically. There's also Docco which is used by hmda-explorer and eRegs used to use it (but stopped?). Does anyone have experience with other documentation generators?

I'm tempted to recommend the JSDoc generator buuuut the website it generates is ugly. We could create a custom template if anyone has the time/inclination.

Thoughts/opinions/anecdotes?

contolini avatar Aug 03 '15 21:08 contolini

I like Docco, but I really like the idea of a custom JSDoc template. It also seems like that wouldn't be too hard to take on using existing styles we have (like DOCter or the generated CF css).

Maybe we recommend using JSDoc with an eye towards creating a custom template down the road?

ascott1 avatar Aug 05 '15 10:08 ascott1

Been meaning to check this out.. http://documentation.js.org/

anselmbradford avatar Mar 04 '16 19:03 anselmbradford

Doc site (unhosted) is generated with gulp docs in https://github.com/cfpb/consumerfinance.gov and is generated at docs/scripts/index.html

anselmbradford avatar Jul 01 '21 15:07 anselmbradford