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): add photos to link previews
Elian Doran3e3161aa349f
diff --git a/apps/server/src/assets/doc_notes/en/User Guide/User Guide/Note Types/Text.html b/apps/server/src/assets/doc_notes/en/User Guide/User Guide/Note Types/Text.htmlindex 25bea9a3aa..7a9323f74f 100644--- a/apps/server/src/assets/doc_notes/en/User Guide/User Guide/Note Types/Text.html+++ b/apps/server/src/assets/doc_notes/en/User Guide/User Guide/Note Types/Text.html@@ -20,175 +20,172 @@<p>Fore more information see <a class="reference-link" href="#root/_help_nRhnJkTT8cPs">Formatting toolbar</a>.</p><h2>Features and formatting</h2><p>Here's a list of various features supported by text notes:</p>-<figure-class="table">- <table>- <thead>- <tr>- <th>Dedicated article</th>- <th>Feature</th>- </tr>- </thead>- <tbody>- <tr>- <td><a class="reference-link" href="#root/_help_Gr6xFaF6ioJ5">General formatting</a>- </td>- <td>- <ul>- <li>Headings (section titles, paragraph)</li>- <li>Font size</li>- <li>Bold, italic, underline, strike-through</li>- <li>Superscript, subscript</li>- <li>Font color & background color</li>- <li>Remove formatting</li>- </ul>- </td>- </tr>- <tr>- <td><a class="reference-link" href="#root/_help_S6Xx8QIWTV66">Lists</a>- </td>- <td>- <ul>- <li>Bulleted lists</li>- <li>Numbered lists</li>- <li>To-do lists</li>- </ul>- </td>- </tr>- <tr>- <td><a class="reference-link" href="#root/_help_NwBbFdNZ9h7O">Block quotes & admonitions</a>- </td>- <td>- <ul>- <li>Block quotes</li>- <li>Admonitions</li>- </ul>- </td>- </tr>- <tr>- <td><a class="reference-link" href="#root/_help_NdowYOC1GFKS">Tables</a>- </td>- <td>- <ul>- <li>Basic tables</li>- <li>Merging cells</li>- <li>Styling tables and cells.</li>- <li>Table captions</li>- </ul>- </td>- </tr>- <tr>- <td><a class="reference-link" href="#root/_help_UYuUB1ZekNQU">Developer-specific formatting</a>- </td>- <td>- <ul>- <li>Inline code</li>- <li>Code blocks</li>- <li>Keyboard shortcuts</li>- </ul>- </td>- </tr>- <tr>- <td><a class="reference-link" href="#root/_help_AgjCISero73a">Footnotes</a>- </td>- <td>- <ul>- <li>Footnotes</li>- </ul>- </td>- </tr>- <tr>- <td><a class="reference-link" href="#root/_help_mT0HEkOsz6i1">Images</a>- </td>- <td>- <ul>- <li>Images</li>- </ul>- </td>- </tr>- <tr>- <td><a class="reference-link" href="#root/_help_QEAPj01N5f7w">Links</a>- </td>- <td>- <ul>- <li>External links</li>- <li>Internal Trilium links</li>- </ul>- </td>- </tr>- <tr>- <td><a class="reference-link" href="#root/_help_nBAXQFj20hS1">Include Note</a>- </td>- <td>- <ul>- <li>Include note</li>- </ul>- </td>- </tr>- <tr>- <td><a class="reference-link" href="#root/_help_CohkqWQC1iBv">Insert buttons</a>- </td>- <td>- <ul>- <li>Symbols</li>- <li><a class="reference-link" href="#root/_help_YfYAtQBcfo5V">Math Equations</a>- </li>- <li>Mermaid diagrams</li>- <li>Horizontal ruler</li>- <li>Page break</li>- </ul>- </td>- </tr>- <tr>- <td><a class="reference-link" href="#root/_help_dEHYtoWWi8ct">Other features</a>- </td>- <td>- <ul>- <li>Indentation- <ul>- <li>Markdown import</li>- </ul>- </li>- <li><a class="reference-link" href="#root/_help_2x0ZAX9ePtzV">Cut to subnote</a>- </li>- </ul>- </td>- </tr>- <tr>- <td><a class="reference-link" href="#root/_help_gLt3vA97tMcp">Premium features</a>- </td>- <td>- <ul>- <li><a class="reference-link" href="#root/_help_ZlN4nump6EbW">Slash Commands</a>- </li>- <li><a class="reference-link" href="#root/_help_KC1HB96bqqHX">Templates</a>- </li>- <li><a class="reference-link" href="#root/_help_5wZallV2Qo1t">Format Painter</a>- </li>- </ul>- </td>- </tr>- </tbody>- </table>- </figure>- <h2>Read-Only vs. Editing Mode</h2>- <p>Text notes are usually opened in edit mode. However, they may open in- read-only mode if the note is too big or the note is explicitly marked- as read-only. For more information, see <a class="reference-link"- href="#root/_help_CoFPLs3dRlXc">Read-Only Notes</a>.</p>- <h2>Keyboard shortcuts</h2>- <p>There are numerous keyboard shortcuts to format the text without having- to use the mouse. For a reference of all the key combinations, see - <a- class="reference-link" href="#root/_help_A9Oc6YKKc65v">Keyboard Shortcuts</a>. In addition, see <a class="reference-link"- href="#root/_help_QrtTYPmdd1qq">Markdown-like formatting</a> as an alternative- to the keyboard shortcuts.</p>- <h2>Content width</h2>- <p>For readability purposes on wider screens, the width of text notes is- limited via a configurable option. See <a class="reference-link" href="#root/_help_t596jLvPrqkS">Content width</a> for- more information.</p>- <h2>Technical details</h2>- <p>For the text editing functionality, Trilium uses a commercial product- (with an open-source base) called <a class="reference-link" href="#root/_help_MI26XDLSAlCD">CKEditor</a>.- This brings the benefit of having a powerful WYSIWYG (What You See Is What- You Get) editor.</p>\ No newline at end of file+<table>+ <thead>+ <tr>+ <th>Dedicated article</th>+ <th>Feature</th>+ </tr>+ </thead>+ <tbody>+ <tr>+ <td><a class="reference-link" href="#root/_help_Gr6xFaF6ioJ5">General formatting</a>+ </td>+ <td>+ <ul>+ <li>Headings (section titles, paragraph)</li>+ <li>Font size</li>+ <li>Bold, italic, underline, strike-through</li>+ <li>Superscript, subscript</li>+ <li>Font color & background color</li>+ <li>Remove formatting</li>+ </ul>+ </td>+ </tr>+ <tr>+ <td><a class="reference-link" href="#root/_help_S6Xx8QIWTV66">Lists</a>+ </td>+ <td>+ <ul>+ <li>Bulleted lists</li>+ <li>Numbered lists</li>+ <li>To-do lists</li>+ </ul>+ </td>+ </tr>+ <tr>+ <td><a class="reference-link" href="#root/_help_NwBbFdNZ9h7O">Block quotes & admonitions</a>+ </td>+ <td>+ <ul>+ <li>Block quotes</li>+ <li>Admonitions</li>+ </ul>+ </td>+ </tr>+ <tr>+ <td><a class="reference-link" href="#root/_help_NdowYOC1GFKS">Tables</a>+ </td>+ <td>+ <ul>+ <li>Basic tables</li>+ <li>Merging cells</li>+ <li>Styling tables and cells.</li>+ <li>Table captions</li>+ </ul>+ </td>+ </tr>+ <tr>+ <td><a class="reference-link" href="#root/_help_UYuUB1ZekNQU">Developer-specific formatting</a>+ </td>+ <td>+ <ul>+ <li>Inline code</li>+ <li>Code blocks</li>+ <li>Keyboard shortcuts</li>+ </ul>+ </td>+ </tr>+ <tr>+ <td><a class="reference-link" href="#root/_help_AgjCISero73a">Footnotes</a>+ </td>+ <td>+ <ul>+ <li>Footnotes</li>+ </ul>+ </td>+ </tr>+ <tr>+ <td><a class="reference-link" href="#root/_help_mT0HEkOsz6i1">Images</a>+ </td>+ <td>+ <ul>+ <li>Images</li>+ </ul>+ </td>+ </tr>+ <tr>+ <td><a class="reference-link" href="#root/_help_QEAPj01N5f7w">Links</a>+ </td>+ <td>+ <ul>+ <li>External links</li>+ <li>Internal Trilium links</li>+ </ul>+ </td>+ </tr>+ <tr>+ <td><a class="reference-link" href="#root/_help_nBAXQFj20hS1">Include Note</a>+ </td>+ <td>+ <ul>+ <li>Include note</li>+ </ul>+ </td>+ </tr>+ <tr>+ <td><a class="reference-link" href="#root/_help_CohkqWQC1iBv">Insert buttons</a>+ </td>+ <td>+ <ul>+ <li>Symbols</li>+ <li><a class="reference-link" href="#root/_help_YfYAtQBcfo5V">Math Equations</a>+ </li>+ <li>Mermaid diagrams</li>+ <li>Horizontal ruler</li>+ <li>Page break</li>+ </ul>+ </td>+ </tr>+ <tr>+ <td><a class="reference-link" href="#root/_help_dEHYtoWWi8ct">Other features</a>+ </td>+ <td>+ <ul>+ <li>Indentation+ <ul>+ <li>Markdown import</li>+ </ul>+ </li>+ <li><a class="reference-link" href="#root/_help_2x0ZAX9ePtzV">Cut to subnote</a>+ </li>+ </ul>+ </td>+ </tr>+ <tr>+ <td><a class="reference-link" href="#root/_help_gLt3vA97tMcp">Premium features</a>+ </td>+ <td>+ <ul>+ <li><a class="reference-link" href="#root/_help_ZlN4nump6EbW">Slash Commands</a>+ </li>+ <li><a class="reference-link" href="#root/_help_KC1HB96bqqHX">Templates</a>+ </li>+ <li><a class="reference-link" href="#root/_help_5wZallV2Qo1t">Format Painter</a>+ </li>+ </ul>+ </td>+ </tr>+ </tbody>+</table>+<h2>Read-Only vs. Editing Mode</h2>+<p>Text notes are usually opened in edit mode. However, they may open in+ read-only mode if the note is too big or the note is explicitly marked+ as read-only. For more information, see <a class="reference-link"+ href="#root/_help_CoFPLs3dRlXc">Read-Only Notes</a>.</p>+<h2>Keyboard shortcuts</h2>+<p>There are numerous keyboard shortcuts to format the text without having+ to use the mouse. For a reference of all the key combinations, see + <a+ class="reference-link" href="#root/_help_A9Oc6YKKc65v">Keyboard Shortcuts</a>. In addition, see <a class="reference-link"+ href="#root/_help_QrtTYPmdd1qq">Markdown-like formatting</a> as an alternative+ to the keyboard shortcuts.</p>+<h2>Content width</h2>+<p>For readability purposes on wider screens, the width of text notes is+ limited via a configurable option. See <a class="reference-link" href="#root/_help_t596jLvPrqkS">Content width</a> for+ more information.</p>+<h2>Technical details</h2>+<p>For the text editing functionality, Trilium uses a commercial product+ (with an open-source base) called <a class="reference-link" href="#root/_help_MI26XDLSAlCD">CKEditor</a>.+ This brings the benefit of having a powerful WYSIWYG (What You See Is What+ You Get) editor.</p>\ No newline at end of filediff --git a/apps/server/src/assets/doc_notes/en/User Guide/User Guide/Note Types/Text/1_Link Previews_image.png b/apps/server/src/assets/doc_notes/en/User Guide/User Guide/Note Types/Text/1_Link Previews_image.pngnew file mode 100644index 0000000000..a36b38cdb1Binary files /dev/null and b/apps/server/src/assets/doc_notes/en/User Guide/User Guide/Note Types/Text/1_Link Previews_image.png differdiff --git a/apps/server/src/assets/doc_notes/en/User Guide/User Guide/Note Types/Text/2_Link Previews_image.png b/apps/server/src/assets/doc_notes/en/User Guide/User Guide/Note Types/Text/2_Link Previews_image.pngnew file mode 100644index 0000000000..9d74aab0ddBinary files /dev/null and b/apps/server/src/assets/doc_notes/en/User Guide/User Guide/Note Types/Text/2_Link Previews_image.png differdiff --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 5dfc2e23ad..f265d77c05 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@@ -3,15 +3,28 @@<h2>Display modes</h2><p>A link preview can be displayed in one of three modes:</p><ul>- <li><strong>Mention</strong> — an inline pill showing the site's favicon and- page title. Use this when you want the link to flow with the surrounding- paragraph.</li>- <li><strong>Card</strong> — a block-level preview with thumbnail, title, description,- and site name. Use this when the link is the focus of a paragraph.</li>+ <li>+ <img class="image_resized" style="aspect-ratio:251/42;width:25%;" src="Link Previews_image.png"+ width="251" height="42"><strong><br>Inline </strong>— a pill showing the site's favicon and page+ title. Use this when you want the link to flow with the surrounding paragraph.</li><li- ><strong>Embed</strong> — a block-level interactive embed. Currently supported- for YouTube videos, which render as a playable iframe. For URLs that don't- support an embedded view, this mode falls back to the Card layout.</li>+ >+ <p>+ <img class="image_resized" style="aspect-ratio:1217/196;width:61.28%;"+ src="2_Link Previews_image.png" width="1217" height="196">+ </p>+ <p><strong>Card</strong> — a block-level preview with thumbnail, title, description,+ and site name. Use this when the link is the focus of a paragraph.</p>+ </li>+ <li>+ <p>+ <img class="image_resized" style="aspect-ratio:994/563;width:49.28%;"+ src="1_Link Previews_image.png" width="994" height="563">+ </p>+ <p><strong>Embed</strong> — a block-level interactive embed. Currently supported+ for YouTube videos, which render as a playable iframe. For URLs that don't+ support an embedded view, this mode falls back to the Card layout.</p>+ </li></ul><h2>Inserting a link preview</h2><p>There are two ways to create one:</p>diff --git a/apps/server/src/assets/doc_notes/en/User Guide/User Guide/Note Types/Text/Link Previews_image.png b/apps/server/src/assets/doc_notes/en/User Guide/User Guide/Note Types/Text/Link Previews_image.pngnew file mode 100644index 0000000000..5a9a57da56Binary files /dev/null and b/apps/server/src/assets/doc_notes/en/User Guide/User Guide/Note Types/Text/Link Previews_image.png differdiff --git a/docs/Developer Guide/Developer Guide/Documentation.md b/docs/Developer Guide/Developer Guide/Documentation.mdindex 721d714d62..a9871cb007 100644--- a/docs/Developer Guide/Developer Guide/Documentation.md+++ b/docs/Developer Guide/Developer Guide/Documentation.md@@ -1,5 +1,5 @@# Documentation-There are multiple types of documentation for Trilium:<img class="image-style-align-right" src="api/images/0GR9TkFdcyfQ/Documentation_image.png" width="205" height="162">+There are multiple types of documentation for Trilium:<img class="image-style-align-right" src="api/images/DooPdhNGCC8F/Documentation_image.png" width="205" height="162">* The _User Guide_ represents the user-facing documentation. This documentation can be browsed by users directly from within Trilium, by pressing <kbd>F1</kbd>.* The _Developer's Guide_ represents a set of Markdown documents that present the internals of Trilium, for developers.diff --git a/docs/User Guide/!!!meta.json b/docs/User Guide/!!!meta.jsonindex 41208fd491..d530ae8f95 100644--- a/docs/User Guide/!!!meta.json+++ b/docs/User Guide/!!!meta.json@@ -8857,7 +8857,32 @@],"format": "markdown","dataFileName": "Link Previews.md",- "attachments": []+ "attachments": [+ {+ "attachmentId": "EfsHrc7ELh78",+ "title": "image.png",+ "role": "image",+ "mime": "image/png",+ "position": 10,+ "dataFileName": "Link Previews_image.png"+ },+ {+ "attachmentId": "lVAQ8JhgcyKa",+ "title": "image.png",+ "role": "image",+ "mime": "image/png",+ "position": 10,+ "dataFileName": "1_Link Previews_image.png"+ },+ {+ "attachmentId": "Rqiah3ePyp71",+ "title": "image.png",+ "role": "image",+ "mime": "image/png",+ "position": 10,+ "dataFileName": "2_Link Previews_image.png"+ }+ ]},{"isClone": false,diff --git a/docs/User Guide/User Guide/Note Types/Text/1_Link Previews_image.png b/docs/User Guide/User Guide/Note Types/Text/1_Link Previews_image.pngnew file mode 100644index 0000000000..a36b38cdb1Binary files /dev/null and b/docs/User Guide/User Guide/Note Types/Text/1_Link Previews_image.png differdiff --git a/docs/User Guide/User Guide/Note Types/Text/2_Link Previews_image.png b/docs/User Guide/User Guide/Note Types/Text/2_Link Previews_image.pngnew file mode 100644index 0000000000..9d74aab0ddBinary files /dev/null and b/docs/User Guide/User Guide/Note Types/Text/2_Link Previews_image.png differdiff --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 9742a75dee..6b48066178 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@@ -5,9 +5,13 @@ Link previews turn a pasted URL into a rich, metadata-aware widget that can be dA link preview can be displayed in one of three modes:-* **Mention** — an inline pill showing the site's favicon and page title. Use this when you want the link to flow with the surrounding paragraph.-* **Card** — a block-level preview with thumbnail, title, description, and site name. Use this when the link is the focus of a paragraph.-* **Embed** — a block-level interactive embed. Currently supported for YouTube videos, which render as a playable iframe. For URLs that don't support an embedded view, this mode falls back to the Card layout.+* <img class="image_resized" style="aspect-ratio:251/42;width:25%;" src="Link Previews_image.png" width="251" height="42">**Inline** — a pill showing the site's favicon and page title. Use this when you want the link to flow with the surrounding paragraph.+* <img class="image_resized" style="aspect-ratio:1217/196;width:61.28%;" src="2_Link Previews_image.png" width="1217" height="196">++ **Card** — a block-level preview with thumbnail, title, description, and site name. Use this when the link is the focus of a paragraph.+* <img class="image_resized" style="aspect-ratio:994/563;width:49.28%;" src="1_Link Previews_image.png" width="994" height="563">++ **Embed** — a block-level interactive embed. Currently supported for YouTube videos, which render as a playable iframe. For URLs that don't support an embedded view, this mode falls back to the Card layout.## Inserting a link previewdiff --git a/docs/User Guide/User Guide/Note Types/Text/Link Previews_image.png b/docs/User Guide/User Guide/Note Types/Text/Link Previews_image.pngnew file mode 100644index 0000000000..5a9a57da56Binary files /dev/null and b/docs/User Guide/User Guide/Note Types/Text/Link Previews_image.png differ