-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Provide Documentation #332
Comments
Examples for auto-generated documentation: Examples for custom-made documentation: Examples for mixed API docs + custom-made: |
In addition to generating a docs site, please generate |
@bennypowers Thanks for the link. Why would that be necessary? The TypeScript type checker does not consider JSDoc in node_modules? |
unfortunately not :/ additionally, this could help you generate docs via typedoc (either as JSON to be fed into some other documentation engine, or as html) |
Linked your idea here. Valuable input, thanks for sharing. |
I've added my 2021 assessment on documentation to the issue description. |
... so yes, tsc can generate typings from JSDoc. I created a small project to automatically generate them for diagram-js. As could be anticipated, the result is unusable: the doc is fine for someone who can infer the intentions of the developer (or understands well some typical JS coding patterns), or can read the source code to validate the interpretation, but in many places it is simply not precise enough in its current form. simple example:
The generator outputs
This is plain wrong. I will try to investigate why the generator does not output the slightly better
The cleaner output would be something like:
This is truly a bummer as diagram-js is an otherwise nice piece of code ... |
Closed in favor of https://github.com/bpmn-io/internal-docs/issues/683. |
Shouldn't we keep a public issue open? Feel free to move it to |
As of bpmn-js@13 we offer comprehensive API documentation (via type definitions). |
Provide documentation with links to the source code and additional resources. This may allow users to find their way into the toolkit more easily.
Tasks
diagram-js
➕bpmn-js
)See also 2021 assessment of our documentation.
Related to bpmn-io/diagram-js#78
Related to forum post
The text was updated successfully, but these errors were encountered: