mirror of
https://github.com/zadam/trilium.git
synced 2025-03-01 14:22:32 +01:00
docs: Set up basic download script
This commit is contained in:
parent
a71a53de97
commit
30c1810211
1
docs-new/.env
Normal file
1
docs-new/.env
Normal file
@ -0,0 +1 @@
|
||||
SHARE_URL=https://notes.eliandoran.me/share/4yYHqKbLovVX
|
1
docs-new/.env.example
Normal file
1
docs-new/.env.example
Normal file
@ -0,0 +1 @@
|
||||
SHARE_URL=https://notes.example.com/share/4yYHqKbLovVY
|
1
docs-new/.gitignore
vendored
Normal file
1
docs-new/.gitignore
vendored
Normal file
@ -0,0 +1 @@
|
||||
output
|
11
docs-new/prepare.sh
Executable file
11
docs-new/prepare.sh
Executable file
@ -0,0 +1,11 @@
|
||||
if [ ! -f .env ]; then
|
||||
echo "Missing .env file, cannot proceed."
|
||||
exit 1
|
||||
fi
|
||||
|
||||
output_dir="output"
|
||||
rm -rf "$output_dir"
|
||||
mkdir -p "$output_dir"
|
||||
|
||||
source ./.env
|
||||
wget -rp -e robots=off "$SHARE_URL" -P "$output_dir"
|
Loading…
x
Reference in New Issue
Block a user