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 f7c7e27 commit 6b07c49
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions .github/workflows/generate-docs-site.yml
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ jobs:
done
sed -e "s#{{list_items}}#${LIST_ITEMS}#g" \
-e "s#{{latest_version}}#${{ github.event.inputs.version }}#g" \
-e "s#{{latest_version_link}}#./${{ github.event.inputs.version }}/#g" \
${{ runner.temp }}/resources/docs-home-template.html > index.html
ln -sfn ./${{ github.event.inputs.version }} ./latest
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/resources/docs-home-template.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@
</head>
<body>
<h1>Expedia Group Rapid SDK Reference Documentation</h1>
<p>Latest Version: <a href="\latest">{{latest_version}}</a></p>
<p>Latest Version: <a href="latest">{{latest_version}}</a></p>
<p>Latest Version: <a href="{{latest_version_link}}">{{latest_version}}</a></p>
<ul>
{{list_items}}
</ul>
Expand Down

0 comments on commit 6b07c49

Please sign in to comment.