diff options
author | Rasmus Andersson <rasmus@notion.se> | 2018-09-04 02:05:20 +0300 |
---|---|---|
committer | Rasmus Andersson <rasmus@notion.se> | 2018-09-04 02:05:20 +0300 |
commit | 6785f6ea1cb049c2899ba8db602fe466c8b2e2a5 (patch) | |
tree | 2ef9d4274cee9fbde273858165af8608b890fb64 /docs/_scripts/serve.sh | |
parent | fa601adc318a268e124080f5f798a8a462c1ccb1 (diff) | |
download | inter-6785f6ea1cb049c2899ba8db602fe466c8b2e2a5.tar.xz |
web: fix serve script
Diffstat (limited to 'docs/_scripts/serve.sh')
-rwxr-xr-x | docs/_scripts/serve.sh | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/docs/_scripts/serve.sh b/docs/_scripts/serve.sh index 1762fa44c..ed795542a 100755 --- a/docs/_scripts/serve.sh +++ b/docs/_scripts/serve.sh @@ -2,12 +2,13 @@ set -e cd "$(dirname "$0")/.." -if [ ! -s lab/fonts ]; then - ln -s ../../build/dist-unhinted lab/fonts +if [ ! -d lab/fonts ]; then + ln -fs ../../build/unhinted lab/fonts fi # jekyll is a little dumb and resolves the lab/fonts symlink and copies -# all font files to _site when started. Fix that. Bad jekyll! +# all font files to _site when started. Bad jekyll. +# Let's work around that. # # Step 1/2: remove any previous symlink, or jekyll crashes rm -rf _site/lab/fonts @@ -18,7 +19,7 @@ N=3 while [ \$N -gt 0 ]; do sleep 1 rm -rf _site/lab/fonts - ln -s ../../../build/dist-unhinted _site/lab/fonts + ln -fs ../../../build/unhinted _site/lab/fonts let N=N-1 done _EOF_ |