silverbullet/scripts/build_website.sh

11 lines
373 B
Bash
Executable File

#!/bin/sh
#npm run clean-build
rm -rf website
mkdir -p website/fs
cp -r packages/web/dist/* website/
cp _redirects website/
cp -r docs/* website/fs/
find website/fs/ -depth -name "*.md" -exec sh -c 'mv "$1" "${1%.md}"' _ {} \;
find website/fs/ -depth -name "*.plug.json" -exec sh -c 'mv "$1" "${1%.plug.json}"' _ {} \;
node scripts/generate_fs_list.js > website/index.json