1
1
mirror of https://github.com/rsms/inter.git synced 2024-11-29 14:34:53 +03:00
inter/docs/_scripts/serve.sh
Rasmus 0796076659
UPM 2048 and opsz axis (#462)
- UPM is adjusted to 2048
- Additional opsz VF axis (multi master) added which will eventually replace the separate Display family
- New tooling that uses fontmake instead of Inter's own fontbuild toolchain. (The old toolchain is still supported, i.e. `make -f Makefile_v1.make ...`)
2022-05-26 11:20:06 -07:00

31 lines
788 B
Bash
Executable File

#!/bin/sh
set -e
cd "$(dirname "$0")/.."
if [ "$1" = "-h" ]; then
echo "usage: $0 [<bindaddr>]" >&2
exit 1
fi
BINDADDR=${1:-127.0.0.1}
if [ ! -s lab/fonts ]; then
rm -f lab/fonts
ln -fs ../../build/fonts lab/fonts
fi
# need to delete generated content so that jekyll, being a little dumb,
# can manage to copy the font files into there again.
# Why not a symlink you ask? Jekyll traverses it and copies the content.
# In the past we tried to work around this by periodically removing the
# copied font files and re-creating the symlink, but it was a frail process.
# For live testing with fonts, you'll instead want to use docs/lab/serve.py
rm -rf _site
bundle exec jekyll serve \
--watch \
--host "$BINDADDR" \
--port 3002 \
--livereload \
--livereload-port 30002