Build your personal knowledge base with Trilium Notes
TypeScript electronelectron-appknowledge-baseknowledge-graphknowledge-managementknowledge-management-graphlocal-firstnote-managmentnote-takernote-takingnotebooknotesnotes-apppersonal-knowledge-basepersonal-wikiscriptableself-hostedself-hostingwiki
docs: Always use HTML extensions
Elian Doran5bcae52d081a
diff --git a/docs-new/index.template.html b/docs-new/index.template.htmlindex c36a511726..c37cb1c986 100644--- a/docs-new/index.template.html+++ b/docs-new/index.template.html@@ -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>diff --git a/docs-new/prepare.sh b/docs-new/prepare.shindex e791434ed2..91a520520a 100755--- a/docs-new/prepare.sh+++ b/docs-new/prepare.sh@@ -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 foldermv "$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 redirectindex_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"\ No newline at end of file+sed -i "s/{{ROOT_NOTE_ID}}/$ROOT_NOTE_ID/g" "$index_dest_path"diff --git a/docs-new/preview.sh b/docs-new/preview.shindex ead04b24d8..507dec3fc8 100755--- a/docs-new/preview.sh+++ b/docs-new/preview.sh@@ -2,4 +2,4 @@script_dir=$(realpath $(dirname $0))output_dir="$script_dir/../docs"-httpd -fv -p 127.0.0.1:8089 -h output\ No newline at end of file+httpd -fv -p 127.0.0.1:8089 -h "$output_dir"\ No newline at end of filediff --git a/docs/index.html b/docs/index.htmlindex 974b29b473..525ed208ce 100644--- a/docs/index.html+++ b/docs/index.html@@ -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>diff --git a/docs/share/4yYHqKbLovVX.html b/docs/share/4yYHqKbLovVX.htmlindex 40fbd79e44..c9bc4b6efe 100644--- a/docs/share/4yYHqKbLovVX.html+++ b/docs/share/4yYHqKbLovVX.html@@ -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>diff --git a/docs/share/QXCi6Y1SYulw.html b/docs/share/QXCi6Y1SYulw.htmlindex 22caad28fc..636aac31d9 100644--- a/docs/share/QXCi6Y1SYulw.html+++ b/docs/share/QXCi6Y1SYulw.html@@ -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>diff --git a/docs/share/VS22Hq5PBFNf.html b/docs/share/VS22Hq5PBFNf.htmlindex cf656981ea..2b838932e4 100644--- a/docs/share/VS22Hq5PBFNf.html+++ b/docs/share/VS22Hq5PBFNf.html@@ -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>diff --git a/docs/share/hkrBX8KE1HQl.html b/docs/share/hkrBX8KE1HQl.htmlindex 3cd51c05f3..b1ed0e7aad 100644--- a/docs/share/hkrBX8KE1HQl.html+++ b/docs/share/hkrBX8KE1HQl.html@@ -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>