OmniaGM opened a new pull request, #23906:
URL: https://github.com/apache/kafka/pull/23906
Follow-up to KAFKA-21289 (#23833), which fixed `release.py stage-docs` for
the Hugo-based kafka-site layout.
The site-docs tar carries the repo's top-level `LICENSE` and `NOTICE` at its
root. `stage-docs` extracts the tar with
`tar xf ... --strip-components 1` straight into `content/en/<version>/`, so
those two files get dumped into the
kafka-site content tree alongside the actual docs. They are not docs
content and do not belong there — the previous release slot (`content/en/43`)
has neither, and the javadoc tree already carries its own `legal/` license
files under `static/<version>/javadoc/`.
This was flagged on the 4.4 kafka-site PR, where `content/en/44/LICENSE` and
`content/en/44/NOTICE` showed up as spurious additions and had to be removed by
hand. Without this change they return on every `stage-docs` run.
This patch drops `LICENSE` and `NOTICE` from the content directory after
extraction, mirroring the existing post-extraction cleanup that moves `images/`
out to `static/<version>/`.
No behavior change for any other staged file.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]