docs: Deploy to docs folder

This commit is contained in:
Elian Doran 2024-07-20 12:41:30 +03:00
parent 5db499cf56
commit 0a1a8c5a27
No known key found for this signature in database
3 changed files with 20 additions and 2 deletions

View File

@ -0,0 +1,10 @@
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="refresh" content="0; url=./share/{{ROOT_NOTE_ID}}" />
</head>
<body>
</body>
</html>

View File

@ -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

View File

@ -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