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(user): use columns and trim headers
Elian Doran0c3368e447a8
diff --git a/apps/server/src/assets/doc_notes/en/User Guide/User Guide/Note Types/File/Audio & Video.html b/apps/server/src/assets/doc_notes/en/User Guide/User Guide/Note Types/File/Audio & Video.htmlindex 28d8675039..b55bcdca14 100644--- a/apps/server/src/assets/doc_notes/en/User Guide/User Guide/Note Types/File/Audio & Video.html+++ b/apps/server/src/assets/doc_notes/en/User Guide/User Guide/Note Types/File/Audio & Video.html@@ -89,12 +89,6 @@<figureclass="table"><table>- <thead>- <tr>- <th></th>- <th></th>- </tr>- </thead><tbody><tr><td><kbd>Space</kbd>diff --git a/apps/server/src/assets/doc_notes/en/User Guide/User Guide/Note Types/Text/Link Previews.html b/apps/server/src/assets/doc_notes/en/User Guide/User Guide/Note Types/Text/Link Previews.htmlindex b25801b131..08f407a4fb 100644--- a/apps/server/src/assets/doc_notes/en/User Guide/User Guide/Note Types/Text/Link Previews.html+++ b/apps/server/src/assets/doc_notes/en/User Guide/User Guide/Note Types/Text/Link Previews.html@@ -17,40 +17,29 @@</ul></li></ul>-<figure class="table">- <table class="ck-table-resized">- <colgroup>- <col style="width:21.85%;">- <col style="width:38.84%;">- <col style="width:39.31%;">- </colgroup>- <tbody>- <tr>- <td>- <figure class="image image_resized" style="width:100%;">- <img style="aspect-ratio:251/42;" src="Link Previews_image.png" width="251"- height="42">- <figcaption><em>Inline</em> link preview</figcaption>- </figure>- </td>- <td>- <figure class="image image_resized" style="width:100%;">- <img style="aspect-ratio:1217/196;" src="2_Link Previews_image.png" width="1217"- height="196">- <figcaption><em>Card</em> link preview</figcaption>- </figure>- </td>- <td>- <figure class="image image_resized" style="width:100%;">- <img style="aspect-ratio:994/563;" src="1_Link Previews_image.png" width="994"- height="563">- <figcaption><em>Embed</em> link preview</figcaption>- </figure>- </td>- </tr>- </tbody>- </table>-</figure>+<div class="trilium-multicolumn-layout" data-trilium-column-ratios="1-1-1">+ <div class="trilium-multicolumn-column">+ <figure class="image image_resized" style="width:100%;">+ <img style="aspect-ratio:251/42;" src="Link Previews_image.png" width="251"+ height="42">+ <figcaption><em>Inline</em> link preview</figcaption>+ </figure>+ </div>+ <div class="trilium-multicolumn-column">+ <figure class="image image_resized" style="width:100%;">+ <img style="aspect-ratio:1217/196;" src="2_Link Previews_image.png" width="1217"+ height="196">+ <figcaption><em>Card</em> link preview</figcaption>+ </figure>+ </div>+ <div class="trilium-multicolumn-column">+ <figure class="image image_resized" style="width:100%;">+ <img style="aspect-ratio:994/563;" src="1_Link Previews_image.png" width="994"+ height="563">+ <figcaption><em>Embed</em> link preview</figcaption>+ </figure>+ </div>+</div><h2>Inserting a link preview</h2><p>There are three ways to create one:</p><h3>1. By pasting a URL</h3>@@ -80,7 +69,7 @@ class="admonition note"><p>Click <em>Link preview</em> in the formatting toolbar to open the <em>Link preview</em> popup.Paste the URL and choose the type of preview.</p><h3>3. By saving browser tabs from the Web Clipper</h3>-<p>When the <a class="reference-link" href="#root/_help_MtPxeAWVAzMg">Web Clipper</a> saves+<p>When the <a class="reference-link" href="#root/_help_MtPxeAWVAzMg">Web Clipper</a> savesthe tabs of a window, each tab becomes an <em>inline</em> link preview showingthe title and favicon the browser displays for it. Because this data comesfrom the browser, pages behind a login keep their real title, and the Triliumdiff --git a/apps/server/src/assets/doc_notes/en/User Guide/User Guide/Note Types/Text/Lists.html b/apps/server/src/assets/doc_notes/en/User Guide/User Guide/Note Types/Text/Lists.htmlindex bb667922c3..7c3cef7fdd 100644--- a/apps/server/src/assets/doc_notes/en/User Guide/User Guide/Note Types/Text/Lists.html+++ b/apps/server/src/assets/doc_notes/en/User Guide/User Guide/Note Types/Text/Lists.html@@ -36,13 +36,6 @@tables within lists, as follows:</p><figure class="table"><table>- <thead>- <tr>- <th></th>- <th></th>- <th></th>- </tr>- </thead><tbody><tr><td>1</td>diff --git a/apps/server/src/assets/doc_notes/en/User Guide/User Guide/Scripting/Frontend Basics.html b/apps/server/src/assets/doc_notes/en/User Guide/User Guide/Scripting/Frontend Basics.htmlindex 8b351e3959..54652b97fb 100644--- a/apps/server/src/assets/doc_notes/en/User Guide/User Guide/Scripting/Frontend Basics.html+++ b/apps/server/src/assets/doc_notes/en/User Guide/User Guide/Scripting/Frontend Basics.html@@ -3,12 +3,6 @@<p>There are four flavors of front-end scripts:</p><figure class="table"><table>- <thead>- <tr>- <th></th>- <th></th>- </tr>- </thead><tbody><tr><td>Regular scripts</td>@@ -43,7 +37,7 @@<h2>Scripts</h2><p>Scripts don't have any special requirements. They can be run manuallyusing the <em>Execute</em> button on the code note or they can be run automatically,- see <a class="reference-link" href="#root/_help_irkwjdNtjcxR">Events</a>.</p>+ see <a class="reference-link" href="#root/_help_irkwjdNtjcxR">Frontend Events</a>.</p><h2>Widgets</h2><p>Widgets require a certain format in order for Trilium to be able to integratethem into the UI.</p>diff --git a/docs/User Guide/User Guide/Note Types/File/Audio & Video.md b/docs/User Guide/User Guide/Note Types/File/Audio & Video.mdindex 90bc85785a..806ad03b1c 100644--- a/docs/User Guide/User Guide/Note Types/File/Audio & Video.md+++ b/docs/User Guide/User Guide/Note Types/File/Audio & Video.md@@ -59,19 +59,63 @@ Then select the audio/video file note to be included.The following keyboard shortcuts are supported by the media player:-| | |-| --- | --- |-| <kbd>Space</kbd> | Play/pause |-| <kbd>Left arrow key</kbd> | Go back by 10s |-| <kbd>Right arrow key</kbd> | Go forward by 10s |-| <kbd>Ctrl</kbd> + <kbd>Left arrow key</kbd> | Go back by 1 min |-| <kbd>Ctrl</kbd> + <kbd>Right arrow key</kbd> | Go right by 1 min |-| <kbd>Page Up</kbd> | Navigate to the previous media |-| <kbd>Page Down</kbd> | Navigate to the next media |-| <kbd>F</kbd> | Toggle full-screen |-| <kbd>M</kbd> | Mute/unmute |-| <kbd>Home</kbd> | Go to the beginning of the media |-| <kbd>End</kbd> | Go to the end of the media |-| <kbd>Up</kbd> | Increase volume by 5% |-| <kbd>Down</kbd> | Decrease volume by 5% |-| <kbd>Alt+F1</kbd> (customizable) | Show this list of keyboard shortcuts on screen. |\ No newline at end of file+<table>+ <tbody>+ <tr>+ <td><kbd>Space</kbd></td>+ <td>Play/pause</td>+ </tr>+ <tr>+ <td><kbd>Left arrow key</kbd></td>+ <td>Go back by 10s</td>+ </tr>+ <tr>+ <td><kbd>Right arrow key</kbd></td>+ <td>Go forward by 10s</td>+ </tr>+ <tr>+ <td><kbd>Ctrl</kbd> + <kbd>Left arrow key</kbd></td>+ <td>Go back by 1 min</td>+ </tr>+ <tr>+ <td><kbd>Ctrl</kbd> + <kbd>Right arrow key</kbd></td>+ <td>Go right by 1 min</td>+ </tr>+ <tr>+ <td><kbd>Page Up</kbd></td>+ <td>Navigate to the previous media</td>+ </tr>+ <tr>+ <td><kbd>Page Down</kbd></td>+ <td>Navigate to the next media</td>+ </tr>+ <tr>+ <td><kbd>F</kbd></td>+ <td>Toggle full-screen</td>+ </tr>+ <tr>+ <td><kbd>M</kbd></td>+ <td>Mute/unmute</td>+ </tr>+ <tr>+ <td><kbd>Home</kbd></td>+ <td>Go to the beginning of the media</td>+ </tr>+ <tr>+ <td><kbd>End</kbd></td>+ <td>Go to the end of the media</td>+ </tr>+ <tr>+ <td><kbd>Up</kbd></td>+ <td>Increase volume by 5%</td>+ </tr>+ <tr>+ <td><kbd>Down</kbd></td>+ <td>Decrease volume by 5%</td>+ </tr>+ <tr>+ <td><kbd>Alt+F1</kbd> (customizable)</td>+ <td>Show this list of keyboard shortcuts on screen.</td>+ </tr>+ </tbody>+</table>\ No newline at end of filediff --git a/docs/User Guide/User Guide/Note Types/Text/Link Previews.md b/docs/User Guide/User Guide/Note Types/Text/Link Previews.mdindex 3419a2ba8e..e1a0a253f4 100644--- a/docs/User Guide/User Guide/Note Types/Text/Link Previews.md+++ b/docs/User Guide/User Guide/Note Types/Text/Link Previews.md@@ -11,20 +11,23 @@ A link preview can be displayed in one of three modes:* Currently supported for YouTube videos, which render interactively (via an `iframe`).* To prevent unwanted remote requests, the video is shown only after clicking on it first.-<table class="ck-table-resized">- <colgroup>- <col style="width:21.85%;">- <col style="width:38.84%;">- <col style="width:39.31%;">- </colgroup>- <tbody>- <tr>- <td><figure class="image image_resized" style="width:100%;"><img style="aspect-ratio:251/42;" src="Link Previews_image.png" width="251" height="42"><figcaption><em>Inline</em> link preview</figcaption></figure></td>- <td><figure class="image image_resized" style="width:100%;"><img style="aspect-ratio:1217/196;" src="2_Link Previews_image.png" width="1217" height="196"><figcaption><em>Card</em> link preview</figcaption></figure></td>- <td><figure class="image image_resized" style="width:100%;"><img style="aspect-ratio:994/563;" src="1_Link Previews_image.png" width="994" height="563"><figcaption><em>Embed</em> link preview</figcaption></figure></td>- </tr>- </tbody>-</table>+<div class="trilium-multicolumn-layout" data-trilium-column-ratios="1-1-1">+<div class="trilium-multicolumn-column">++<figure class="image image_resized" style="width:100%;"><img style="aspect-ratio:251/42;" src="Link Previews_image.png" width="251" height="42"><figcaption><em>Inline</em> link preview</figcaption></figure>++</div>+<div class="trilium-multicolumn-column">++<figure class="image image_resized" style="width:100%;"><img style="aspect-ratio:1217/196;" src="2_Link Previews_image.png" width="1217" height="196"><figcaption><em>Card</em> link preview</figcaption></figure>++</div>+<div class="trilium-multicolumn-column">++<figure class="image image_resized" style="width:100%;"><img style="aspect-ratio:994/563;" src="1_Link Previews_image.png" width="994" height="563"><figcaption><em>Embed</em> link preview</figcaption></figure>++</div>+</div>## Inserting a link preview@@ -52,7 +55,7 @@ Click _Link preview_ in the formatting toolbar to open the _Link preview_ popup.### 3\. By saving browser tabs from the Web Clipper-When the <a class="reference-link" href="../../Installation%20%26%20Setup/Web%20Clipper.md">Web Clipper</a> saves the tabs of a window, each tab becomes an _inline_ link preview showing the title and favicon the browser displays for it. Because this data comes from the browser, pages behind a login keep their real title, and the Trilium server does not contact the saved pages.+When the <a class="reference-link" href="../../Installation%20%26%20Setup/Web%20Clipper.md">Web Clipper</a> saves the tabs of a window, each tab becomes an _inline_ link preview showing the title and favicon the browser displays for it. Because this data comes from the browser, pages behind a login keep their real title, and the Trilium server does not contact the saved pages.When _Autogenerate link previews_ is turned off, the tabs are saved as a list of plain links instead.diff --git a/docs/User Guide/User Guide/Note Types/Text/Lists.md b/docs/User Guide/User Guide/Note Types/Text/Lists.mdindex 21c7f673b1..01cd68adac 100644--- a/docs/User Guide/User Guide/Note Types/Text/Lists.md+++ b/docs/User Guide/User Guide/Note Types/Text/Lists.md@@ -23,14 +23,40 @@ For bulleted and numbered lists, it's possible to configure an alternative markeIt possible to add content-level blocks such as headings, code blocks, tables within lists, as follows:-| | | |-| --- | --- | --- |-| 1 |  | First, create a list. |-| 2 |  | Press Enter to create a new list item. |-| 3 |  | Press Backspace to get rid of the bullet point. Notice the cursor position. |-| 4 | <img class="image_resized" style="aspect-ratio:676/112;width:98.29%;" src="5_Lists_image.png" width="676" height="112"> | At this point, insert any desired block-level item such as a code block. |-| 5 | <img class="image_resized" style="aspect-ratio:675/129;width:94.22%;" src="3_Lists_image.png" width="675" height="129"> | To continue with a new bullet point, press Enter until the cursor moves to a new blank position. |-| 6 | <img class="image_resized" style="aspect-ratio:675/129;width:100%;" src="Lists_image.png" width="675" height="129"> | Press Enter once more to create the new bullet. |+<table>+ <tbody>+ <tr>+ <td>1</td>+ <td><img src="2_Lists_image.png"></td>+ <td>First, create a list.</td>+ </tr>+ <tr>+ <td>2</td>+ <td><img src="4_Lists_image.png"></td>+ <td>Press Enter to create a new list item.</td>+ </tr>+ <tr>+ <td>3</td>+ <td><img src="1_Lists_image.png"></td>+ <td>Press Backspace to get rid of the bullet point. Notice the cursor position.</td>+ </tr>+ <tr>+ <td>4</td>+ <td><img class="image_resized" style="aspect-ratio:676/112;width:98.29%;" src="5_Lists_image.png" width="676" height="112"></td>+ <td>At this point, insert any desired block-level item such as a code block.</td>+ </tr>+ <tr>+ <td>5</td>+ <td><img class="image_resized" style="aspect-ratio:675/129;width:94.22%;" src="3_Lists_image.png" width="675" height="129"></td>+ <td>To continue with a new bullet point, press Enter until the cursor moves to a new blank position.</td>+ </tr>+ <tr>+ <td>6</td>+ <td><img class="image_resized" style="aspect-ratio:675/129;width:100%;" src="Lists_image.png" width="675" height="129"></td>+ <td>Press Enter once more to create the new bullet.</td>+ </tr>+ </tbody>+</table>The same principle applies to all three list types (bullet, numbered and to-do).diff --git a/docs/User Guide/User Guide/Scripting/Frontend Basics.md b/docs/User Guide/User Guide/Scripting/Frontend Basics.mdindex 5baeb9bce9..b519f94d1a 100644--- a/docs/User Guide/User Guide/Scripting/Frontend Basics.md+++ b/docs/User Guide/User Guide/Scripting/Frontend Basics.md@@ -3,18 +3,32 @@ Front-end scripts are custom JavaScript notes that are run on the client (browseThere are four flavors of front-end scripts:-| | |-| --- | --- |-| Regular scripts | These are run with the current app and note context. These can be run either manually or automatically on start-up. |-| <a class="reference-link" href="Frontend%20Basics/Custom%20Widgets.md">Custom Widgets</a> | These can introduce new UI elements in various positions, such as near the <a class="reference-link" href="../Basic%20Concepts%20and%20Features/UI%20Elements/Note%20Tree.md">Note Tree</a>, content area or even the <a class="reference-link" href="../Basic%20Concepts%20and%20Features/UI%20Elements/Right%20Sidebar.md">Right Sidebar</a>. |-| <a class="reference-link" href="Frontend%20Basics/Launch%20Bar%20Widgets.md">Launch Bar Widgets</a> | Similar to <a class="reference-link" href="Frontend%20Basics/Custom%20Widgets.md">Custom Widgets</a>, but dedicated to the <a class="reference-link" href="../Basic%20Concepts%20and%20Features/UI%20Elements/Launch%20Bar.md">Launch Bar</a>. These can simply introduce new buttons or graphical elements to the bar. |-| <a class="reference-link" href="../Note%20Types/Render%20Note.md">Render Note</a> | This allows rendering custom content inside a note, using either HTML or Preact JSX. |+<table>+ <tbody>+ <tr>+ <td>Regular scripts</td>+ <td>These are run with the current app and note context. These can be run either manually or automatically on start-up.</td>+ </tr>+ <tr>+ <td><a class="reference-link" href="Frontend%20Basics/Custom%20Widgets.md">Custom Widgets</a></td>+ <td>These can introduce new UI elements in various positions, such as near the <a class="reference-link" href="../Basic%20Concepts%20and%20Features/UI%20Elements/Note%20Tree.md">Note Tree</a>, content area or even the <a class="reference-link" href="../Basic%20Concepts%20and%20Features/UI%20Elements/Right%20Sidebar.md">Right Sidebar</a>.</td>+ </tr>+ <tr>+ <td><a class="reference-link" href="Frontend%20Basics/Launch%20Bar%20Widgets.md">Launch Bar Widgets</a></td>+ <td>Similar to <a class="reference-link" href="Frontend%20Basics/Custom%20Widgets.md">Custom Widgets</a>, but dedicated to the <a class="reference-link" href="../Basic%20Concepts%20and%20Features/UI%20Elements/Launch%20Bar.md">Launch Bar</a>. These can simply introduce new buttons or graphical elements to the bar.</td>+ </tr>+ <tr>+ <td><a class="reference-link" href="../Note%20Types/Render%20Note.md">Render Note</a></td>+ <td>This allows rendering custom content inside a note, using either HTML or Preact JSX.</td>+ </tr>+ </tbody>+</table>For more advanced behaviors that do not require a user interface (e.g. batch modifying notes), see <a class="reference-link" href="Backend%20scripts.md">Backend scripts</a>.## Scripts-Scripts don't have any special requirements. They can be run manually using the _Execute_ button on the code note or they can be run automatically, see <a class="reference-link" href="Frontend%20Basics/Frontend%20Events.md">Events</a>.+Scripts don't have any special requirements. They can be run manually using the _Execute_ button on the code note or they can be run automatically, see <a class="reference-link" href="Frontend%20Basics/Frontend%20Events.md">Frontend Events</a>.## Widgets