From b07ef3c39c534f8312344399a4cd7a4164196dc6 Mon Sep 17 00:00:00 2001 From: RGBCube Date: Sun, 7 May 2023 00:50:31 +0300 Subject: [PATCH] Make it work --- .gitignore | 2 ++ build.sh | 4 +++- build/src/discord-embed-metadata.html | 5 +++++ build/src/index.html | 11 +++++++++++ index.html | 4 ---- src/discord-embed-metadata.html | 5 +++++ src/index.html | 7 +++++++ 7 files changed, 33 insertions(+), 5 deletions(-) create mode 100644 build/src/discord-embed-metadata.html create mode 100644 build/src/index.html delete mode 100644 index.html create mode 100644 src/discord-embed-metadata.html create mode 100644 src/index.html diff --git a/.gitignore b/.gitignore index e45b931..1dd1939 100644 --- a/.gitignore +++ b/.gitignore @@ -1,5 +1,7 @@ * +!src/ + !.gitignore !*.html diff --git a/build.sh b/build.sh index 2bda9a0..3a7d088 100755 --- a/build.sh +++ b/build.sh @@ -8,5 +8,7 @@ rm -rf ./build mkdir ./build for html_file in $(find -name "*.html"); do - sed "/^#/d" <(process $html_file) > ./build/${html_file#./} + path=./build/${html_file#./} + mkdir $(dirname $path) 2> /dev/null + sed "/^#/d" <(process $html_file) > $path done diff --git a/build/src/discord-embed-metadata.html b/build/src/discord-embed-metadata.html new file mode 100644 index 0000000..4bc22b0 --- /dev/null +++ b/build/src/discord-embed-metadata.html @@ -0,0 +1,5 @@ + + + + + diff --git a/build/src/index.html b/build/src/index.html new file mode 100644 index 0000000..189a1f7 --- /dev/null +++ b/build/src/index.html @@ -0,0 +1,11 @@ + + + + My Site + + + + + + + diff --git a/index.html b/index.html deleted file mode 100644 index 867ef29..0000000 --- a/index.html +++ /dev/null @@ -1,4 +0,0 @@ - - - - diff --git a/src/discord-embed-metadata.html b/src/discord-embed-metadata.html new file mode 100644 index 0000000..4bc22b0 --- /dev/null +++ b/src/discord-embed-metadata.html @@ -0,0 +1,5 @@ + + + + + diff --git a/src/index.html b/src/index.html new file mode 100644 index 0000000..e0833c9 --- /dev/null +++ b/src/index.html @@ -0,0 +1,7 @@ + + + + My Site + #include "src/discord-embed-metadata.html" + +