mirror of
https://github.com/zadam/trilium.git
synced 2025-06-06 18:08:33 +02:00
docs: Deploy to docs folder
This commit is contained in:
parent
5db499cf56
commit
0a1a8c5a27
10
docs-new/index.template.html
Normal file
10
docs-new/index.template.html
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
<!DOCTYPE html>
|
||||||
|
<html>
|
||||||
|
<head>
|
||||||
|
<meta http-equiv="refresh" content="0; url=./share/{{ROOT_NOTE_ID}}" />
|
||||||
|
</head>
|
||||||
|
|
||||||
|
<body>
|
||||||
|
|
||||||
|
</body>
|
||||||
|
</html>
|
@ -1,11 +1,15 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
if [ ! -f .env ]; then
|
if [ ! -f .env ]; then
|
||||||
echo "Missing .env file, cannot proceed."
|
echo "Missing .env file, cannot proceed."
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
output_dir="output"
|
script_dir=$(realpath $(dirname $0))
|
||||||
rm -rf "$output_dir"
|
output_dir="$script_dir/../docs"
|
||||||
mkdir -p "$output_dir"
|
mkdir -p "$output_dir"
|
||||||
|
rm -f "$output_dir"/*
|
||||||
|
rm -rf "$output_dir"/{assets,share}
|
||||||
|
|
||||||
source ./.env
|
source ./.env
|
||||||
|
|
||||||
|
@ -1 +1,5 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
script_dir=$(realpath $(dirname $0))
|
||||||
|
output_dir="$script_dir/../docs"
|
||||||
httpd -fv -p 127.0.0.1:8089 -h output
|
httpd -fv -p 127.0.0.1:8089 -h output
|
Loading…
x
Reference in New Issue
Block a user