Search before asking
Description
On Windows, building the documentation website (npm run build in website/) fails the broken-links check. The remark-version-replace plugin does not substitute the $FLUSS_VERSION$ / $FLUSS_MAVEN_REPO_URL$ placeholders, so the Maven-JAR links in iceberg.md, lance.md and paimon.md resolve to a literal $FLUSS_MAVEN_REPO_URL$/... and Docusaurus reports ~24 broken links (onBrokenLinks: 'throw'), failing the build.
Root cause: getDocsVersionName() in website/src/plugins/remark-version-replace/index.js splits the file path on '/' only:
const parts = pathname.split('/');
const websiteIndex = parts.lastIndexOf('website');
On Windows vfile.path uses backslash separators (e.g. C:\...\website\docs\engine-flink\reads.md), so split('/') yields a single-element array, lastIndexOf('website') returns -1, the function returns '', and no replacements are applied.
Steps to reproduce
On Windows, in website/:
npm run clear && npm run build
→ build fails with ~24 broken links pointing to $FLUSS_MAVEN_REPO_URL$/....
Willingness to contribute
Search before asking
Description
On Windows, building the documentation website (
npm run buildinwebsite/) fails the broken-links check. Theremark-version-replaceplugin does not substitute the$FLUSS_VERSION$/$FLUSS_MAVEN_REPO_URL$placeholders, so the Maven-JAR links iniceberg.md,lance.mdandpaimon.mdresolve to a literal$FLUSS_MAVEN_REPO_URL$/...and Docusaurus reports ~24 broken links (onBrokenLinks: 'throw'), failing the build.Root cause:
getDocsVersionName()inwebsite/src/plugins/remark-version-replace/index.jssplits the file path on'/'only:On Windows
vfile.pathuses backslash separators (e.g.C:\...\website\docs\engine-flink\reads.md), sosplit('/')yields a single-element array,lastIndexOf('website')returns-1, the function returns'', and no replacements are applied.Steps to reproduce
On Windows, in
website/:→ build fails with ~24 broken links pointing to
$FLUSS_MAVEN_REPO_URL$/....Willingness to contribute