311-data
311-data copied to clipboard
DEV - Evaluate JavaScript Documentation Generator
Overview
We need to choose between JSDoc and documentation.js as our standard API documentation tool for the project. The goal is to establish a consistent, maintainable docs pipeline that integrates seamlessly with our build and deployment processes.
More Info (optional)
Our codebase currently lacks autogenerated API reference documentation.
JSDoc offers a mature ecosystem, deep customization, and strong TypeScript support.
documentation.js provides zero-config setup, built-in Markdown output, and modern defaults.
We should compare both on team familiarity, output quality, extensibility, and CI/CD integration.
Action Items
- [ ] Research and prototype docs generation for both tools
- Install each (JSDoc + documentation.js)
- Configure basics (config files or CLI flags)
- Generate sample output for a representative module
- [ ] Evaluate generated outputs
- Compare readability, styling consistency, and completeness
- [ ] Assess and document integration effort
- CI/CD pipeline fit
- Static-site or GitHub Pages deployment
- [ ] Decide on the tool and gather team feedback
- [ ] Implement chosen tool
- Create/update
/docsdirectory - Commit config (
jsdoc.jsonordocumentation.json) - Add
npm run docsscript and update README - Hook into CI/CD for automatic builds
- Create/update
- [ ] Share final setup
- Record implementation details in this issue thread
Resources/Instructions
- documentation.js docs: https://documentation.js.org/
- JSDoc docs: https://jsdoc.app/
- Sample JSDoc config guide: https://jsdoc.app/about-config.html
- Sample documentation.js config guide: https://github.com/documentationjs/documentation#configuration
Approved by dev lead