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

How to link to latest version? #153

Closed
andreastt opened this issue Sep 9, 2017 · 4 comments
Closed

How to link to latest version? #153

andreastt opened this issue Sep 9, 2017 · 4 comments

Comments

@andreastt
Copy link

I’m sorry in advance if this is not the right forum for a question about docs.rs.

docs.rs provides a convenient way of linking types in documents such as change logs to API documentation, but I quite often want to link to the latest version of the type.

For example with https://docs.rs/webdriver/0.30.0/webdriver/error/enum.ErrorStatus.html, being able to replace 0.30.0 with latest, which would redirect you to the latest version of the documentation would be useful so that one wouldn’t have to revisit documentation to update the links when a new version becomes available.

@onur
Copy link
Member

onur commented Sep 9, 2017

You can use newest (someone suggested this earlier, latest seems more reasonable) or * for the version. This currently have some sort of browser cache issue but I'll redirect this requests to actual latest version in future, so it should be ok.

@crumblingstatue
Copy link

newest doesn't seem to work when linking to the source code.

https://docs.rs/crate/sfml/newest/source/examples/ just shows an empty page.

I wanted to use this as a workaround for #132.

@onur
Copy link
Member

onur commented Sep 9, 2017

Yeah, looks like source tab is not semver compatible. I was planning to improve source browser, this feature also needs to be added.

@andreastt
Copy link
Author

This is great, thanks everyone!

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

No branches or pull requests

3 participants