Skip to content
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

Merged
merged 1 commit into from Oct 16, 2016

Conversation

ollie27
Copy link
Member

@ollie27 ollie27 commented Oct 11, 2016

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

@rust-highfive
Copy link
Collaborator

r? @steveklabnik

(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.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

hmmmmmm yeah

@steveklabnik
Copy link
Member

Neat! I think this is a noble goal overall.

@alexcrichton @GuillaumeGomez what do you think?

/cc @rust-lang/tools as well.

@alexcrichton
Copy link
Member

👍

@GuillaumeGomez
Copy link
Member

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.

@GuillaumeGomez
Copy link
Member

After consensus, let's merge it!

Thanks a lot for this!

@bors: r+

@bors
Copy link
Contributor

bors commented Oct 12, 2016

📌 Commit 6bc0ca6 has been approved by GuillaumeGomez

@bors
Copy link
Contributor

bors commented Oct 13, 2016

🔒 Merge conflict

@bors
Copy link
Contributor

bors commented Oct 13, 2016

☔ 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.
@ollie27
Copy link
Member Author

ollie27 commented Oct 15, 2016

Rebased.

@GuillaumeGomez
Copy link
Member

@bors: r+

@bors
Copy link
Contributor

bors commented Oct 15, 2016

📌 Commit 0b2746c has been approved by GuillaumeGomez

@bors
Copy link
Contributor

bors commented Oct 16, 2016

⌛ Testing commit 0b2746c with merge 6dc035e...

bors added a commit that referenced this pull request Oct 16, 2016
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
@bors bors merged commit 0b2746c into rust-lang:master Oct 16, 2016
@ollie27 ollie27 deleted the rustdoc_playground branch October 20, 2016 16:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

6 participants