-
Notifications
You must be signed in to change notification settings - Fork 13.2k
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
Replace official "cheatsheet" with http://rustbyexample.com/ #14380
Comments
Hm, there are some downsides to this: we can't verify the examples are correct, and they are no longer tied to a specific version. This should probably be in the 'extern resources' section if we add it to make it clear it's not official docs. |
I'm currently extending rustdoc for a refactored guide system and I'm implementing an extensible validator that rustbyexample could perhaps use |
ooh neat. Talking about this anywhere? I'd be interested in seeing it. |
I'm using cronie.daily + travis to check that the examples stay up to date with rust nigthly, and I receive an e-mail whenever an example breaks. (I have yet to fix the examples that got broken today because of the Each example is compiled, executed and the output is updated along with the site, whenever I rebuild it. (So the site should be WYSIWYG)
RBE follows nigthly, rather than sticking to an snapshot version. But I don't think that's a problem, because that's what I'm currently using |
@steveklabnik Here's the previous PR that I had opened: #14245 — that was with a Ruby static site generator. Now I have integrated some extra stuff into rustdoc to allow some more extensible docs (currated). This drops any previously required depenedencies such as Ruby and Bundler. Somethings on the list:
This will allow a refactor on the current tutorial and guide sections allowing a much nicer experience. All the work is currently being done within my fork (I'll be squashing my commits pretty soon) and I'll be re-opening that PR once I'm done. @japaric The validator I'm working on allows multiple different types of inputs all wrapped in the same CLI interface. For example, you could do |
Isn't that validate command already there as |
@huonw It's an extension of that, yes. |
We now link to Rust By Example, this should be closed. |
We should delete the cheatsheet. |
Rust by Example is far better. Fixes rust-lang#14380.
internal: Coalesce adjacent Indels Originally part of working on a structured snippet API (since sometimes the `$` bit of snippets would be broken off and would lead to it not being recognized), though since this is a pretty separate change, I thought it would make sense to put it into it's own PR. The implementation is relatively straight forward and not overly optimized, though it's pretty low hanging fruit to optimize it when need be.
http://rustbyexample.com/ is significantly better than our cheatsheet. Let's just endorse it by linking directly to it. That should encourage more contributions to rustbyexample to get it finished.
The text was updated successfully, but these errors were encountered: