Skip to content

Commit

Permalink
Store logo only in 1 place
Browse files Browse the repository at this point in the history
  • Loading branch information
japborst committed Sep 27, 2022
1 parent c84dae9 commit 2708207
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 27 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<div align="center">
<picture>
<source media="(prefers-color-scheme: dark)" srcset="logo-dark.svg">
<source media="(prefers-color-scheme: light)" srcset="logo.svg">
<img alt="Error Prone Support logo" src="logo.svg" width="50%">
<source media="(prefers-color-scheme: dark)" srcset="website/assets/images/logo-dark.svg">
<source media="(prefers-color-scheme: light)" srcset="website/assets/images/logo.svg">
<img alt="Error Prone Support logo" src="website/assets/images/logo.svg" width="50%">
</picture>
</div>

Expand Down
4 changes: 2 additions & 2 deletions generate-docs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@ EOF
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}
sed $SEDOPTION 's/src="website\//src="/g' ${HOMEPAGE}
sed $SEDOPTION 's/srcset="website\//srcset="/g' ${HOMEPAGE}
}

# Do it
Expand Down
10 changes: 0 additions & 10 deletions logo-dark.svg

This file was deleted.

10 changes: 0 additions & 10 deletions logo.svg

This file was deleted.

2 changes: 1 addition & 1 deletion website/assets/images/logo-dark.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion website/assets/images/logo.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 2708207

Please sign in to comment.