-
Notifications
You must be signed in to change notification settings - Fork 58
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
Revamping the docs for 1.0 #214
Comments
@dherman This looks really great! I think it might be valuable to bump a couple of concepts up into phase 1. Particularly, binary data and root/channel. I don't think we need to go into a lot of detail for Phase 1, but have enough content to ensure users know they exist. When working with threads, it can be hard for users to know where to get started. While I don't think it's necessary to have through docs, giving a quick intro and example will let users know where to get started. Another thought I had was on compile errors. I'm not sure if there's anything we can do to improve them since Rust doesn't have a lot of flexibility here outside of proc macros. This is the error you get when trying to move a callback to another thread without a
Ideally, this would tell a user about This the error when trying to move a
Ideally, this would tell a user to use As far as I know, there's nothing in Rust to support custom errors like this. The best I can think is to try to rename the types the user sees into something helpful:
|
@kjvalencik I'm definitely open to documenting a few of the concepts for 1.0, I'll just take it one at a time. Is your point about compiler errors that it's worth considering some documentation solutions to the problem? |
@dherman Yes, these specific things are "gotchas" in Neon and without internalizing the full docs, it can be hard to know what to look for. It would be nice to document some specific errors in the docs themselves to help users. |
@kjvalencik Maybe a troubleshooting doc in the How To section? |
or "Common Pitfalls"? |
Overhaul of docs: - Top level reorganization (see #214) - Remove out-of-date docs - Remove the links to legacy examples (including in navbar) - Curate the "who's using Neon" list Co-authored-by: K.J. Valencik <kjvalencik@gmail.com>
Here's a rough plan of attack for revamping the docs for 1.0 and beyond. I'll break it into two milestones:
1. Refresh for Node-API backend
This is more or less the minimum content needed for 1.0, refreshed to be updated for the Node-API backend.
Get Started
How To
Community
2. Long-term plan
This probably isn't perfect but is a draft skeleton for a more complete set of docs, to try to give a sense that the first milestone is future-compatible with a vision for a fuller set of docs.
Get Started
Concepts
How To
Best Practices
Community
The text was updated successfully, but these errors were encountered: