From 5c6145a214d3776e50dce26cc8d444389a5f0894 Mon Sep 17 00:00:00 2001 From: Zef Hemel Date: Fri, 15 Jul 2022 11:36:11 +0200 Subject: [PATCH] Attempt to build netlify website --- .gitignore | 3 ++- _redirects | 3 +++ netlify.toml | 3 +++ scripts/build_website.sh | 6 ++++++ 4 files changed, 14 insertions(+), 1 deletion(-) create mode 100644 _redirects create mode 100644 netlify.toml create mode 100755 scripts/build_website.sh diff --git a/.gitignore b/.gitignore index 33ba7b1d..d5af006a 100644 --- a/.gitignore +++ b/.gitignore @@ -9,4 +9,5 @@ generated .yarnrc.yml *.test.js *.js.map -.vscode \ No newline at end of file +.vscode +website \ No newline at end of file diff --git a/_redirects b/_redirects new file mode 100644 index 00000000..9b2c22f6 --- /dev/null +++ b/_redirects @@ -0,0 +1,3 @@ +/fs /index.json 200 +/fs/* /fs/:spat.md +/* /index.html 200 \ No newline at end of file diff --git a/netlify.toml b/netlify.toml new file mode 100644 index 00000000..81278f55 --- /dev/null +++ b/netlify.toml @@ -0,0 +1,3 @@ +[build] +publish = "website" +command = "./scripts/build_website.sh" \ No newline at end of file diff --git a/scripts/build_website.sh b/scripts/build_website.sh new file mode 100755 index 00000000..0e4bf787 --- /dev/null +++ b/scripts/build_website.sh @@ -0,0 +1,6 @@ +#!/bin/sh + +rm -rf website +mkdir -p website/fs +cp -r packages/web/dist/* website/ +cp -r docs/* website/fs/ \ No newline at end of file