-
Notifications
You must be signed in to change notification settings - Fork 10.9k
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
Add Badge to javadoc.io on README #7600
base: master
Are you sure you want to change the base?
Conversation
We have some Javadoc links under https://github.com/google/guava#snapshots-and-documentation. There are a few ways that we could change those to be more in line with what you have in this PR:
We should probably do at least some of those. I'm interested in which ones you would see as most valuable. |
(We should also think about how much to keep the GitHub landing page in sync with https://guava.dev/, which likewise has links to Javadoc.) |
So that Ctrl-F for "javadoc" works. Related to discussion in google#7600.
Thank You for the prompt feedback and for considering this!
My feedback would be to do the following:
Unless there are any objections to pointing to linking to javadoc.io (I certainly respect if there are! But are there?), merge this PR as-is; one of the things which I like about it and that "brings value" (IMHO) is that they let folks easily switch between and read the docs for all versions published to Maven Central. But I would NOT do that "instead of our hosted docs" - because those reflect "what's on
I think that would "look nice". I've also noticed a number of (Java) libraries doing this, so it seems like an at least somewhat popular "custom". Would you like me to have a look into how this may be able to be done, and propose a follow-up to this PR? Or prefer seeing this added here? BTW: I have to admit something, rather silly: You know why at least me, and perhaps others, haven't noticed the existing Javadoc links? I just Ctrl-F "javadoc", and... nothing! 🤣 I have now also raised #7601 specifically just for taking care of that.
With #7601 and badges (if we do), then IMHO no need (for me).
I would consider these points as one single and the same... TBH I only just figured via "URL hacking" that e.g. https://javadoc.io/doc/com.google.guava/guava/33.2.0-android/index.html and https://javadoc.io/doc/com.google.guava/guava/33.2.0-jre/index.html are available. The real question here is if it would be easy for project maintainers to keep updating the README after every release to add a link to the latest one. Personally... these things often have a way of getting out of date, don't they? Given that javadoc.io does it based on Maven Central releases, why bother? Just my 2 cents.
Is that page generated using (something like) Jekyll from the |
Dumping random thoughts before I'm OOO for a couple hours:
|
|
OK, it says "new versions auto-detected within 24 hours." That suggests that we wouldn't need to actively do anything. Now, waiting 24 hours is worse than not waiting 24 hours, but I'm sure it makes no difference in most cases. |
|
|
Makes sense. With "JavaDoc" now mentioned (for Ctrl-F), and badges just coming up), I'm very happy to simply close this (unmerged). OK for you? |
@cpovirk wanna merge this?