Skip to content

Commit

Permalink
script update
Browse files Browse the repository at this point in the history
  • Loading branch information
russbiggs committed Oct 2, 2024
1 parent d838fba commit 61ce3bc
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion mkdocs.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
site_name: OpenAQ Python SDK

site_url: https://python.openaq.org
repo_url: https://github.com/openaq/openaq-python
repo_name: openaq/openaq-python

Expand Down
4 changes: 2 additions & 2 deletions scripts/plausible.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ find "$SEARCH_DIR" -type f -name "*.html" | while read -r html_file; do
if grep -q "$OLD_STRING" "$html_file"; then
echo "Updating $html_file"

sed -i "s|$OLD_STRING|$NEW_STRING|g" "$html_file"
sed -i "s|src=\"\([^\"']*\)$OLD_STRING|src=\"$NEW_STRING|g" "$html_file"

sed -i "/<script[^>]*src=\"${NEW_STRING}\"/i $PRECONNECT_LINK" "$html_file"
sed -i "/<script[^>]*src=\"$NEW_STRING\"/i $PRECONNECT_LINK" "$html_file"
fi
done

0 comments on commit 61ce3bc

Please sign in to comment.