Skip to content

Commit

Permalink
fix: links redirect to search js for the landing page (#536)
Browse files Browse the repository at this point in the history
Co-authored-by: Jorge Martínez <[email protected]>
  • Loading branch information
Revathyvenugopal162 and jorgepiloto committed Aug 8, 2024
1 parent 3581c1e commit 1f502bc
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 @@ -279,11 +279,13 @@ runs:
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
sed -i 's|script\.src = ".*_static/js/meilisearch_theme_wrap\.js"|script.src = "version/stable/_static/js/meilisearch_theme_wrap.js"|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
sed -i 's|script\.src = ".*_static/js/meilisearch_theme_wrap\.js"|script.src = "version/stable/_static/js/meilisearch_theme_wrap.js"|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 @@ -447,11 +447,13 @@ runs:
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
sed -i 's|script\.src = ".*_static/js/meilisearch_theme_wrap\.js"|script.src = "version/stable/_static/js/meilisearch_theme_wrap.js"|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
sed -i 's|script\.src = ".*_static/js/meilisearch_theme_wrap\.js"|script.src = "version/stable/_static/js/meilisearch_theme_wrap.js"|g' index.html
else
echo "Error: The 'index.html' file does not exist." >&2
exit 1
Expand Down

0 comments on commit 1f502bc

Please sign in to comment.