-
Notifications
You must be signed in to change notification settings - Fork 180
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
Only generate Javadocs for released versions of Pulsar #133
Only generate Javadocs for released versions of Pulsar #133
Conversation
@urfreespace - I did not realize just how big these Javadoc files were until opening this PR. This PR literally adds 8 million lines of generated Javadocs. Should we add the script to the main branch and only commit the generated docs to the |
Looks like the generated docs from the broker for all versions are about 304 MB. |
Interestingly, the following returns no results when run on the grep -R "/api/pulsar-broker" content/docs/ That indicates to me that the website doesn't actually point to the broker's Javadocs. Why do we generate and host them if they are not referenced? I wonder if we can remove them and save some space. Either way, we still need to decide the right workflow for adding generated docs. I think it would make sense to keep them in the |
I totally agree, thanks @michaeljmarshall, @Anonymitaet how do you think? |
@michaeljmarshall thanks for your great contribution! I have several questions: Release frequencyI see you've generated API docs for major and minor versions, so for future releases, we need to generate API docs for each version (align with the Pulsar release), correct? Release ownerCurrently, API docs are automatically generated. In this PR, you've changed the automatic workflow to manual work, so who will be responsible for generating API docs? |
FYI @SignorMercurio @momo-jun: this PR removes |
Yes, that is correct. We currently expect the release manager to generate the swagger docs and the python client docs. I think we could make it so the release manager only has to run a single command to generate all docs for the release. Alternatively, we could probably make some github action that runs when tags are released, but it's probably not worth the effort, and it might lead to minor errors.
The current automated process only updates the latest docs based on the Additionally, I will update the release process wiki once we have a new process. For now, I think my primary question is if we can get rid of the broker's Javadocs. |
I updated the PR to remove the |
I just discovered that the Pulsar Admin API Javadocs changed their generation mechanism starting with 2.8.0 because of this change: apache/pulsar#9246. In my two most recent commits, I fix the Javadoc generation script. This fix takes care of a primary issue where the docs reference links like By generating the docs based on the interfaces, not the |
Note: no docs reference |
Hi @michaeljmarshall did your PR fix the reported three issues mentioned above? They are still in an open state. Not sure whether you will have follow-up fixes or not. |
@momo-jun - this PR only fixed the |
Main issues: apache/pulsar#14838 apache/pulsar#13916 apache/pulsar#16094
Motivation
The current Javadocs are generated based on unreleased versions of Pulsar. As a result, the website links have
-SNAPSHOT
in them. This is confusing, and can also lead to problems where the docs do not align with specific versions. This PR is a step towards cleaning up the-SNAPSHOT
references (there are several more locations, but I am just fixing the Javadoc case in this PR).Changes
mvn -pl pulsar-client-admin javadoc:javadoc
.mvn -pl pulsar-client-admin-api javadoc:javadoc
.pulsar-broker
Javadocs (discussed on mailing list)Note
This change does not make these docs referenced on the website. There is additional work that I plan to complete to make the
replace.js
script reference these docs. I will contribute once I fix all of the generated docs with-SNAPSHOT
.