Do we still need generated platform API javadocs? #108
Replies: 9 comments 11 replies
-
+1, that's a very good idea. HTML Javadoc is not the best way to face such documentation; Platform ships source on GitHub and also as bundles that can be discovered by good PDE or Maven tools, so it's easy to get a better view of the Javadoc thanks to the source and whichever IDE (with better navigation and so on). I don't think HTML pages of Javadoc will be missed much; and not publishing them can have the good effect that people who need doc then get closer to the source, and may be more likely to contribute later. |
Beta Was this translation helpful? Give feedback.
-
OK, I will ask on platform-dev and cross project lists too. |
Beta Was this translation helpful? Give feedback.
-
Hold on, I see that the API reference is cross-referenced from other documentation we ship, like here: https://help.eclipse.org/2023-03/topic/org.eclipse.platform.doc.isv/guide/resAdv_efs_api.htm?cp=2_0_11_6_0 ... If we remove API javadocs, all these references will show into nirvana. |
Beta Was this translation helpful? Give feedback.
-
I think we also use it these days to mark API for deletion. But I agree that it hardly of any use, so +1 for removal the generation (and the link in the documentation to it) |
Beta Was this translation helpful? Give feedback.
-
I am ok with removing the generated javadocs, but only if API removal returns to be documented fully. Back in Sept when that policy was changed the recommendation was to look at previous version javadoc to find out what may be removed - https://www.eclipse.org/lists/eclipse-dev/msg12063.html |
Beta Was this translation helpful? Give feedback.
-
Can someone point to where the generated javadoc is integrated into this Help pages? I'll try to take a look here if we probably can adjust the build setup here. My idea would be that javadoc is generated as part of the usual bundle build and then just aggregated but first need to find out how it is actually become part of that referenced site. |
Beta Was this translation helpful? Give feedback.
-
Looking deeper in what is produced here, it seems that the data is not only for the website, but also declares where PDE can find javadocs for a bundle, so one could install the jar + the isv stuff and (even if no source are there) gets javadoc for the bundles. For the first, I have created a new issue at Tycho, that should allow to better deploy (and probably install) individual javadocs: That way it should be possible to reference these in a feature instead that pulls in the stuff (e.g. into an EPP). for the second (the URL only items) one should actually be able to migrate this to one of the plugins, e.g. here: JDT defines some URLs for the javadoc of Junit, something that might better be directly declared at: but the problem is that this is a PDE extension point and at least Eclipse then always wants to require the bundle (even though I don't know if it is a requirement for an extension point to work), so it was "externalized" into this plugin. |
Beta Was this translation helpful? Give feedback.
-
In case the java-doc generation can be retained, simplified and migrated to maven, wouldn't it then make sense to move the doc bundles into the git repos of the projects they are documenting? |
Beta Was this translation helpful? Give feedback.
-
Not sure if this original question is still being discussed, but let me add that I'm currently trying to fix a N&N entry in the web, that needs to link to the specification of an annotation from So, yes, having javadoc linkable in the web is desirable - I just hope it's affordable, too. As for maintaining the doc bundles: yes, moving those closer to the individual teams sounds like a good idea, so we get back the write access we used to have before the move to github. |
Beta Was this translation helpful? Give feedback.
-
Similar documentation is generated on every SDK build: https://help.eclipse.org/2023-03/index.jsp?topic=%2Forg.eclipse.platform.doc.isv%2Freference%2Fapi%2Findex.html
But is anyone on earth still using this for anything? In my ~20 years hacking around platform I've not a single time used it.
The developers will most likely use SDK to develop bundles for platform, and the Javadoc is there given because it can be read directly from sources.
So should we simply stop producing it with SDK & save our time patching ancient ant files?
I'm asking because we have so much pain reverse engineering build fails in this very old code (see eclipse-jdt/eclipse.jdt.ui#484), that it doesn't justify the return of investment anymore.
Beta Was this translation helpful? Give feedback.
All reactions