morningman opened a new pull request, #3742: URL: https://github.com/apache/doris-website/pull/3742
## Summary - `build-check.yml` previously forwarded every version segment it found in changed file paths straight to Docusaurus' `onlyIncludeVersions`. Touching files under retired version dirs (e.g. `versioned_docs/version-1.2/`, `version-2.0/`) made the build fail with `unknown versions (1.2,2.0) found`, even when those files were just being deleted. - This change intersects the detected versions with the active set (`current` + entries from `versions.json`) before building. Retired/unknown versions are logged and skipped; if everything is retired, we fall back to a minimal `4.x` build so the workflow still validates the site. ## Repro PR #3731 (deletes `query_detail` doc from every version dir including 1.2 and 2.0) failed with: ``` Invalid docs option "onlyIncludeVersions": unknown versions (1.2,2.0) found. Available version names are: current, 4.x, 3.x, 2.1 ``` Failed job: https://github.com/apache/doris-website/actions/runs/26280229035/job/77354293705?pr=3731 ## Test plan - [ ] Local simulation with PR #3731's changed-file list now produces `DOCS_VERSIONS=current,4.x,3.x,2.1` and logs `Ignoring changes to retired/unknown versions: 2.0,1.2`. - [ ] CI of this PR passes (only `.github/workflows/build-check.yml` changes; this PR itself touches no doc versions, so the workflow takes the minimal `4.x` fallback branch — verify by reading the `=== Build plan ===` line in the job log). - [ ] After merge, re-run CI on #3731 and confirm it goes green without reverting the 1.2/2.0 file deletions. -- 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] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
