From 0a1a8c5a278f8c520cb3ddf0febb0d23ab89cd72 Mon Sep 17 00:00:00 2001 From: Elian Doran Date: Sat, 20 Jul 2024 12:41:30 +0300 Subject: [PATCH] docs: Deploy to docs folder --- docs-new/index.template.html | 10 ++++++++++ docs-new/prepare.sh | 8 ++++++-- docs-new/preview.sh | 4 ++++ 3 files changed, 20 insertions(+), 2 deletions(-) create mode 100644 docs-new/index.template.html diff --git a/docs-new/index.template.html b/docs-new/index.template.html new file mode 100644 index 000000000..c36a51172 --- /dev/null +++ b/docs-new/index.template.html @@ -0,0 +1,10 @@ + + + + + + + + + + \ No newline at end of file diff --git a/docs-new/prepare.sh b/docs-new/prepare.sh index 09e8e686e..13819e8cb 100755 --- a/docs-new/prepare.sh +++ b/docs-new/prepare.sh @@ -1,11 +1,15 @@ +#!/usr/bin/env bash + if [ ! -f .env ]; then echo "Missing .env file, cannot proceed." exit 1 fi -output_dir="output" -rm -rf "$output_dir" +script_dir=$(realpath $(dirname $0)) +output_dir="$script_dir/../docs" mkdir -p "$output_dir" +rm -f "$output_dir"/* +rm -rf "$output_dir"/{assets,share} source ./.env diff --git a/docs-new/preview.sh b/docs-new/preview.sh index a7860509c..ead04b24d 100755 --- a/docs-new/preview.sh +++ b/docs-new/preview.sh @@ -1 +1,5 @@ +#!/usr/bin/env bash + +script_dir=$(realpath $(dirname $0)) +output_dir="$script_dir/../docs" httpd -fv -p 127.0.0.1:8089 -h output \ No newline at end of file