Skip to content

Commit 2e14522

Browse files
committed
Merge remote-tracking branch 'origin/main'
2 parents c2ce36d + 4ae38ac commit 2e14522

File tree

26 files changed

+333
-118
lines changed

26 files changed

+333
-118
lines changed

apps/build-docs/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
"license": "AGPL-3.0-only",
1212
"packageManager": "[email protected]",
1313
"devDependencies": {
14-
"@redocly/cli": "2.10.0",
14+
"@redocly/cli": "2.11.0",
1515
"archiver": "7.0.1",
1616
"fs-extra": "11.3.2",
1717
"react": "19.2.0",

apps/client/src/services/shortcuts.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ describe("shortcuts", () => {
159159
expect(matchesShortcut(event, "Shift+F1")).toBeTruthy();
160160

161161
// Special keys
162-
for (const keyCode of [ "Delete", "Enter" ]) {
162+
for (const keyCode of [ "Delete", "Enter", "NumpadEnter" ]) {
163163
event = createKeyboardEvent({ key: keyCode, code: keyCode });
164164
expect(matchesShortcut(event, keyCode), `Key ${keyCode}`).toBeTruthy();
165165
}

apps/client/src/services/shortcuts.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ for (let i = 1; i <= 19; i++) {
4646
const KEYCODES_WITH_NO_MODIFIER = new Set([
4747
"Delete",
4848
"Enter",
49+
"NumpadEnter",
4950
...functionKeyCodes
5051
]);
5152

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

Lines changed: 2 additions & 1 deletion
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": [

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>

0 commit comments

Comments
 (0)