mirror of
https://github.com/zadam/trilium.git
synced 2025-03-01 14:22:32 +01:00
docs: Always use HTML extensions
This commit is contained in:
parent
4f5fa9f42b
commit
5bcae52d08
@ -1,7 +1,7 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="refresh" content="0; url=./share/{{ROOT_NOTE_ID}}" />
|
||||
<meta http-equiv="refresh" content="0; url=./share/{{ROOT_NOTE_ID}}.html" />
|
||||
</head>
|
||||
|
||||
<body>
|
||||
|
@ -15,18 +15,13 @@ source ./.env
|
||||
|
||||
# Download everything in output/notes.example.com/share/...
|
||||
share_url="$SHARE_PROTOCOL://$SHARE_HOST/share/$ROOT_NOTE_ID"
|
||||
wget -rp -e robots=off "$share_url" -P "$output_dir"
|
||||
wget -rpEk -e robots=off "$share_url" -P "$output_dir"
|
||||
|
||||
# Get rid of the domain in the output folder
|
||||
mv "$output_dir/$SHARE_HOST"/* "$output_dir/"
|
||||
rmdir "$output_dir/$SHARE_HOST"
|
||||
|
||||
# Rename share/* to share/*.html because GitHub Pages will ask the client to download the files otherwise.
|
||||
for file in "$output_dir/share"/*; do
|
||||
mv "$file" "$file.html"
|
||||
done
|
||||
|
||||
# Create home page with redirect
|
||||
index_dest_path="$output_dir/index.html"
|
||||
cp index.template.html "$index_dest_path"
|
||||
sed -i "s/{{ROOT_NOTE_ID}}/$ROOT_NOTE_ID/g" "$index_dest_path"
|
||||
sed -i "s/{{ROOT_NOTE_ID}}/$ROOT_NOTE_ID/g" "$index_dest_path"
|
||||
|
@ -2,4 +2,4 @@
|
||||
|
||||
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_dir"
|
@ -1,7 +1,7 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="refresh" content="0; url=./share/4yYHqKbLovVX" />
|
||||
<meta http-equiv="refresh" content="0; url=./share/4yYHqKbLovVX.html" />
|
||||
</head>
|
||||
|
||||
<body>
|
||||
|
@ -40,12 +40,12 @@
|
||||
<ul>
|
||||
|
||||
<li>
|
||||
<a href="./hkrBX8KE1HQl"
|
||||
<a href="hkrBX8KE1HQl.html"
|
||||
class="type-text">Internationalisation</a>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<a href="./VS22Hq5PBFNf"
|
||||
<a href="VS22Hq5PBFNf.html"
|
||||
class="type-text">Dependency Management</a>
|
||||
</li>
|
||||
|
||||
@ -76,7 +76,7 @@
|
||||
|
||||
|
||||
|
||||
<a class="type-text" href="./hkrBX8KE1HQl">Internationalisation</a>
|
||||
<a class="type-text" href="hkrBX8KE1HQl.html">Internationalisation</a>
|
||||
|
||||
</p>
|
||||
|
||||
@ -90,7 +90,7 @@
|
||||
|
||||
|
||||
|
||||
<a class="type-text" href="./VS22Hq5PBFNf">Dependency Management</a>
|
||||
<a class="type-text" href="VS22Hq5PBFNf.html">Dependency Management</a>
|
||||
|
||||
</p>
|
||||
|
||||
@ -103,7 +103,7 @@
|
||||
|
||||
|
||||
|
||||
<a class="type-text" href="./QXCi6Y1SYulw">Adding a new client library</a>
|
||||
<a class="type-text" href="QXCi6Y1SYulw.html">Adding a new client library</a>
|
||||
|
||||
</p>
|
||||
|
||||
|
@ -27,7 +27,7 @@
|
||||
<div id="main">
|
||||
|
||||
<nav id="parentLink">
|
||||
parent: <a href="VS22Hq5PBFNf"
|
||||
parent: <a href="VS22Hq5PBFNf.html"
|
||||
class="type-text">Dependency Management</a>
|
||||
</nav>
|
||||
|
||||
@ -102,7 +102,7 @@ await library_loader.requireLibrary(library_loader.I18NEXT);</code></pre><p>Make
|
||||
|
||||
|
||||
|
||||
<a class="type-text" href="./4yYHqKbLovVX">Developer's Guide</a>
|
||||
<a class="type-text" href="4yYHqKbLovVX.html">Developer's Guide</a>
|
||||
|
||||
</p>
|
||||
|
||||
@ -115,7 +115,7 @@ await library_loader.requireLibrary(library_loader.I18NEXT);</code></pre><p>Make
|
||||
|
||||
|
||||
|
||||
<a class="type-text" href="./hkrBX8KE1HQl">Internationalisation</a>
|
||||
<a class="type-text" href="hkrBX8KE1HQl.html">Internationalisation</a>
|
||||
|
||||
</p>
|
||||
|
||||
@ -129,7 +129,7 @@ await library_loader.requireLibrary(library_loader.I18NEXT);</code></pre><p>Make
|
||||
|
||||
|
||||
|
||||
<a class="type-text" href="./VS22Hq5PBFNf">Dependency Management</a>
|
||||
<a class="type-text" href="VS22Hq5PBFNf.html">Dependency Management</a>
|
||||
|
||||
</p>
|
||||
|
||||
|
@ -27,7 +27,7 @@
|
||||
<div id="main">
|
||||
|
||||
<nav id="parentLink">
|
||||
parent: <a href="4yYHqKbLovVX"
|
||||
parent: <a href="4yYHqKbLovVX.html"
|
||||
class="type-text">Developer's Guide</a>
|
||||
</nav>
|
||||
|
||||
@ -45,7 +45,7 @@
|
||||
<ul>
|
||||
|
||||
<li>
|
||||
<a href="./QXCi6Y1SYulw"
|
||||
<a href="QXCi6Y1SYulw.html"
|
||||
class="type-text">Adding a new client library</a>
|
||||
</li>
|
||||
|
||||
@ -63,7 +63,7 @@
|
||||
|
||||
|
||||
|
||||
<a class="type-text" href="./4yYHqKbLovVX">Developer's Guide</a>
|
||||
<a class="type-text" href="4yYHqKbLovVX.html">Developer's Guide</a>
|
||||
|
||||
</p>
|
||||
|
||||
@ -76,7 +76,7 @@
|
||||
|
||||
|
||||
|
||||
<a class="type-text" href="./hkrBX8KE1HQl">Internationalisation</a>
|
||||
<a class="type-text" href="hkrBX8KE1HQl.html">Internationalisation</a>
|
||||
|
||||
</p>
|
||||
|
||||
@ -103,7 +103,7 @@
|
||||
|
||||
|
||||
|
||||
<a class="type-text" href="./QXCi6Y1SYulw">Adding a new client library</a>
|
||||
<a class="type-text" href="QXCi6Y1SYulw.html">Adding a new client library</a>
|
||||
|
||||
</p>
|
||||
|
||||
|
@ -27,7 +27,7 @@
|
||||
<div id="main">
|
||||
|
||||
<nav id="parentLink">
|
||||
parent: <a href="4yYHqKbLovVX"
|
||||
parent: <a href="4yYHqKbLovVX.html"
|
||||
class="type-text">Developer's Guide</a>
|
||||
</nav>
|
||||
|
||||
@ -58,7 +58,7 @@
|
||||
|
||||
|
||||
|
||||
<a class="type-text" href="./4yYHqKbLovVX">Developer's Guide</a>
|
||||
<a class="type-text" href="4yYHqKbLovVX.html">Developer's Guide</a>
|
||||
|
||||
</p>
|
||||
|
||||
@ -85,7 +85,7 @@
|
||||
|
||||
|
||||
|
||||
<a class="type-text" href="./VS22Hq5PBFNf">Dependency Management</a>
|
||||
<a class="type-text" href="VS22Hq5PBFNf.html">Dependency Management</a>
|
||||
|
||||
</p>
|
||||
|
||||
@ -98,7 +98,7 @@
|
||||
|
||||
|
||||
|
||||
<a class="type-text" href="./QXCi6Y1SYulw">Adding a new client library</a>
|
||||
<a class="type-text" href="QXCi6Y1SYulw.html">Adding a new client library</a>
|
||||
|
||||
</p>
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user