* Move v1.2 to docusaurus * Fixup travis conifg Co-authored-by: publish-docs.sh <maintainers@solana.com>
This commit is contained in:
21
docs/convert-ascii-to-svg.sh
Executable file
21
docs/convert-ascii-to-svg.sh
Executable file
@@ -0,0 +1,21 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
# Convert .bob and .msc files in docs/art to .svg files located where the
|
||||
# site build will find them.
|
||||
|
||||
set -e
|
||||
|
||||
cd "$(dirname "$0")"
|
||||
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"
|
||||
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"
|
||||
done < <(find art/*.msc)
|
Reference in New Issue
Block a user