Change transparent .svg to opaque .png (#11084)

Co-authored-by: publish-docs.sh <maintainers@solana.com>
This commit is contained in:
Dan Albert 2020-07-15 15:35:18 -06:00 committed by GitHub
parent d8d87d5d02
commit fe71f9ad1a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 6 additions and 5 deletions

1
docs/.gitignore vendored
View File

@ -9,6 +9,7 @@
.cache-loader
.vercel
/static/img/*.svg
/static/img/*.png
vercel.json
# Misc

View File

@ -11,11 +11,11 @@ output_dir=static/img
mkdir -p "$output_dir"
while read -r bob_file; do
svg_file=$(basename "${bob_file%.*}".svg)
svgbob "$bob_file" --output "$output_dir/$svg_file"
out_file=$(basename "${bob_file%.*}".svg)
svgbob "$bob_file" --output "$output_dir/$out_file"
done < <(find art/*.bob)
while read -r msc_file; do
svg_file=$(basename "${msc_file%.*}".svg)
mscgen -T svg -o "$output_dir/$svg_file" -i "$msc_file"
out_file=$(basename "${msc_file%.*}".png)
mscgen -T png -o "$output_dir/$out_file" -i "$msc_file"
done < <(find art/*.msc)

View File

@ -126,7 +126,7 @@ Lamports build up over time in a Stake account and any excess over activated sta
## Example Callflow
![Passive Staking Callflow](/img/passive-staking-callflow.svg)
![Passive Staking Callflow](/img/passive-staking-callflow.png)
## Staking Rewards