Search Rust Book


With the new Rust Book in place, I hope Rust documentation will start to be consolidated. It was getting out of hand having the Guide, Reference,,, not to mention all the separate specific guides.

However, I really would like a way to do Ctrl+F to find something I remember reading before. The new layout does not allow for this since each section is its own link.This could just be an option of viewing the book as one document or offering a search feature.


I think consolidating the Guide (now Book) and the References would be quite useful.

Implementing a search is not trivial. It might be possible to implement a tokenizer in rustbook to generate a search index while building the static files (similar to lunar.js). Then it would be a matter of adding a bit of JavaScript to handle the searching itself (this is how gitbook does it).