diff --git a/scripts/build_website.sh b/scripts/build_website.sh index bdc83629..47f2a313 100755 --- a/scripts/build_website.sh +++ b/scripts/build_website.sh @@ -1,11 +1,11 @@ #!/bin/sh -npm run clean-build +#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/ -name "*.md" -exec bash -c 'mv "$1" "${1%.md}"' - '{}' + -find website/fs/ -name "*.json" -exec bash -c 'mv "$1" "${1%.json}"' - '{}' + +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 \ No newline at end of file