Skip to content

Commit 2b983f8

Browse files
committed
docs(demo): link to old documentation (closes #5211)
1 parent ab298cb commit 2b983f8

File tree

9 files changed

+50
-18
lines changed

9 files changed

+50
-18
lines changed

apps/edit-docs/demo/!!!meta.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"formatVersion": 2,
3-
"appVersion": "0.99.2",
3+
"appVersion": "0.99.3",
44
"files": [
55
{
66
"isClone": false,
@@ -2700,6 +2700,7 @@
27002700
}
27012701
],
27022702
"format": "html",
2703+
"dataFileName": "Note Types.html",
27032704
"attachments": [],
27042705
"dirFileName": "Note Types",
27052706
"children": [
@@ -3878,7 +3879,7 @@
38783879
"title": "Scripting examples",
38793880
"notePosition": 350,
38803881
"prefix": null,
3881-
"isExpanded": false,
3882+
"isExpanded": true,
38823883
"type": "text",
38833884
"mime": "text/html",
38843885
"attributes": [

apps/edit-docs/demo/navigation.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -270,7 +270,7 @@
270270
</li>
271271
</ul>
272272
</li>
273-
<li>Note Types
273+
<li><a href="root/Trilium%20Demo/Note%20Types.html" target="detail">Note Types</a>
274274
<ul>
275275
<li><a href="root/Trilium%20Demo/Note%20Types/Canvas.json" target="detail">Canvas</a>
276276
</li>

apps/edit-docs/demo/root/Miscellaneous/Day Note Template.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ <h1 data-trilium-h1>Day Note Template</h1>
1414

1515
<div class="ck-content">
1616
<h2>☑️ Tasks</h2>
17+
1718
<ul>
1819
<li data-list-item-id="e4b26220d6ce48997f1116dc1d1d83dc0">[…]</li>
1920
</ul>

apps/edit-docs/demo/root/Trilium Demo.html

Lines changed: 4 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -14,34 +14,28 @@ <h1 data-trilium-h1>Trilium Demo</h1>
1414

1515
<div class="ck-content">
1616
<figure class="image image-style-align-right image_resized" style="width:29.84%;">
17-
<img style="aspect-ratio:150/150;" src="Trilium Demo_icon-color.svg" width="150"
18-
height="150">
17+
<img style="aspect-ratio:150/150;" src="Trilium Demo_icon-color.svg"
18+
width="150" height="150">
1919
</figure>
2020
<p><strong>Welcome to Trilium Notes!</strong>
21-
2221
</p>
2322
<p>This is a "demo" document packaged with Trilium to showcase some of its
2423
features and also give you some ideas on how you might structure your notes.
2524
You can play with it, and modify the note content and tree structure as
2625
you wish.</p>
2726
<p>If you need any help, visit <a href="https://triliumnotes.org">triliumnotes.org</a> or
2827
our <a href="https://github.com/TriliumNext">GitHub repository</a>
29-
3028
</p>
3129
<h2>Cleanup</h2>
32-
3330
<p>Once you're finished with experimenting and want to cleanup these pages,
3431
you can simply delete them all.</p>
3532
<h2>Formatting</h2>
36-
3733
<p>Trilium supports classic formatting like <em>italic</em>, <strong>bold</strong>, <em><strong>bold and italic</strong></em>.
3834
You can add links pointing to <a href="https://triliumnotes.org/">external pages</a> or&nbsp;
3935
<a
4036
class="reference-link" href="Trilium%20Demo/Formatting%20examples">Formatting examples</a>.</p>
4137
<h3>Lists</h3>
42-
4338
<p><strong>Ordered:</strong>
44-
4539
</p>
4640
<ol>
4741
<li data-list-item-id="e877cc655d0239b8bb0f38696ad5d8abb">First Item</li>
@@ -56,7 +50,6 @@ <h3>Lists</h3>
5650
</li>
5751
</ol>
5852
<p><strong>Unordered:</strong>
59-
6053
</p>
6154
<ul>
6255
<li data-list-item-id="e68bf4b518a16671c314a72073c3d900a">Item</li>
@@ -67,17 +60,16 @@ <h3>Lists</h3>
6760
</li>
6861
</ul>
6962
<h3>Block quotes</h3>
70-
7163
<blockquote>
7264
<p>Whereof one cannot speak, thereof one must be silent”</p>
7365
<p>– Ludwig Wittgenstein</p>
7466
</blockquote>
7567
<hr>
7668
<p>See also other examples like <a href="Trilium%20Demo/Formatting%20examples/School%20schedule.html">tables</a>,
7769
<a
78-
href="Trilium%20Demo/Formatting%20examples/Checkbox%20lists.html">checkbox lists,</a> <a href="Trilium%20Demo/Formatting%20examples/Highlighting.html">highlighting</a>,
70+
href="Trilium%20Demo/Formatting%20examples/Checkbox%20lists.html">checkbox lists,</a> <a href="Trilium%20Demo/Formatting%20examples/Highlighting.html">highlighting</a>, <a href="Trilium%20Demo/Formatting%20examples/Code%20blocks.html">code blocks</a>and
7971
<a
80-
href="Trilium%20Demo/Formatting%20examples/Code%20blocks.html">code blocks</a>and <a href="Trilium%20Demo/Formatting%20examples/Math.html">math examples</a>.</p>
72+
href="Trilium%20Demo/Formatting%20examples/Math.html">math examples</a>.</p>
8173
</div>
8274
</div>
8375
</body>

apps/edit-docs/demo/root/Trilium Demo/Formatting examples/Code blocks.html

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,12 @@ <h1 data-trilium-h1>Code blocks</h1>
2121
language, should that fail it is possible to manually adjust it. The color
2222
scheme for the syntax highlighting is adjustable in settings.&nbsp;</p><pre><code class="language-application-javascript-env-frontend">function helloWorld() {
2323

24+
25+
2426
alert("Hello world");
2527

28+
29+
2630
}</code></pre>
2731
<p>For larger pieces of code it is better to use a code note, which uses
2832
a fully-fledged code editor (CodeMirror). For an example of a code note,
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
<html>
2+
3+
<head>
4+
<meta charset="utf-8">
5+
<meta name="viewport" content="width=device-width, initial-scale=1">
6+
<link rel="stylesheet" href="../../style.css">
7+
<base target="_parent">
8+
<title data-trilium-title>Note Types</title>
9+
</head>
10+
11+
<body>
12+
<div class="content">
13+
<h1 data-trilium-h1>Note Types</h1>
14+
15+
<div class="ck-content">
16+
<p>T</p>
17+
</div>
18+
</div>
19+
</body>
20+
21+
</html>

apps/edit-docs/demo/root/Trilium Demo/Scripting examples/Task manager.html

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,8 @@
1313
<h1 data-trilium-h1>Task manager</h1>
1414

1515
<div class="ck-content">
16-
<p>This is a simple TODO/Task manager. You can see some description and explanation
17-
here: <a href="https://github.com/zadam/trilium/wiki/Task-manager">https://github.com/zadam/trilium/wiki/Task-manager</a>
18-
</p>
16+
<p>This is a simple TODO/Task manager. See the <a href="https://docs.triliumnotes.org/user-guide/advanced-usage/advanced-showcases/task-manager">Trilium documentation</a> for
17+
information on how it works.</p>
1918
<p>Please note that this is meant as scripting example only and feature/bug
2019
support is very limited.</p>
2120
</div>

apps/edit-docs/demo/root/Trilium Demo/Tech/Linux/Bash scripting/While loop.html

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,18 +16,32 @@ <h1 data-trilium-h1>While loop</h1>
1616
<p>Documentation: <a href="http://tldp.org/LDP/Bash-Beginners-Guide/html/sect_09_02.html">http://tldp.org/LDP/Bash-Beginners-Guide/html/sect_09_02.html</a>
1717
</p><pre><code class="language-text-x-sh">#!/bin/bash
1818

19+
20+
1921
# This script opens 4 terminal windows.
2022

23+
24+
2125
i="0"
2226

27+
28+
2329
while [ $i -lt 4 ]
2430

31+
32+
2533
do
2634

35+
36+
2737
xterm &amp;
2838

39+
40+
2941
i=$[$i+1]
3042

43+
44+
3145
done</code></pre>
3246
</div>
3347
</div>

apps/server/src/assets/db/demo.zip

435 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)