-
Notifications
You must be signed in to change notification settings - Fork 409
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
Generated documentation in READMEs #7
Comments
I'm thinking ideally we could generate a README. In JS land READMEs are usually some metadata + statement of intent + API documentation. Most of the metadata can probably be extracted from E.g. output would look somewhat like this: bar-to-baz-wasmConvert bars into bazzi. WebAssembly bindings generated using wasm-pack. API
|
this is a great suggestion @yoshuawuyts - i really like it! do you think creating a separate crate to handle taking rustdoc generation -> markdown file would be useful? then we could just integrate it in here. seems like a vaguely big enough job that it warrants another crate. thoughts? |
I personally like README files that help guide new people into explaining what the intent of the library is how though some simple to slightly more complex examples. Then either a list of or links off to some API docs. Not to mention any other human / ecosystem related information. In that people centric sense I think auto file generation could help but I personally would also like the option to have hand written parts (or the whole file) as well. So, if the Perhaps there is room for all options? A possible order:
|
For now I might try method 2 manually in my crate and see if I find much duplication between the READMEs. (Rightly or wrongly I am aiming to have my crate usable by both Rust and JS.) |
Oh, also I guess there is the question about media referenced in the Readme. 🤔 |
Is there any update about this? I like both ideas, from @yoshuawuyts and @ootoovak. In my case the same crate can be used itself as Cargo dependency and publish it as NPM dependency, but the README.md for Rust crate is not useful for NPM package or I need to write both together. |
in generating an npm package from a rust/wasm project do we anticipate that the author would want to reuse the README from the rust crate or create a new one?
The text was updated successfully, but these errors were encountered: