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

Search result links on http://doc.rust-lang.org sometimes 404 #20096

Closed
carols10cents opened this issue Dec 21, 2014 · 2 comments · Fixed by #20101
Closed

Search result links on http://doc.rust-lang.org sometimes 404 #20096

carols10cents opened this issue Dec 21, 2014 · 2 comments · Fixed by #20101

Comments

@carols10cents
Copy link
Member

I'm not exactly sure what's going wrong here, but this is what I did:

This appears to be isolated to the regex, getopts, log, and time crates, I tried to reproduce this with every crate and I got 404s when doing the following searches on the following results, but not for results from the other crates:

  • search for replace, click on regex::Regex::replace (or any other regex::* result)
  • search for opts, click on getopts::getopts (or any other getopts::* result)
  • search for debug, click on log::DEBUG (or any other log::* result)
  • search for time, click on time::Tm::asctime (or any other time::* result)

What's weird is if I try to reproduce this locally by doing:

  • cd to my rust checkout
  • $ open doc/std/index.html
  • Search for replace
  • Click on the result for regex::Regex::replace, which goes to file://[my rust checkout]/doc/regex/enum.Regex.html#method.replace
  • This works fine! I see the doc page I expect!

I also found these other cases of 404s, which might be separate issues-- I'm happy to file them if someone agrees:

@alexcrichton
Copy link
Member

Now that the regex, getopts, log, and time crates are officially hosted on the rust-lang organization, I've tweaked the rules for how their documentation is accessed, causing these errors. The hyperlinks out into them from the main documentation probably just need to be removed, so we should stop generating documentation for these crate most likely to prevent the links from going all over the place.

alexcrichton added a commit to alexcrichton/rust that referenced this issue Dec 28, 2014
These crates are all deprecated for their rust-lang/$crate equivalents and by
generating docs we're generating broken links. The documentation for these
crates are generated out-of-tree and are managed separately, so we're not losing
the documentation altogether, just the links from the main distribution's docs.

Closes rust-lang#20096
bors added a commit that referenced this issue Dec 29, 2014
These crates are all deprecated for their rust-lang/$crate equivalents and by
generating docs we're generating broken links. The documentation for these
crates are generated out-of-tree and are managed separately, so we're not losing
the documentation altogether, just the links from the main distribution's docs.

Closes #20096
@bombless
Copy link
Contributor

The problem's still there.
You can search is, first line is std::Any::is, click it and you get 404.
http://doc.rust-lang.org/std/index.html?search=is

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 a pull request may close this issue.

3 participants