diff --git a/generate-docs.sh b/generate-docs.sh index a7eba6274be..38912056276 100755 --- a/generate-docs.sh +++ b/generate-docs.sh @@ -29,8 +29,13 @@ nav_order: 1 EOF cat "README.md" >> ${HOMEPAGE} - sed -i '' 's/src="/src="assets\/images\//g' ${HOMEPAGE} - sed -i '' 's/srcset="/srcset="assets\/images\//g' ${HOMEPAGE} + + SEDOPTION="-i" + if [[ "$OSTYPE" == "darwin"* ]]; then + SEDOPTION="-i .bak" + fi + sed $SEDOPTION 's/src="/src="assets\/images\//g' ${HOMEPAGE} + sed $SEDOPTION 's/srcset="/srcset="assets\/images\//g' ${HOMEPAGE} } generate_bugpattern_docs() { diff --git a/website/.gitignore b/website/.gitignore index 6443883887c..a38a85bc590 100644 --- a/website/.gitignore +++ b/website/.gitignore @@ -4,6 +4,7 @@ Gemfile.lock _site/ # Generated content +*.bak index.md bugpatterns/ refastertemplates/