Repository navigation
[docs] Fix the config table regeneration command in the docs README - #11683
Open
kevinWangSheng wants to merge 1 commit into
Open
kevinWangSheng wants to merge 1 commit into
kevinWangSheng wants to merge 1 commit into
Conversation
The ConfigOptionsDocGenerator execution in paimon-docs is bound to the generate-docs profile, so the documented command builds the module without regenerating anything. Use the command from paimon-docs/README.md, and say which files in generated/ the generator produces instead of a stale count.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Purpose
docs/README.mdsays to regenerate the config tables withmvn -pl paimon-docs -am package -DskipTests, but theConfigOptionsDocGeneratorexecution inpaimon-docs/pom.xmlis inside thegenerate-docsprofile, which is not active by default (pom.xml#L144-L176). That command builds the module and leavesdocs/generated/untouched. This switches to the command inpaimon-docs/README.mdand replaces the "28 HTML config tables" count: the generator only writes the*_configuration.htmlfiles (12 of the 27 files there).Tests
On 055fe60 with JDK 8 / Maven 3.9, after deleting
docs/generated/core_configuration.html: the old command ends in BUILD SUCCESS without running antrun and the file stays missing; the new command runsantrun:run (generate-docs)and rewrites the file along with the other 11*_configuration.htmlfiles.