Skip to content

Commit

Permalink
add a sed to the landing
Browse files Browse the repository at this point in the history
  • Loading branch information
dovholuknf committed Oct 2, 2023
1 parent d2fb1dc commit 66c8e5e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions gendoc.sh
Original file line number Diff line number Diff line change
Expand Up @@ -186,6 +186,9 @@ if test -e "${script_root}/docusaurus/build/landing.html"; then
echo "landing.html detected. overwriting index.html with landing.html"
cp "${script_root}/docusaurus/build/index.html" "${script_root}/docusaurus/build/index.original.html"
cp "${script_root}/docusaurus/build/landing.html" "${script_root}/docusaurus/build/index.html"
echo sed -i 's/<.*class="custom-logo-link"/<a href=\"\/\" class="custom-logo-link"/g' "${script_root}/docusaurus/build/index.html"
sed -i 's/<.*class="custom-logo-link"/<a href=\"\/\" class="custom-logo-link"/g' "${script_root}/docusaurus/build/index.html"
echo "landing.html replaced href"
echo "landing.html overwritten to index.html. index.html is now index.original.html"
fi

Expand Down

0 comments on commit 66c8e5e

Please sign in to comment.