diff --git a/_redirects b/_redirects index 9b2c22f6..e01e0a82 100644 --- a/_redirects +++ b/_redirects @@ -1,3 +1,2 @@ /fs /index.json 200 -/fs/* /fs/:spat.md /* /index.html 200 \ No newline at end of file diff --git a/scripts/build_website.sh b/scripts/build_website.sh index a2bcd024..bdc83629 100755 --- a/scripts/build_website.sh +++ b/scripts/build_website.sh @@ -6,4 +6,6 @@ mkdir -p website/fs cp -r packages/web/dist/* website/ cp _redirects website/ cp -r docs/* website/fs/ -node scripts/generate_fs_list.js > website/fs/index.json \ No newline at end of file +find website/fs/ -name "*.md" -exec bash -c 'mv "$1" "${1%.md}"' - '{}' + +find website/fs/ -name "*.json" -exec bash -c 'mv "$1" "${1%.json}"' - '{}' + +node scripts/generate_fs_list.js > website/index.json \ No newline at end of file