diff --git a/doc-deploy-dev/action.yml b/doc-deploy-dev/action.yml index d29a5dbda..876f16f06 100644 --- a/doc-deploy-dev/action.yml +++ b/doc-deploy-dev/action.yml @@ -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 diff --git a/doc-deploy-stable/action.yml b/doc-deploy-stable/action.yml index 2aa239dab..183378d53 100644 --- a/doc-deploy-stable/action.yml +++ b/doc-deploy-stable/action.yml @@ -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