Skip to content

Improve README loading code #2405

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

Merged
merged 2 commits into from
Apr 10, 2020
Merged

Improve README loading code #2405

merged 2 commits into from
Apr 10, 2020

Conversation

Turbo87
Copy link
Member

@Turbo87 Turbo87 commented Apr 10, 2020

The readme_path property is on the version resource, but we currently cache the README file content per crate. This PR cleans up the README loading code to cache the README per version instead, which means that we now show the correct README file corresponding to the selected version.

r? @locks

@Turbo87 Turbo87 added A-frontend 🐹 C-internal 🔧 Category: Nonessential work that would make the codebase more consistent or clear labels Apr 10, 2020
@locks
Copy link
Contributor

locks commented Apr 10, 2020

@bors r+

@bors
Copy link
Contributor

bors commented Apr 10, 2020

📌 Commit 20a5eb0 has been approved by locks

@bors
Copy link
Contributor

bors commented Apr 10, 2020

⌛ Testing commit 20a5eb0 with merge c88f4a4...

@bors
Copy link
Contributor

bors commented Apr 10, 2020

☀️ Test successful - checks-travis
Approved by: locks
Pushing c88f4a4 to master...

@bors bors merged commit c88f4a4 into rust-lang:master Apr 10, 2020
@Turbo87 Turbo87 deleted the readme branch April 10, 2020 19:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-frontend 🐹 C-internal 🔧 Category: Nonessential work that would make the codebase more consistent or clear
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants