Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs: Update screengrabs #440

Merged
merged 2 commits into from
Aug 7, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion meta/caption-4
Original file line number Diff line number Diff line change
@@ -1 +1 @@
A developer tools panel lists the landmarks and provides buttons you can use to inspect them in the DOM.
A DevTools pane lets you inspect the landmarks, and provides best practice warnings.
1 change: 0 additions & 1 deletion meta/caption-5

This file was deleted.

Binary file modified meta/chrome-1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified meta/chrome-2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified meta/chrome-4.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed meta/chrome-5.png
Binary file not shown.
Binary file modified meta/edge-1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified meta/edge-2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified meta/edge-4.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed meta/edge-5.png
Binary file not shown.
Binary file modified meta/firefox-1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified meta/firefox-2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified meta/firefox-3.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified meta/firefox-4.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed meta/firefox-5.png
Binary file not shown.
23 changes: 14 additions & 9 deletions meta/resize.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,19 +6,24 @@ chromeBackgroundColour='rgb(250,250,250)'
operaBackgroundColor='rgb(237,237,237)'
edgeBackgroundColour='rgb(250,250,250)'

function resize() {
resize() {
browser=$1
size=$2
background=$3
echo $browser $size $background...
for image in meta/$browser-*.png; do
echo $image...
base=`basename $image`
convert -format png +repage -background $background -transparent orange -resize $size -gravity center -extent $size $image meta/out-$base
echo "$browser $size $background..."
for image in meta/"$browser"-*.png; do
echo "$image..."
base=$(basename "$image")
convert -format png +repage -background "$background" -transparent orange -resize "$size" -gravity center -extent "$size" "$image" meta/out-"$base"
done
echo
}

resize 'chrome' $chromeSize $chromeBackgroundColour
resize 'opera' $operaSize $operaBackgroundColor
resize 'edge' $edgeSize $edgeBackgroundColour
if [ ! -x "$(which convert)" ]; then
echo "The ImageMagick 'convert' command can't be found; exiting."
exit 42
else
resize 'chrome' $chromeSize $chromeBackgroundColour
resize 'opera' $operaSize $operaBackgroundColor
resize 'edge' $edgeSize $edgeBackgroundColour
fi
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"clean:builds": "node scripts/build.js --browser all --clean-only",
"preprofile": "node scripts/build.js --pre-process",
"profile": "node scripts/profile.js",
"start:_core": "web-ext run --start-url http://matatk.agrip.org.uk/landmarks/world-of-wombats/",
"start:_core": "web-ext --no-config-discovery run --start-url https://matatk.agrip.org.uk/landmarks/world-of-wombats/",
"start:chrome": "npm run start:_core -- --source-dir build/chrome --target chromium",
"start:edge": "npm run start:_core -- --source-dir build/edge --target chromium --chromium-binary '/Applications/Microsoft Edge.app/Contents/MacOS/Microsoft Edge'",
"start:firefox": "npm run start:_core -- --source-dir build/firefox",
Expand Down