Skip to content

Commit

Permalink
Merge pull request #4213 from ralfhandl/main-fix-latest-spec-symlinks
Browse files Browse the repository at this point in the history
respec workflow: create latest-version symlink to file in same directory
  • Loading branch information
handrews authored Nov 21, 2024
2 parents 0996320 + e12d589 commit 546f329
Showing 1 changed file with 6 additions and 2 deletions.
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

0 comments on commit 546f329

Please sign in to comment.