Skip to content

Commit

Permalink
chore: update generation action
Browse files Browse the repository at this point in the history
  • Loading branch information
mohnoor94 committed Mar 25, 2024
1 parent bf689c2 commit e1d7c1f
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .github/workflows/generate-docs-site.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,11 +55,14 @@ jobs:
touch index.html
echo "<!DOCTYPE html><html><head><title>Expedia Group Rapid SDK Reference Documentation</title></head><body><h1>Expedia Group Rapid SDK Reference Documentation</h1><ul>" > index.html
for dir in $(ls -d */); do
if [ "$dir" == "${{ github.event.inputs.version }}/" ] || [ "$dir" == "latest/" ]; then
if [ "$dir" == "${{ github.event.inputs.version }}/" ]; then
echo "<li><a href=\"${dir}index.html\">${dir}</a></li>" >> index.html
echo "<li><a href=\"latest/index.html\">Latest (Version ${{ github.event.inputs.version }})</a></li>" >> index.html
continue
fi
if [ "$dir" == "latest/" ]; then
continue
fi
echo "<li><a href=\"${dir}\index.html\">${dir}</a></li>" >> index.html
done
echo "</ul></body></html>" >> index.html
Expand Down

0 comments on commit e1d7c1f

Please sign in to comment.