diff --git a/doc-deploy-dev/action.yml b/doc-deploy-dev/action.yml index 93bc2b45..fe2f0b96 100644 --- a/doc-deploy-dev/action.yml +++ b/doc-deploy-dev/action.yml @@ -306,7 +306,7 @@ runs: 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 - sed -i 's|var searchPath = ".*_static/search.json";|var searchPath = "version/stable/_static/search.json";|g' index.html + sed -i 's|var SEARCH_FILE = ".*_static/search.json";|var SEARCH_FILE = "version/stable/_static/search.json";|g' index.html sed -i 's|||g' index.html elif [[ -f 'version/dev/index.html' ]]; then cp version/dev/index.html index.html @@ -314,7 +314,7 @@ runs: 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/dev/_static/js/meilisearch_theme_wrap.js"|g' index.html - sed -i 's|var searchPath = ".*_static/search.json";|var searchPath = "version/dev/_static/search.json";|g' index.html + sed -i 's|var SEARCH_FILE = ".*_static/search.json";|var SEARCH_FILE = "version/dev/_static/search.json";|g' index.html sed -i 's|||g' index.html else echo "Error: The 'index.html' file does not exist." >&2 diff --git a/doc-deploy-stable/action.yml b/doc-deploy-stable/action.yml index 3db8baa7..ff3fce45 100644 --- a/doc-deploy-stable/action.yml +++ b/doc-deploy-stable/action.yml @@ -478,7 +478,7 @@ runs: 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 - sed -i 's|var searchPath = ".*_static/search.json";|var searchPath = "version/stable/_static/search.json";|g' index.html + sed -i 's|var SEARCH_FILE = ".*_static/search.json";|var SEARCH_FILE = "version/stable/_static/search.json";|g' index.html sed -i 's|||g' index.html else echo "Error: The 'index.html' file does not exist." >&2