-
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
rustdoc should support submitting code to play.rust-lang.org #14654
Comments
How will this work for non- It seems like that for vast majority of 3rd party documentation this feature would not produce useful results, although at the same time, an interested party with sufficient resources could host their own rust interpreter with the necessary crates pre-installed. |
Ah that is a good point, it sounds like if this is done then it should be an opt-in basis per crate. |
This grows a new option inside of rustdoc to add the ability to submit examples to an external website. If the `--markdown-playground-url` command line option or crate doc attribute `html_playground_url` is present, then examples will have a button on hover to submit the code to the playground specified. This commit enables submission of example code to play.rust-lang.org. The code submitted is that which is tested by rustdoc, not necessarily the exact code shown in the example. Closes rust-lang#14654
This grows a new option inside of rustdoc to add the ability to submit examples to an external website. If the `--markdown-playground-url` command line option or crate doc attribute `html_playground_url` is present, then examples will have a button on hover to submit the code to the playground specified. This commit enables submission of example code to play.rust-lang.org. The code submitted is that which is tested by rustdoc, not necessarily the exact code shown in the example. Closes rust-lang#14654
fix: Fix status command panicking when additional LRU caches are set up
There should be a button on code snippets to submit them to http://play.rust-lang.org/ and have them run.
I don't think that the code snippets should be live-editable in rustdoc like the one on the website.
Note that the repository is located here: https://github.com/rust-lang/rust-playpen
The text was updated successfully, but these errors were encountered: