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

Commit 621cc4a

Browse files
committed
docs: Get rid of domain in output folder
1 parent 30c1810 commit 621cc4a

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed

docs-new/.env

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,4 @@
1+
SHARE_PROTOCOL=https
2+
SHARE_HOST=notes.eliandoran.me
3+
ROOT_NOTE_ID=4yYHqKbLovVX
14
SHARE_URL=https://notes.eliandoran.me/share/4yYHqKbLovVX

docs-new/prepare.sh

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,11 @@ rm -rf "$output_dir"
88
mkdir -p "$output_dir"
99

1010
source ./.env
11-
wget -rp -e robots=off "$SHARE_URL" -P "$output_dir"
11+
12+
# Download everything in output/notes.example.com/share/...
13+
share_url="$SHARE_PROTOCOL://$SHARE_HOST/share/$ROOT_NOTE_ID"
14+
wget -rp -e robots=off "$share_url" -P "$output_dir"
15+
16+
# Get rid of the domain in the output folder
17+
mv "$output_dir/$SHARE_HOST"/* "$output_dir/"
18+
rmdir "$output_dir/$SHARE_HOST"

0 commit comments

Comments
 (0)