Skip to content

Fix locally hosting docs.rs for development #216

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

Merged
merged 3 commits into from
Jul 6, 2018
Merged

Fix locally hosting docs.rs for development #216

merged 3 commits into from
Jul 6, 2018

Conversation

jonas-schievink
Copy link
Contributor

@jonas-schievink jonas-schievink commented Jul 3, 2018

After much debugging I noticed that docs.rs uses a patched compiler and rustdoc to generate documentation (full diff). Since compiling rustc and rustdoc is annoying, this PR adds support for unpatched toolchains by serving web resources that are shared between crates via a special handler. (the patched toolchain changed the paths so that these resources were always pulled from the root instead of a relative path)

Since this also updates the unpatched rustc toolchain installed in the VM, this closes #207

@jonas-schievink jonas-schievink changed the title Fix locally hosting docs.rs for development [WIP] Fix locally hosting docs.rs for development Jul 3, 2018
This removes the need for things like
onur/rust@482575f
and allows launching a local docs.rs instance without having to build a
patched compiler.
@jonas-schievink jonas-schievink changed the title [WIP] Fix locally hosting docs.rs for development Fix locally hosting docs.rs for development Jul 3, 2018
@onur onur merged commit e8d4c31 into rust-lang:master Jul 6, 2018
@jonas-schievink jonas-schievink deleted the shared-resource-handler branch July 6, 2018 13:24
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.

2 participants