Skip to content

Commit

Permalink
chore: update docs logic
Browse files Browse the repository at this point in the history
  • Loading branch information
mohnoor94 committed Apr 21, 2024
1 parent 7f6cd5a commit f7c7e27
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/generate-docs-site.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,9 @@ jobs:
LIST_ITEMS="${LIST_ITEMS}<li><a href=\"${dir}\">${dir}</a></li>"
fi
done
sed "s#{{list_items}}#${LIST_ITEMS}#g; s#{{latest_version}}#${{ github.event.inputs.version }}#g" ${{ runner.temp }}/resources/docs-home-template.html > index.html
sed -e "s#{{list_items}}#${LIST_ITEMS}#g" \
-e "s#{{latest_version}}#${{ github.event.inputs.version }}#g" \
${{ runner.temp }}/resources/docs-home-template.html > index.html
ln -sfn ./${{ github.event.inputs.version }} ./latest
- name: Commit
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/resources/docs-home-template.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
</head>
<body>
<h1>Expedia Group Rapid SDK Reference Documentation</h1>
<p>Latest Version: {{latest_version}}</p>
<p>Latest Version: <a href="\latest">{{latest_version}}</a></p>
<ul>
{{list_items}}
</ul>
Expand Down

0 comments on commit f7c7e27

Please sign in to comment.