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

Result for search term "term::stdout" in Rust docs (std) is a link to a non-existent page (404) #22168

Closed
rozbb opened this issue Feb 11, 2015 · 6 comments
Assignees
Labels
T-rustdoc Relevant to the rustdoc team, which will review and decide on the PR/issue.

Comments

@rozbb
Copy link

rozbb commented Feb 11, 2015

Entering the above search term or just going here and clicking the first (and only) search result leads you to a Github Pages 404 page.

Note that this link works just fine.

@steveklabnik steveklabnik added A-docs T-rustdoc Relevant to the rustdoc team, which will review and decide on the PR/issue. and removed A-docs labels Feb 11, 2015
@tomjakubowski
Copy link
Contributor

If you search from the "nightly" docs at http://doc.rust-lang.org/nightly/std/?search=term%3A%3Astdout the correct URL is returned.

I'm pretty sure this isn't a rustdoc bug. It might be caused by something like a stale search index, which in turn may have been caused by rebuilding the std docs in a previously used directory without cleaning.

More evidence: on http://doc.rust-lang.org/std/ there is a link on the sidebar to the term crate at ../term/index.html. This is a placeholder page that just has a redirect to the canonical location for that crate's docs, at http://doc.rust-lang.org/term/term/index.html.

@tomjakubowski
Copy link
Contributor

cc #20096 (which seems to be a highly related issue) and @alexcrichton

@alexcrichton
Copy link
Member

This problem is actually a little more subtle! The search index contains information about the in-tree term crate, but the doc.rust-lang.org/term url actually refers to the external term crate (we have a redirection rule locally). As a result the in-tree link (when browsing doc.rust-lang.org/std) is incorrect, but when browsing /nightly/std it's correct.

We shouldn't be generating this documentation regardless, however so I'm going to solve it that way :)

@alexcrichton alexcrichton self-assigned this Apr 7, 2015
@SimonSapin
Copy link
Contributor

@alexcrichton This issue was marked closed in ed276ca, but I can still reproduce it though the steps in the original message.

@steveklabnik steveklabnik reopened this Apr 21, 2015
@steveklabnik
Copy link
Member

I can too

@rozbb
Copy link
Author

rozbb commented Jun 1, 2015

No longer reproducible

@rozbb rozbb closed this as completed Jun 1, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
T-rustdoc Relevant to the rustdoc team, which will review and decide on the PR/issue.
Projects
None yet
Development

No branches or pull requests

5 participants