2022-06-12 19:42:15 +01:00
|
|
|
#!/usr/bin/env bash
|
2022-06-12 17:21:46 +01:00
|
|
|
|
|
|
|
set -e
|
|
|
|
|
|
|
|
# Make sure we're in the root of the project
|
|
|
|
cd $(dirname $0)/..
|
|
|
|
|
|
|
|
CONTRIB_DIR=$PWD/static/build/contrib
|
|
|
|
|
2022-06-12 19:40:18 +01:00
|
|
|
rm -rf $CONTRIB_DIR
|
2022-06-12 17:21:46 +01:00
|
|
|
mkdir -p $CONTRIB_DIR
|
|
|
|
|
|
|
|
mkcontrib() {
|
|
|
|
mkdir -p $CONTRIB_DIR/$1
|
|
|
|
cp -r "${@:2}" $CONTRIB_DIR/$1/
|
|
|
|
}
|
|
|
|
|
|
|
|
mkcontrib fontawesome node_modules/@fortawesome/fontawesome-free/{css,webfonts}
|
2022-06-20 08:46:42 +01:00
|
|
|
mkcontrib elevator-js node_modules/elevator.js/demo/music/*
|
2022-07-04 20:06:04 +01:00
|
|
|
mkcontrib shareon node_modules/shareon/dist/{shareon.iife.*,shareon.min.css*}
|
2022-09-29 21:05:19 +01:00
|
|
|
mkcontrib fira-code node_modules/@fontsource/fira-code/latin.css
|
|
|
|
mkcontrib fira-code/files node_modules/@fontsource/fira-code/files/fira-code-latin-*
|
2023-06-13 14:34:10 +01:00
|
|
|
|
2023-07-16 14:30:08 +01:00
|
|
|
curl -sf -L https://raw.githubusercontent.com/genmon/aboutfeeds/main/tools/pretty-feed-v3.xsl -o $CONTRIB_DIR/pretty-feed-v3.xsl
|
|
|
|
|
2023-06-13 14:34:10 +01:00
|
|
|
# HACK: Make sure Google lighthouse can tell we're using `font-display: swap`
|
|
|
|
find $CONTRIB_DIR/fira-code -type f -exec sed -i 's/var(--fontsource-display, swap)/swap/g' {} \;
|