rubyapi
rubyapi copied to clipboard
Support `current` alias
From the suggestion in https://github.com/rubyapi/rubyapi/pull/1417#issuecomment-1451696255
~I think current
would be clearer though. latest
might be interpreted as the latest commit on master
.~
Closes https://github.com/rubyapi/rubyapi/issues/1215
Updated to use current
.
I've not pulled this up locally yet, but do all of the links display as "current" or "3.2" when you pull up "current" documentation?
As "3.2"
That seems fine for now. Maybe later we can support making those say "current", so that your documentation links don't lose that.
For example here:
That seems fine for now. Maybe later we can support making those say "current", so that your documentation links don't lose that.
For example here:
I feel this PR is not really complete without this. It's great that we're allowing current
, but i don't see what value to UX it provides when clicking on any link resets you back to the specific version.
Could we also have some tests to ensure this feature is working as intended?
Thanks.
This would be great for something like a DuckDuckGo bang to search the docs.
FWIW, in that scenario it wouldn't be a problem for me personally if the links referred to the specific version 👍