-
Notifications
You must be signed in to change notification settings - Fork 13k
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: Improve playground run buttons #37098
Conversation
(rust_highfive has picked a reviewer for you, use r? to override) |
"" | ||
}; | ||
// These characters don't need to be escaped in a URI. | ||
// FIXME: use a library function for percent encoding. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
hmmmmmm yeah
Neat! I think this is a noble goal overall. @alexcrichton @GuillaumeGomez what do you think? /cc @rust-lang/tools as well. |
👍 |
I have shared feelings: on one side, it removes javascript and watchers, which is super nice. On the other side, we add more data into our docs. So I'm mostly in favor for this change. |
After consensus, let's merge it! Thanks a lot for this! @bors: r+ |
📌 Commit 6bc0ca6 has been approved by |
🔒 Merge conflict |
☔ The latest upstream changes (presumably #37118) made this pull request unmergeable. Please resolve the merge conflicts. |
The main change is to stop using javascript to generate the URLs and use rustdoc instead. This also adds run buttons to the error index examples.
6bc0ca6
to
0b2746c
Compare
Rebased. |
@bors: r+ |
📌 Commit 0b2746c has been approved by |
rustdoc: Improve playground run buttons The main change is to stop using javascript to generate the URLs and use rustdoc instead. This also adds run buttons to the error index examples. You can test the changes at https://ollie27.github.io/rust_doc_test/. Fixes #36621 Fixes #36910
The main change is to stop using javascript to generate the URLs and use
rustdoc instead.
This also adds run buttons to the error index examples.
You can test the changes at https://ollie27.github.io/rust_doc_test/.
Fixes #36621
Fixes #36910