From 026aa3fa8bfc19c9edad61ae280400ca0a9926b9 Mon Sep 17 00:00:00 2001 From: Zef Hemel Date: Fri, 15 Jul 2022 12:00:30 +0200 Subject: [PATCH] Build --- _redirects | 1 - scripts/build_website.sh | 4 +++- 2 files changed, 3 insertions(+), 2 deletions(-) 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