Skip to content

Commit

Permalink
fix: update doc deploy actions to to correct local search path on lan…
Browse files Browse the repository at this point in the history
…ding page (#494)
  • Loading branch information
Revathyvenugopal162 committed May 30, 2024
1 parent 62059a4 commit 228600a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions doc-deploy-dev/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -278,10 +278,12 @@ runs:
cp version/stable/index.html index.html
sed -i 's/href="\([^:"]*\)"/href="version\/stable\/\1"/g' index.html
sed -i 's/src="\([^:"]*\)"/src="version\/stable\/\1"/g' index.html
sed -i 's/action="search.html"/action="version\/stable\/search.html"/g' index.html
elif [[ -f 'version/dev/index.html' ]]; then
cp version/dev/index.html index.html
sed -i 's/href="\([^:"]*\)"/href="version\/dev\/\1"/g' index.html
sed -i 's/src="\([^:"]*\)"/src="version\/dev\/\1"/g' index.html
sed -i 's/action="search.html"/action="version\/dev\/search.html"/g' index.html
else
echo "Error: The 'index.html' file does not exist." >&2
exit 1
Expand Down
2 changes: 2 additions & 0 deletions doc-deploy-stable/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -445,10 +445,12 @@ runs:
cp version/stable/index.html index.html
sed -i 's/href="\([^:"]*\)"/href="version\/stable\/\1"/g' index.html
sed -i 's/src="\([^:"]*\)"/src="version\/stable\/\1"/g' index.html
sed -i 's/action="search.html"/action="version\/stable\/search.html"/g' index.html
elif [[ -f 'version/dev/index.html' ]]; then
cp version/dev/index.html index.html
sed -i 's/href="\([^:"]*\)"/href="version\/dev\/\1"/g' index.html
sed -i 's/src="\([^:"]*\)"/src="version\/dev\/\1"/g' index.html
sed -i 's/action="search.html"/action="version\/dev\/search.html"/g' index.html
else
echo "Error: The 'index.html' file does not exist." >&2
exit 1
Expand Down

0 comments on commit 228600a

Please sign in to comment.