Skip to content

[docs] Fix the config table regeneration command in the docs README - #11683

Open
kevinWangSheng wants to merge 1 commit into
apache:masterfrom
kevinWangSheng:docs-readme-generate-docs-profile
Open

kevinWangSheng wants to merge 1 commit into
apache:masterfrom
kevinWangSheng:docs-readme-generate-docs-profile

Conversation

@kevinWangSheng

Copy link
Copy Markdown

Purpose

docs/README.md says to regenerate the config tables with mvn -pl paimon-docs -am package -DskipTests, but the ConfigOptionsDocGenerator execution in paimon-docs/pom.xml is inside the generate-docs profile, which is not active by default (pom.xml#L144-L176). That command builds the module and leaves docs/generated/ untouched. This switches to the command in paimon-docs/README.md and replaces the "28 HTML config tables" count: the generator only writes the *_configuration.html files (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 runs antrun:run (generate-docs) and rewrites the file along with the other 11 *_configuration.html files.

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.

@QuakeWang QuakeWang left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

+1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants