-
Notifications
You must be signed in to change notification settings - Fork 67
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
Documentation Section #141
Comments
I think this is a great idea, but I would definitely want to some tools use such a feature before merging documentation on it into the tool-conventions repo. We want to avoid standardizing things without real world experience with them. Do you know of any tools we could partner with in designing a documentation section? |
Not that I know of, though it would be cool to have tools like wasm-bindgen integrate with it. Maybe there could be an |
I think opening a PR for iteration would be appropriate while we figure out where we can implement the design. |
Sounds good, I'll do that! :) |
FWIW, we plan on doing something like this for the Rust toolchain. I don't think we have a firm timeline for it, though. |
I propose that a custom section be defined that supplied documentation of the exported api at various levels of specificity. For example, there could be module-level documentation, function-level, parameter-level, type-level, etc.
I think it should directly interface with the interface types proposal (when available, the section can be usable before then) to have the ability to document, for example, individual fields of record parameters, or individual variants of variant parameters.
The goal is to enable support for IntelliSense-like support when programming against a wasm module's api.
I'll make a pr with some initial thoughts on this in a week or so if people think this is a good idea.
I originally made an issue on the interface-types repo (WebAssembly/interface-types#110), but it was suggested that the issue be raised here instead since it would be a tool-convention not a standardized feature.
The text was updated successfully, but these errors were encountered: