Skip to content

Build your personal knowledge base with Trilium Notes

fix(demo): convert to LF & add link to include note function

Elian Doran320439333df6
diff --git a/db/demo.zip b/db/demo.zip
index 74d4e8c324..b44f44fb46 100644
Binary files a/db/demo.zip and b/db/demo.zip differ
diff --git a/demo/!!!meta.json b/demo/!!!meta.json
index f3d4a363ea..4899c46062 100644
--- a/demo/!!!meta.json
+++ b/demo/!!!meta.json
@@ -147,7 +147,7 @@
"title": "Inbox",
"notePosition": 10,
"prefix": null,
- "isExpanded": false,
+ "isExpanded": true,
"type": "text",
"mime": "text/html",
"attributes": [
@@ -219,7 +219,22 @@
"isExpanded": false,
"type": "text",
"mime": "text/html",
- "attributes": [],
+ "attributes": [
+ {
+ "type": "relation",
+ "name": "includeNoteLink",
+ "value": "ZWCYra81yOFO",
+ "isInheritable": false,
+ "position": 10
+ },
+ {
+ "type": "relation",
+ "name": "internalLink",
+ "value": "_help_nBAXQFj20hS1",
+ "isInheritable": false,
+ "position": 20
+ }
+ ],
"format": "html",
"dataFileName": "The Last Question.html",
"attachments": [],
diff --git a/demo/root/Trilium Demo.html b/demo/root/Trilium Demo.html
index cd12b4bd1b..59ef348b70 100644
--- a/demo/root/Trilium Demo.html
+++ b/demo/root/Trilium Demo.html
@@ -18,22 +18,28 @@
height="150">
</figure>
<p><strong>Welcome to TriliumNext Notes!</strong>
+
</p>
<p>This is initial "demo" document provided by TriliumNext by default to
showcase some of its features and also give you some ideas how you might
structure your notes. You can play with it, modify note content and tree
structure as you wish.</p>
<p>If you need any help, visit TriliumNext website: <a href="https://github.com/TriliumNext">https://github.com/TriliumNext</a>
+
</p>
- <h3>Cleanup</h3>
+ <h3>Cleanup</h3>
+
<p>Once you're finished with experimenting and want to cleanup these pages,
you can simply delete them all.</p>
- <h3>Formatting</h3>
+ <h3>Formatting</h3>
+
<p>TriliumNext supports classic formatting like <em>italic</em>, <strong>bold</strong>, <em><strong>bold and italic</strong></em>.
Of course you can add links like this one pointing to <a href="http://www.google.com">google.com</a>
+
</p>
<p>Lists</p>
<p><strong>Ordered:</strong>
+
</p>
<ol>
<li>First Item</li>
@@ -48,6 +54,7 @@
</li>
</ol>
<p><strong>Unordered:</strong>
+
</p>
<ul>
<li>Item</li>
diff --git a/demo/root/Trilium Demo/Formatting examples/Checkbox lists.html b/demo/root/Trilium Demo/Formatting examples/Checkbox lists.html
index 62c728414e..1a581a9d0e 100644
--- a/demo/root/Trilium Demo/Formatting examples/Checkbox lists.html
+++ b/demo/root/Trilium Demo/Formatting examples/Checkbox lists.html
@@ -18,21 +18,25 @@
<li>
<label class="todo-list__label">
<input type="checkbox" disabled="disabled"><span class="todo-list__label__description">buy milk&nbsp;&nbsp;</span>
+
</label>
</li>
<li>
<label class="todo-list__label">
<input type="checkbox" checked="checked" disabled="disabled"><span class="todo-list__label__description">do the laundry&nbsp;&nbsp;</span>
+
</label>
</li>
<li>
<label class="todo-list__label">
<input type="checkbox" checked="checked" disabled="disabled"><span class="todo-list__label__description">watch TV&nbsp;&nbsp;</span>
+
</label>
</li>
<li>
<label class="todo-list__label">
<input type="checkbox" disabled="disabled"><span class="todo-list__label__description">eat ice cream&nbsp;&nbsp;</span>
+
</label>
</li>
</ul>
diff --git a/demo/root/Trilium Demo/Formatting examples/Math.html b/demo/root/Trilium Demo/Formatting examples/Math.html
index 54a28f3ff6..e646e00b48 100644
--- a/demo/root/Trilium Demo/Formatting examples/Math.html
+++ b/demo/root/Trilium Demo/Formatting examples/Math.html
@@ -15,7 +15,9 @@
<div class="ck-content">
<p><span class="math-tex">\(% \f is defined as #1f(#2) using the macro \f\relax{x} = \int_{-\infty}^\infty &nbsp; &nbsp; \f\hat\xi\,e^{2 \pi i \xi x} &nbsp; &nbsp; \,d\xi\)</span>Some
math examples:</p><span class="math-tex">\[\displaystyle \frac{1}{\Bigl(\sqrt{\phi \sqrt{5}}-\phi\Bigr) e^{\frac25 \pi}} = 1+\frac{e^{-2\pi}} {1+\frac{e^{-4\pi}} {1+\frac{e^{-6\pi}} {1+\frac{e^{-8\pi}} {1+\cdots} } } }\]</span>
+
<p>Another:</p><span class="math-tex">\[\displaystyle \left( \sum_{k=1}^n a_k b_k \right)^2 \leq \left( \sum_{k=1}^n a_k^2 \right) \left( \sum_{k=1}^n b_k^2 \right)\]</span>
+
<p>Inline math is also possible:&nbsp;<span class="math-tex">\(c^2 = a^2 + b^2\)</span>&nbsp;</p>
<p>&nbsp;</p>
</div>
diff --git a/demo/root/Trilium Demo/Inbox/The Last Question.html b/demo/root/Trilium Demo/Inbox/The Last Question.html
index 4e76058915..57cc8dff54 100644
--- a/demo/root/Trilium Demo/Inbox/The Last Question.html
+++ b/demo/root/Trilium Demo/Inbox/The Last Question.html
@@ -21,8 +21,7 @@
class="include-note" data-note-id="ZWCYra81yOFO" data-box-size="medium">&nbsp;</section>
<p>This page demonstrates two things:</p>
<ul>
- <li>possibility to <a href="https://github.com/zadam/trilium/wiki/Text-editor#include-note">include one note into another</a>
-
+ <li>possibility to <a href="#root/_hidden/_help/_help_KSZ04uQ2D1St/_help_iPIMuisry3hd/_help_nBAXQFj20hS1">include one note into another</a>
</li>
<li>PDF preview - you can read PDFs directly in Trilium!</li>
</ul>
diff --git a/demo/root/Trilium Demo/Journal.html b/demo/root/Trilium Demo/Journal.html
index faac301b5b..629b4870fe 100644
--- a/demo/root/Trilium Demo/Journal.html
+++ b/demo/root/Trilium Demo/Journal.html
@@ -14,6 +14,7 @@
<div class="ck-content">
<p>You can read some explanation on how this journal works here: <a href="https://github.com/zadam/trilium/wiki/Day-notes">https://github.com/zadam/trilium/wiki/Day-notes</a>
+
</p>
</div>
</div>
diff --git "a/demo/root/Trilium Demo/Note Types/Geo Map (The Seven Wonders of the World)/Chich\303\251n Itz\303\241, Mexico.html" "b/demo/root/Trilium Demo/Note Types/Geo Map (The Seven Wonders of the World)/Chich\303\251n Itz\303\241, Mexico.html"
index ab44bd6384..3992ceed93 100644
--- "a/demo/root/Trilium Demo/Note Types/Geo Map (The Seven Wonders of the World)/Chich\303\251n Itz\303\241, Mexico.html"
+++ "b/demo/root/Trilium Demo/Note Types/Geo Map (The Seven Wonders of the World)/Chich\303\251n Itz\303\241, Mexico.html"
@@ -24,14 +24,17 @@
<span
class="footnote-reference" data-footnote-reference="" data-footnote-index="1"
data-footnote-id="6qz4pm021mi" role="doc-noteref" id="fnref6qz4pm021mi"><sup><a href="#fn6qz4pm021mi">[1]</a></sup>
+
</span>
</p>
<ol class="footnote-section footnotes" data-footnote-section="" role="doc-endnotes">
<li class="footnote-item" data-footnote-item="" data-footnote-index="1"
data-footnote-id="6qz4pm021mi" role="doc-endnote" id="fn6qz4pm021mi"><span class="footnote-back-link" data-footnote-back-link="" data-footnote-id="6qz4pm021mi"><sup><strong><a href="#fnref6qz4pm021mi">^</a></strong></sup></span>
+
<div
class="footnote-content" data-footnote-content="">
<p><a href="https://www.thecollector.com/what-are-the-seven-wonders-of-the-world/">What Are the 7 Wonders of the World? (with HD Images) | TheCollector</a>
+
</p>
</div>
</li>
diff --git a/demo/root/Trilium Demo/Note Types/Geo Map (The Seven Wonders of the World)/Christ the Redeemer, Brazil.html b/demo/root/Trilium Demo/Note Types/Geo Map (The Seven Wonders of the World)/Christ the Redeemer, Brazil.html
index 3e1f1e9051..cbaae70da8 100644
--- a/demo/root/Trilium Demo/Note Types/Geo Map (The Seven Wonders of the World)/Christ the Redeemer, Brazil.html
+++ b/demo/root/Trilium Demo/Note Types/Geo Map (The Seven Wonders of the World)/Christ the Redeemer, Brazil.html
@@ -26,13 +26,16 @@
been brought to its knees.<span class="footnote-reference" data-footnote-reference=""
data-footnote-index="1" data-footnote-id="o6g991vkrwj" role="doc-noteref"
id="fnrefo6g991vkrwj"><sup><a href="#fno6g991vkrwj">[1]</a></sup></span>
+
</p>
<ol class="footnote-section footnotes" data-footnote-section="" role="doc-endnotes">
<li class="footnote-item" data-footnote-item="" data-footnote-index="1"
data-footnote-id="o6g991vkrwj" role="doc-endnote" id="fno6g991vkrwj"><span class="footnote-back-link" data-footnote-back-link="" data-footnote-id="o6g991vkrwj"><sup><strong><a href="#fnrefo6g991vkrwj">^</a></strong></sup></span>
+
<div
class="footnote-content" data-footnote-content="">
<p><a href="https://www.thecollector.com/what-are-the-seven-wonders-of-the-world/">What Are the 7 Wonders of the World? (with HD Images) | TheCollector</a>
+
</p>
</div>
</li>
diff --git a/demo/root/Trilium Demo/Note Types/Geo Map (The Seven Wonders of the World)/Machu Picchu, Peru.html b/demo/root/Trilium Demo/Note Types/Geo Map (The Seven Wonders of the World)/Machu Picchu, Peru.html
index 5e9817e5bd..929103047f 100644
--- a/demo/root/Trilium Demo/Note Types/Geo Map (The Seven Wonders of the World)/Machu Picchu, Peru.html
+++ b/demo/root/Trilium Demo/Note Types/Geo Map (The Seven Wonders of the World)/Machu Picchu, Peru.html
@@ -22,13 +22,16 @@
around 1450 in polished drystone walls.<span class="footnote-reference"
data-footnote-reference="" data-footnote-index="1" data-footnote-id="4prjheuho88"
role="doc-noteref" id="fnref4prjheuho88"><sup><a href="#fn4prjheuho88">[1]</a></sup></span>
+
</p>
<ol class="footnote-section footnotes" data-footnote-section="" role="doc-endnotes">
<li class="footnote-item" data-footnote-item="" data-footnote-index="1"
data-footnote-id="4prjheuho88" role="doc-endnote" id="fn4prjheuho88"><span class="footnote-back-link" data-footnote-back-link="" data-footnote-id="4prjheuho88"><sup><strong><a href="#fnref4prjheuho88">^</a></strong></sup></span>
+
<div
class="footnote-content" data-footnote-content="">
<p><a href="https://www.thecollector.com/what-are-the-seven-wonders-of-the-world/">What Are the 7 Wonders of the World? (with HD Images) | TheCollector</a>
+
</p>
</div>
</li>
diff --git a/demo/root/Trilium Demo/Note Types/Geo Map (The Seven Wonders of the World)/Petra, Jordan.html b/demo/root/Trilium Demo/Note Types/Geo Map (The Seven Wonders of the World)/Petra, Jordan.html
index 1396c2691d..55e0adafad 100644
--- a/demo/root/Trilium Demo/Note Types/Geo Map (The Seven Wonders of the World)/Petra, Jordan.html
+++ b/demo/root/Trilium Demo/Note Types/Geo Map (The Seven Wonders of the World)/Petra, Jordan.html
@@ -23,13 +23,16 @@
by earthquakes.<span class="footnote-reference" data-footnote-reference=""
data-footnote-index="1" data-footnote-id="ej5sd0bakne" role="doc-noteref"
id="fnrefej5sd0bakne"><sup><a href="#fnej5sd0bakne">[1]</a></sup></span>
+
</p>
<ol class="footnote-section footnotes" data-footnote-section="" role="doc-endnotes">
<li class="footnote-item" data-footnote-item="" data-footnote-index="1"
data-footnote-id="ej5sd0bakne" role="doc-endnote" id="fnej5sd0bakne"><span class="footnote-back-link" data-footnote-back-link="" data-footnote-id="ej5sd0bakne"><sup><strong><a href="#fnrefej5sd0bakne">^</a></strong></sup></span>
+
<div
class="footnote-content" data-footnote-content="">
<p><a href="https://www.thecollector.com/what-are-the-seven-wonders-of-the-world/">What Are the 7 Wonders of the World? (with HD Images) | TheCollector</a>
+
</p>
</div>
</li>
diff --git a/demo/root/Trilium Demo/Note Types/Geo Map (The Seven Wonders of the World)/The Colosseum, Rome, Italy.html b/demo/root/Trilium Demo/Note Types/Geo Map (The Seven Wonders of the World)/The Colosseum, Rome, Italy.html
index 650a6623cc..c9abd680d9 100644
--- a/demo/root/Trilium Demo/Note Types/Geo Map (The Seven Wonders of the World)/The Colosseum, Rome, Italy.html
+++ b/demo/root/Trilium Demo/Note Types/Geo Map (The Seven Wonders of the World)/The Colosseum, Rome, Italy.html
@@ -26,14 +26,17 @@
<span
class="footnote-reference" data-footnote-reference="" data-footnote-index="1"
data-footnote-id="4kitkusvyi3" role="doc-noteref" id="fnref4kitkusvyi3"><sup><a href="#fn4kitkusvyi3">[1]</a></sup>
+
</span>
</p>
<ol class="footnote-section footnotes" data-footnote-section="" role="doc-endnotes">
<li class="footnote-item" data-footnote-item="" data-footnote-index="1"
data-footnote-id="4kitkusvyi3" role="doc-endnote" id="fn4kitkusvyi3"><span class="footnote-back-link" data-footnote-back-link="" data-footnote-id="4kitkusvyi3"><sup><strong><a href="#fnref4kitkusvyi3">^</a></strong></sup></span>
+
<div
class="footnote-content" data-footnote-content="">
<p><a href="https://www.thecollector.com/what-are-the-seven-wonders-of-the-world/">What Are the 7 Wonders of the World? (with HD Images) | TheCollector</a>
+
</p>
</div>
</li>
diff --git a/demo/root/Trilium Demo/Note Types/Geo Map (The Seven Wonders of the World)/The Great Wall of China.html b/demo/root/Trilium Demo/Note Types/Geo Map (The Seven Wonders of the World)/The Great Wall of China.html
index 1f5d5886fc..ccedb83882 100644
--- a/demo/root/Trilium Demo/Note Types/Geo Map (The Seven Wonders of the World)/The Great Wall of China.html
+++ b/demo/root/Trilium Demo/Note Types/Geo Map (The Seven Wonders of the World)/The Great Wall of China.html
@@ -23,14 +23,17 @@
<span
class="footnote-reference" data-footnote-reference="" data-footnote-index="1"
data-footnote-id="o0o2das7ljm" role="doc-noteref" id="fnrefo0o2das7ljm"><sup><a href="#fno0o2das7ljm">[1]</a></sup>
+
</span>
</p>
<ol class="footnote-section footnotes" data-footnote-section="" role="doc-endnotes">
<li class="footnote-item" data-footnote-item="" data-footnote-index="1"
data-footnote-id="o0o2das7ljm" role="doc-endnote" id="fno0o2das7ljm"><span class="footnote-back-link" data-footnote-back-link="" data-footnote-id="o0o2das7ljm"><sup><strong><a href="#fnrefo0o2das7ljm">^</a></strong></sup></span>
+
<div
class="footnote-content" data-footnote-content="">
<p><a href="https://www.thecollector.com/what-are-the-seven-wonders-of-the-world/">What Are the 7 Wonders of the World? (with HD Images) | TheCollector</a>
+
</p>
</div>
</li>
diff --git a/demo/root/Trilium Demo/Note Types/Geo Map (The Seven Wonders of the World)/The Taj Mahal, India.html b/demo/root/Trilium Demo/Note Types/Geo Map (The Seven Wonders of the World)/The Taj Mahal, India.html
index 0d692392a6..755184be06 100644
--- a/demo/root/Trilium Demo/Note Types/Geo Map (The Seven Wonders of the World)/The Taj Mahal, India.html
+++ b/demo/root/Trilium Demo/Note Types/Geo Map (The Seven Wonders of the World)/The Taj Mahal, India.html
@@ -23,13 +23,16 @@
the complex.<span class="footnote-reference" data-footnote-reference=""
data-footnote-index="1" data-footnote-id="zzzjn52iwk" role="doc-noteref"
id="fnrefzzzjn52iwk"><sup><a href="#fnzzzjn52iwk">[1]</a></sup></span>
+
</p>
<ol class="footnote-section footnotes" data-footnote-section="" role="doc-endnotes">
<li class="footnote-item" data-footnote-item="" data-footnote-index="1"
data-footnote-id="zzzjn52iwk" role="doc-endnote" id="fnzzzjn52iwk"><span class="footnote-back-link" data-footnote-back-link="" data-footnote-id="zzzjn52iwk"><sup><strong><a href="#fnrefzzzjn52iwk">^</a></strong></sup></span>
+
<div
class="footnote-content" data-footnote-content="">
<p><a href="https://www.thecollector.com/what-are-the-seven-wonders-of-the-world/">What Are the 7 Wonders of the World? (with HD Images) | TheCollector</a>
+
</p>
</div>
</li>
diff --git a/demo/root/Trilium Demo/Scripting examples/Task manager/Done/Buy a board game for Alice.html b/demo/root/Trilium Demo/Scripting examples/Task manager/Done/Buy a board game for Alice.html
index 9cda896459..65b1819f2e 100644
--- a/demo/root/Trilium Demo/Scripting examples/Task manager/Done/Buy a board game for Alice.html
+++ b/demo/root/Trilium Demo/Scripting examples/Task manager/Done/Buy a board game for Alice.html
@@ -18,6 +18,7 @@
width="209" height="300">
</figure>
<p>Maybe CodeNames? <a href="https://boardgamegeek.com/boardgame/178900/codenames">https://boardgamegeek.com/boardgame/178900/codenames</a>
+
</p>
</div>
</div>
diff --git a/demo/root/Trilium Demo/Tech/node.js/Intro.html b/demo/root/Trilium Demo/Tech/Node.js/Intro.html
similarity index 100%
rename from demo/root/Trilium Demo/Tech/node.js/Intro.html
rename to demo/root/Trilium Demo/Tech/Node.js/Intro.html
diff --git a/demo/root/Trilium Demo/Tech/node.js/Overview.html b/demo/root/Trilium Demo/Tech/Node.js/Overview.html
similarity index 100%
rename from demo/root/Trilium Demo/Tech/node.js/Overview.html
rename to demo/root/Trilium Demo/Tech/Node.js/Overview.html
diff --git a/demo/root/Trilium Demo/Tech/node.js/Overview/History.html b/demo/root/Trilium Demo/Tech/Node.js/Overview/History.html
similarity index 100%
rename from demo/root/Trilium Demo/Tech/node.js/Overview/History.html
rename to demo/root/Trilium Demo/Tech/Node.js/Overview/History.html
diff --git a/demo/root/Trilium Demo/Tech/node.js/Overview/Industry support.html b/demo/root/Trilium Demo/Tech/Node.js/Overview/Industry support.html
similarity index 100%
rename from demo/root/Trilium Demo/Tech/node.js/Overview/Industry support.html
rename to demo/root/Trilium Demo/Tech/Node.js/Overview/Industry support.html
diff --git a/demo/root/Trilium Demo/Tech/node.js/Overview/Platform architecture.html b/demo/root/Trilium Demo/Tech/Node.js/Overview/Platform architecture.html
similarity index 99%
rename from demo/root/Trilium Demo/Tech/node.js/Overview/Platform architecture.html
rename to demo/root/Trilium Demo/Tech/Node.js/Overview/Platform architecture.html
index 1a977bccc8..4b51ab5be7 100644
--- a/demo/root/Trilium Demo/Tech/node.js/Overview/Platform architecture.html
+++ b/demo/root/Trilium Demo/Tech/Node.js/Overview/Platform architecture.html
@@ -20,6 +20,7 @@
href="https://en.wikipedia.org/wiki/Node.js#cite_note-b1-31">[31]</a>Developers can create scalable servers without using <a href="https://en.wikipedia.org/wiki/Thread_(computing)">threading</a>,
by using a simplified model of <a href="https://en.wikipedia.org/wiki/Event-driven_programming">event-driven programming</a> that
uses callbacks to signal the completion of a task.<a href="https://en.wikipedia.org/wiki/Node.js#cite_note-b1-31">[31]</a>
+
</p>
</div>
</div>
diff --git a/demo/root/Trilium Demo/Tech/node.js/Releases.html b/demo/root/Trilium Demo/Tech/Node.js/Releases.html
similarity index 100%
rename from demo/root/Trilium Demo/Tech/node.js/Releases.html
rename to demo/root/Trilium Demo/Tech/Node.js/Releases.html