Skip to content

respec workflow: create latest-version symlink to file in same directory #4213

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Nov 21, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions scripts/md2html/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -54,13 +54,17 @@ for filename in $(ls -1 ../../versions/[23456789].*.md | sort -r) ; do
if [ $version = $latest ]; then
if [[ ${version} != *"rc"* ]];then
# version is not a Release Candidate
ln -sf ../../deploy/oas/v$version.html ../../deploy/oas/latest.html
pushd ../../deploy/oas
ln -sf v$version.html latest.html
popd
latestCopied=v$version
fi
fi

if [ ${minorVersion} != ${lastMinor} ] && [ ${minorVersion} != 2.0 ]; then
ln -sf ../../deploy/oas/v$version.html ../../deploy/oas/v$minorVersion.html
pushd ../../deploy/oas
ln -sf v$version.html v$minorVersion.html
popd
lastMinor=$minorVersion
fi
done
Expand Down