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: add crate items to the search-index #31715

Merged
merged 2 commits into from
Feb 23, 2016

Conversation

mitaa
Copy link
Contributor

@mitaa mitaa commented Feb 16, 2016

This allows to search for crates in documentation and simplifies the json serialization of the search-index.

fixes #14077

@rust-highfive
Copy link
Collaborator

r? @cmr

(rust_highfive has picked a reviewer for you, use r? to override)

@mitaa
Copy link
Contributor Author

mitaa commented Feb 16, 2016

r? @alexcrichton

fn to_json(&self) -> Json {
let mut data = BTreeMap::new();
data.insert("name".to_owned(), self.name.to_json());
Json::Object(data)
Copy link
Member

Choose a reason for hiding this comment

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

This seems different than it was before? Just double-checking that it was accounted for on the search index side of things

@alexcrichton
Copy link
Member

Sorry this took awhile to get around to, but thanks @mitaa! I like the cleanup going on here, definitely improves readability.

I've got just one minor question about how the search index looks like it's changed, but other than that looks good to me.

@mitaa
Copy link
Contributor Author

mitaa commented Feb 22, 2016

You're right, I've changed that part back to the old behaviour - the search index shouldn't have changed but it's probably safer this way. (like the comment said the null case shouldn't normally happen)

@alexcrichton
Copy link
Member

@bors: r+ 81f673d

bors added a commit that referenced this pull request Feb 22, 2016
This allows to search for crates in documentation and simplifies the json serialization of the search-index.

fixes #14077
@bors
Copy link
Contributor

bors commented Feb 22, 2016

⌛ Testing commit 81f673d with merge 37c6f28...

@bors
Copy link
Contributor

bors commented Feb 23, 2016

💔 Test failed - auto-win-gnu-64-nopt-t

@alexcrichton
Copy link
Member

@bors: retry

On Mon, Feb 22, 2016 at 4:51 PM, bors notifications@github.com wrote:

[image: 💔] Test failed - auto-win-gnu-64-nopt-t
http://buildbot.rust-lang.org/builders/auto-win-gnu-64-nopt-t/builds/3199


Reply to this email directly or view it on GitHub
#31715 (comment).

@bors bors merged commit 81f673d into rust-lang:master Feb 23, 2016
@mitaa mitaa deleted the rdoc-index-crate branch February 23, 2016 05:17
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.

rustdoc search doesn't find crate names
5 participants