Skip to content

Aliasing latest #1

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

Closed
passcod opened this issue Feb 1, 2016 · 6 comments · Fixed by #12
Closed

Aliasing latest #1

passcod opened this issue Feb 1, 2016 · 6 comments · Fixed by #12

Comments

@passcod
Copy link

passcod commented Feb 1, 2016

It would be nice to have aliasing (through the use of, say, symlinks) for the latest version, so we could point the README of a project to https://crates.fyi/crates/cratename/latest/.

@onur
Copy link
Member

onur commented Feb 1, 2016

This is the first thing in my TODO. I am trying to catch crates.io-index atm. There are 30 crates in que. Building google-* crates taking too much time.

@passcod
Copy link
Author

passcod commented Feb 2, 2016

As an addendum, although I'm not sure of the use, version aliasing like 3 -> latest 3.x.y version and 3.2 -> latest 3.2.x could be useful for libraries that maintain multiple branches/versions.

@icorderi
Copy link

Hey, was about to ask for this feature.
Bump it up! +1

@passcod makes an interesting point.@onur have you thought about a .cratesfyi configuration file where we can say 3.x.y = branch/name. That would address @passcod requirement and gives people the ability to control aliases from their own repo.

@passcod
Copy link
Author

passcod commented Feb 11, 2016

@icorderi I believe crates.fyi builds from crates.io, not github, so the concept of branch names doesn't apply.

@reem
Copy link

reem commented Feb 12, 2016

Yeah I would love a "latest" tag, would be really nice to just be able to stick a latest docs link in the README of every project and never worry about it again.

@onur
Copy link
Member

onur commented Feb 12, 2016

Adding sources other than crates.io is in my TODO but I am planning to support only crates released into crates.io for now. cratesfyi may fetch (or listen) crate repository and generate doc from a specific branch in future.

And for the "latest" tag, like I said in #2 this project is changed alot, whole directory structure and htmls are different than currently available in crates.fyi. Build machine is using an old version of cratesfyi. I am planning to host docs in a subdomain like rustdoc.crates.fyi. And planning to add a redirector to latest version of crate. Let's say you wanted to access documentation of latest version of "cargo" crate, rustdoc.crates.fyi/cargo will redirect to latest version of crate documentation.

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.

4 participants