Skip to content
This repository was archived by the owner on Jun 24, 2025. It is now read-only.

Commit 0a1a8c5

Browse files
committed
docs: Deploy to docs folder
1 parent 5db499c commit 0a1a8c5

File tree

3 files changed

+20
-2
lines changed

3 files changed

+20
-2
lines changed

docs-new/index.template.html

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
<!DOCTYPE html>
2+
<html>
3+
<head>
4+
<meta http-equiv="refresh" content="0; url=./share/{{ROOT_NOTE_ID}}" />
5+
</head>
6+
7+
<body>
8+
9+
</body>
10+
</html>

docs-new/prepare.sh

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,15 @@
1+
#!/usr/bin/env bash
2+
13
if [ ! -f .env ]; then
24
echo "Missing .env file, cannot proceed."
35
exit 1
46
fi
57

6-
output_dir="output"
7-
rm -rf "$output_dir"
8+
script_dir=$(realpath $(dirname $0))
9+
output_dir="$script_dir/../docs"
810
mkdir -p "$output_dir"
11+
rm -f "$output_dir"/*
12+
rm -rf "$output_dir"/{assets,share}
913

1014
source ./.env
1115

docs-new/preview.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,5 @@
1+
#!/usr/bin/env bash
2+
3+
script_dir=$(realpath $(dirname $0))
4+
output_dir="$script_dir/../docs"
15
httpd -fv -p 127.0.0.1:8089 -h output

0 commit comments

Comments
 (0)