docs: Add some more documentation

This commit is contained in:
Elian Doran
2024-07-27 23:49:56 +03:00
parent d9d8fff249
commit 32dc064ffa
49 changed files with 25599 additions and 193 deletions

4
bin/docs/prepare.sh Normal file → Executable file
View File

@@ -21,6 +21,10 @@ source "$env_file"
# Download everything in output/notes.example.com/share/...
share_url="$SHARE_PROTOCOL://$SHARE_HOST/share/$ROOT_NOTE_ID"
wget -rpEk -e robots=off "$share_url" -P "$output_dir"
if [ $? -ne 0 ]; then
echo -e \\nDownloading failed, make sure you are using the real wget package and not the busybox one.
exit 1
fi
# Get rid of the domain in the output folder
mv "$output_dir/$SHARE_HOST"/* "$output_dir/"