-
Notifications
You must be signed in to change notification settings - Fork 198
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
Dash integration #145
Comments
Any update on this? I would love to have docs.rs support in Dash. |
@Kapeli also created an issue regarding a Dash integration: #174 But other than that, no progress really. My first pull request is still open, and I'd still like to do further work towards it, if that one is accepted. Maybe now that the repo has been moved under the rust-lang-nursery umbrella, things can move forward a bit... |
I'd like to see this happen too. I'm voting for crate docs support in Dash for years now (almost thought I'm the only one who'd like it). Kapeli stated that he just needs docs to be downloadable in some way. But since docsets seem to be pretty common (e.g. Zeal on Linux also uses them), wouldn't it be more versatile for docs.rs to provide docsets directly? (or maybe some other filetype if there's a more popular one). |
I'm not sure if doc.rs should have native support for docsets. I think the current way of having one canonical doc format, that can then be transformed into others by the user is a more proper way, and also places less maintenance burden on the docs.rs team. My rough plan was that once the features outlined in this issues have landed, I would implement support for using them from docs.rs in https://github.com/hobofan/rsdocs-dashing, and also expose |
I added a route for retrieving basic information of a given crate that includes available versions of the crate: fanzeyi@99eb7ca This should address the need 2 of this issue. |
On building archives of Rustdoc, I wonder if it is possible to simply run some sort of The downside of this method is that we would need to rebuild all the existing documents which is going to be an exhausting process :/ We probably can have some sort of script fetching the file contents from database and compile them into a tar archive then store it in the database. |
Any updates on this? |
The problem with this is it will greatly increase our storage requirements. I don't have hard numbers, but we currently store about 3 TB of docs on S3. If we stored a compressed archive as well, I expect that to easily go up to 3.5. These storage costs are in perpetuity; we can't get rid of old versions because people are still using them. Actually creating the archive is relativity cheap compared to the cost of the build, it's just storage costs that are an issue.
This is unlikely to happen, but we have an issue open for a while: #464 |
Also note that it's not really feasible to store only the compressed archive because we would have to download the whole thing from S3 anytime someone visited a page for the crate+version. For large crates like winapi, that would greatly increase our egress costs. |
Whoops, it looks like all this has been said before. Closing as duplicate of #174 |
Correction: egress is free, but downloading the entire archive would kill our response time for single pages. |
I contacted @Kapeli regarding a docs.rs integration for Dash, similar to ones of rubygems.org, etc..
He said that while it is on the roadmap, he can't say when he will get to it. However, to make the process as smooth as possible, docs.rs should be ready for when the time comes. 😉
Quote from the email:
Current status:
.tar.gz
archive on the fly when it is first requested, and then cache that for subsequent requests. From what I can see, the tar crate makes it pretty easy to compress directories into a file.@onur If the proposed approaches sound okay to you, I'll prepare a PR for each of routes.
The text was updated successfully, but these errors were encountered: