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: cross-crate source links are one level lower. #14458

Merged
merged 1 commit into from
May 28, 2014

Conversation

huonw
Copy link
Member

@huonw huonw commented May 27, 2014

Previously this was adding one-too-many ..s to the path for the
gotosrc=... links for local crates. Also, the root_path already ends
in /s so a trailing / shouldn't be added after the root (some servers
treat ...//... different to .../... including the one running
doc.rust-lang.org).

@huonw
Copy link
Member Author

huonw commented May 27, 2014

r? @alexcrichton

Example: the [src] on std::any points to http://doc.rust-lang.org//core/any/?gotosrc=78251 which has two problems: the /master/ has disappeared and there's a mysterious //.

@alexcrichton
Copy link
Member

Hm, I could have sworn I tested this...

Previously this was adding one-too-many `..`s to the path for the
`gotosrc=...` links for local crates. Also, the `root_path` already ends
in `/`s so a trailing / shouldn't be added after the root (some servers
treat `...//...` different to `.../...` including the one running
doc.rust-lang.org).
bors added a commit that referenced this pull request May 28, 2014
…excrichton

Previously this was adding one-too-many `..`s to the path for the
`gotosrc=...` links for local crates. Also, the `root_path` already ends
in `/`s so a trailing / shouldn't be added after the root (some servers
treat `...//...` different to `.../...` including the one running
doc.rust-lang.org).
@bors bors closed this May 28, 2014
@bors bors merged commit 3482ab3 into rust-lang:master May 28, 2014
@huonw huonw deleted the rustdoc-cross-crate-link-path branch June 27, 2014 06:47
bors added a commit to rust-lang-ci/rust that referenced this pull request Jun 5, 2023
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.

3 participants