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

Commit 30c1810

Browse files
committed
docs: Set up basic download script
1 parent a71a53d commit 30c1810

File tree

4 files changed

+14
-0
lines changed

4 files changed

+14
-0
lines changed

docs-new/.env

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
SHARE_URL=https://notes.eliandoran.me/share/4yYHqKbLovVX

docs-new/.env.example

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
SHARE_URL=https://notes.example.com/share/4yYHqKbLovVY

docs-new/.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
output

docs-new/prepare.sh

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
if [ ! -f .env ]; then
2+
echo "Missing .env file, cannot proceed."
3+
exit 1
4+
fi
5+
6+
output_dir="output"
7+
rm -rf "$output_dir"
8+
mkdir -p "$output_dir"
9+
10+
source ./.env
11+
wget -rp -e robots=off "$SHARE_URL" -P "$output_dir"

0 commit comments

Comments
 (0)