-
Notifications
You must be signed in to change notification settings - Fork 12.9k
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
Doc landing page and the 404 page could have the library search box #14572
Comments
This was originally my plan for it, but the javascript search thing is pretty strongly tied to the rustdoc output for a given crate. |
@richo the search index is now global, all crates are in the one file. |
👍 |
Amazing! I can probably get this out tonight.
|
@richo did anything come of this? |
Not yet, I ended up deep in frontend hell. It's on my list but not a On Mon, Jun 23, 2014 at 10:19 AM, Steve Klabnik notifications@github.com
|
Triage: Just checked and the "Doc landing page and the 404 page" still don't utilize the library search box |
triage: re-tagging as 'rustdoc', since we'd need it to be able to do this before adding to the docs |
Triage: no change |
It is possible to have a small form on https://doc.rust-lang.org/ which goes to https://doc.rust-lang.org/std/?search=vec. However the landing page is not generated by rustdoc afaik. |
This change partially addresses rust-lang#14572. No CSS doesn't look fancy but at least it is functional.
Add a small search box to seach Rust's standary library This change partially addresses rust-lang#14572. No CSS doesn't look fancy but at least it is functional.
It actually has a link to search already, but it would be better to have the search "box" as like index.md to be consistent. <style> can be shared with index.md, but these pages currently use https://doc.rust-lang.org/rust.css directly. Fixes rust-lang#14572.
Add the library search box on the 404 page It actually has a link to search already, but it would be better to have the search "box" as like index.md to be consistent. <style> can be shared with index.md, but these pages currently use https://doc.rust-lang.org/rust.css directly. Fixes #14572.
Encode closing delimiter span in FlatTrees Mainly serves as a test for the api versioning, as I don't think we make use of the closing span yet.
http://doc.rust-lang.org/master/ and http://doc.rust-lang.org/master/doesntexist could hook into the javascript that runs the search on http://doc.rust-lang.org/master/std/ to all show a search box themselves.
(The 404 page could even be intelligently auto-filled based on the URL, as an additional enhancement.)
The text was updated successfully, but these errors were encountered: