Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Generate documentation and typings from JSDoc? #423

Open
valadaptive opened this issue Dec 27, 2022 · 1 comment
Open

Generate documentation and typings from JSDoc? #423

valadaptive opened this issue Dec 27, 2022 · 1 comment

Comments

@valadaptive
Copy link
Contributor

Currently, the documentation seems to be manually maintained and updated alongside the code.

It may be beneficial to move the documentation alongside the code in the form of JSDoc comment blocks, using a tool like jsdoc-to-markdown to generate documentation from it. This would make it easier to update the documentation to match the code, and there are even linting tools that will ensure that the documentation is up-to-date. This would also make the documentation easier to access for people reading the code directly.

In addition, it's even possible to generate TypeScript types from JSDoc automatically. This would ensure that typings are up-to-date in addition to the documentation.

@mtth
Copy link
Owner

mtth commented Dec 30, 2022

Sounds reasonable. A requirement would be for hosting to be straightforward, including the non-API documentation (advanced usage, etc.).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants