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): mention changes to Mermaid diagrams
Elian Dorane623e91a8267
diff --git a/apps/server/src/assets/doc_notes/en/User Guide/User Guide/Note Types.html b/apps/server/src/assets/doc_notes/en/User Guide/User Guide/Note Types.htmlindex 2e4a185647..e1c453eb6b 100644--- a/apps/server/src/assets/doc_notes/en/User Guide/User Guide/Note Types.html+++ b/apps/server/src/assets/doc_notes/en/User Guide/User Guide/Note Types.html@@ -9,8 +9,7 @@note where to place the new one and select:</p><ul><li><em>Insert note after</em>, to put the new note underneath the one selected.</li>- <li- ><em>Insert child note</em>, to insert the note as a child of the selected+ <li><em>Insert child note</em>, to insert the note as a child of the selectednote.</li></ul><p>@@ -21,8 +20,7 @@<li>When adding a <a href="#root/_help_QEAPj01N5f7w">link</a> in a <a class="reference-link"href="#root/_help_iPIMuisry3hd">Text</a> note, type the desired title ofthe new note and press Enter. Afterwards the type of the note will be asked.</li>- <li- >Similarly, when creating a new tab, type the desired title and press Enter.</li>+ <li>Similarly, when creating a new tab, type the desired title and press Enter.</li></ul><h2>Changing the type of a note</h2><p>It is possible to change the type of a note after it has been created@@ -32,96 +30,94 @@edit the <a href="#root/_help_4FahAwuGTAwC">source of a note</a>.</p><h2>Supported note types</h2><p>The following note types are supported by Trilium:</p>-<figure class="table">- <table>- <thead>- <tr>- <th>Note Type</th>- <th>Description</th>- </tr>- </thead>- <tbody>- <tr>- <td><a class="reference-link" href="#root/_help_iPIMuisry3hd">Text</a>- </td>- <td>The default note type, which allows for rich text formatting, images,- admonitions and right-to-left support.</td>- </tr>- <tr>- <td><a class="reference-link" href="#root/_help_6f9hih2hXXZk">Code</a>- </td>- <td>Uses a mono-space font and can be used to store larger chunks of code- or plain text than a text note, and has better syntax highlighting.</td>- </tr>- <tr>- <td><a class="reference-link" href="#root/_help_m523cpzocqaD">Saved Search</a>- </td>- <td>Stores the information about a search (the search text, criteria, etc.)- for later use. Can be used for quick filtering of a large amount of notes,- for example. The search can easily be triggered.</td>- </tr>- <tr>- <td><a class="reference-link" href="#root/_help_iRwzGnHPzonm">Relation Map</a>- </td>- <td>Allows easy creation of notes and relations between them. Can be used- for mainly relational data such as a family tree.</td>- </tr>- <tr>- <td><a class="reference-link" href="#root/_help_bdUJEHsAPYQR">Note Map</a>- </td>- <td>Displays the relationships between the notes, whether via relations or- their hierarchical structure.</td>- </tr>- <tr>- <td><a class="reference-link" href="#root/_help_HcABDtFCkbFN">Render Note</a>- </td>- <td>Used in <a class="reference-link" href="#root/_help_CdNpE2pqjmI6">Scripting</a>,- it displays the HTML content of another note. This allows displaying any- kind of content, provided there is a script behind it to generate it.</td>- </tr>- <tr>- <td><a class="reference-link" href="#root/_help_GTwFsgaA0lCt">Collections</a>- </td>- <td>Displays the children of the note either as a grid, a list, or for a more- specialized case: a calendar. - <br>- <br>Generally useful for easy reading of short notes.</td>- </tr>- <tr>- <td><a class="reference-link" href="#root/_help_s1aBHPd79XYj">Mermaid Diagrams</a>- </td>- <td>Displays diagrams such as bar charts, flow charts, state diagrams, etc.- Requires a bit of technical knowledge since the diagrams are written in- a specialized format.</td>- </tr>- <tr>- <td><a class="reference-link" href="#root/_help_grjYqerjn243">Canvas</a>- </td>- <td>Allows easy drawing of sketches, diagrams, handwritten content. Uses the- same technology behind <a href="https://excalidraw.com">excalidraw.com</a>.</td>- </tr>- <tr>- <td><a class="reference-link" href="#root/_help_1vHRoWCEjj0L">Web View</a>- </td>- <td>Displays the content of an external web page, similar to a browser.</td>- </tr>- <tr>- <td><a class="reference-link" href="#root/_help_gBbsAeiuUxI5">Mind Map</a>- </td>- <td>Easy for brainstorming ideas, by placing them in a hierarchical layout.</td>- </tr>- <tr>- <td><a class="reference-link" href="#root/_help_81SGnPGMk7Xc">Geo Map</a>- </td>- <td>Displays the children of the note as a geographical map, one use-case- would be to plan vacations. It even has basic support for tracks. Notes- can also be created from it.</td>- </tr>- <tr>- <td><a class="reference-link" href="#root/_help_W8vYD3Q1zjCR">File</a>- </td>- <td>Represents an uploaded file such as PDFs, images, video or audio files.</td>- </tr>- </tbody>- </table>-</figure>\ No newline at end of file+<table>+ <thead>+ <tr>+ <th>Note Type</th>+ <th>Description</th>+ </tr>+ </thead>+ <tbody>+ <tr>+ <td><a class="reference-link" href="#root/_help_iPIMuisry3hd">Text</a>+ </td>+ <td>The default note type, which allows for rich text formatting, images,+ admonitions and right-to-left support.</td>+ </tr>+ <tr>+ <td><a class="reference-link" href="#root/_help_6f9hih2hXXZk">Code</a>+ </td>+ <td>Uses a mono-space font and can be used to store larger chunks of code+ or plain text than a text note, and has better syntax highlighting.</td>+ </tr>+ <tr>+ <td><a class="reference-link" href="#root/_help_m523cpzocqaD">Saved Search</a>+ </td>+ <td>Stores the information about a search (the search text, criteria, etc.)+ for later use. Can be used for quick filtering of a large amount of notes,+ for example. The search can easily be triggered.</td>+ </tr>+ <tr>+ <td><a class="reference-link" href="#root/_help_iRwzGnHPzonm">Relation Map</a>+ </td>+ <td>Allows easy creation of notes and relations between them. Can be used+ for mainly relational data such as a family tree.</td>+ </tr>+ <tr>+ <td><a class="reference-link" href="#root/_help_bdUJEHsAPYQR">Note Map</a>+ </td>+ <td>Displays the relationships between the notes, whether via relations or+ their hierarchical structure.</td>+ </tr>+ <tr>+ <td><a class="reference-link" href="#root/_help_HcABDtFCkbFN">Render Note</a>+ </td>+ <td>Used in <a class="reference-link" href="#root/_help_CdNpE2pqjmI6">Scripting</a>,+ it displays the HTML content of another note. This allows displaying any+ kind of content, provided there is a script behind it to generate it.</td>+ </tr>+ <tr>+ <td><a class="reference-link" href="#root/_help_GTwFsgaA0lCt">Collections</a>+ </td>+ <td>Displays the children of the note either as a grid, a list, or for a more+ specialized case: a calendar. + <br>+ <br>Generally useful for easy reading of short notes.</td>+ </tr>+ <tr>+ <td><a class="reference-link" href="#root/_help_s1aBHPd79XYj">Mermaid Diagrams</a>+ </td>+ <td>Displays diagrams such as bar charts, flow charts, state diagrams, etc.+ Requires a bit of technical knowledge since the diagrams are written in+ a specialized format.</td>+ </tr>+ <tr>+ <td><a class="reference-link" href="#root/_help_grjYqerjn243">Canvas</a>+ </td>+ <td>Allows easy drawing of sketches, diagrams, handwritten content. Uses the+ same technology behind <a href="https://excalidraw.com">excalidraw.com</a>.</td>+ </tr>+ <tr>+ <td><a class="reference-link" href="#root/_help_1vHRoWCEjj0L">Web View</a>+ </td>+ <td>Displays the content of an external web page, similar to a browser.</td>+ </tr>+ <tr>+ <td><a class="reference-link" href="#root/_help_gBbsAeiuUxI5">Mind Map</a>+ </td>+ <td>Easy for brainstorming ideas, by placing them in a hierarchical layout.</td>+ </tr>+ <tr>+ <td><a class="reference-link" href="#root/_help_81SGnPGMk7Xc">Geo Map</a>+ </td>+ <td>Displays the children of the note as a geographical map, one use-case+ would be to plan vacations. It even has basic support for tracks. Notes+ can also be created from it.</td>+ </tr>+ <tr>+ <td><a class="reference-link" href="#root/_help_W8vYD3Q1zjCR">File</a>+ </td>+ <td>Represents an uploaded file such as PDFs, images, video or audio files.</td>+ </tr>+ </tbody>+</table>\ No newline at end of filediff --git a/apps/server/src/assets/doc_notes/en/User Guide/User Guide/Note Types/Mermaid Diagrams.html b/apps/server/src/assets/doc_notes/en/User Guide/User Guide/Note Types/Mermaid Diagrams.htmlindex 8329576815..eef00ae659 100644--- a/apps/server/src/assets/doc_notes/en/User Guide/User Guide/Note Types/Mermaid Diagrams.html+++ b/apps/server/src/assets/doc_notes/en/User Guide/User Guide/Note Types/Mermaid Diagrams.html@@ -6,10 +6,20 @@<img style="aspect-ratio:886/663;" src="2_Mermaid Diagrams_image.png"width="886" height="663"></figure>+<h2>Types of diagrams</h2><p>Trilium supports Mermaid, which adds support for various diagrams suchas flowchart, sequence diagram, class diagram, state diagram, pie charts,etc., all using a text description of the chart instead of manually drawingthe diagram.</p>+<p>Starting with v0.103.0, Mermaid diagrams no longer start with a sample+ flowchart, but instead a pane at the bottom will show all the supported+ diagrams with sample code for each:</p>+<ul>+ <li>Simply click on any of the samples to apply it.</li>+ <li>The pane will disappear as soon as something is typed in the code editor+ or a sample is selected. To make it appear again, simply remove the content+ of the note.</li>+</ul><h2>Layouts</h2><p>Depending on the chart being edited and user preference, there are twolayouts supported by the Mermaid note type:</p>diff --git a/apps/server/src/assets/doc_notes/en/User Guide/User Guide/Note Types/Spreadsheets.html b/apps/server/src/assets/doc_notes/en/User Guide/User Guide/Note Types/Spreadsheets.htmlindex 5b34fba0eb..010b594aa6 100644--- a/apps/server/src/assets/doc_notes/en/User Guide/User Guide/Note Types/Spreadsheets.html+++ b/apps/server/src/assets/doc_notes/en/User Guide/User Guide/Note Types/Spreadsheets.html@@ -11,17 +11,17 @@Calc, with support for formulas, data validation and text formatting.</p><h2>Spreadsheets vs. collections</h2><p>There is a slight overlap between spreadsheets and the <a class="reference-link"- href="#root/pOsGYCXsbNQG/GTwFsgaA0lCt/_help_2FvYrpmOXm29">Table</a> collection.- In general the table collection is useful to track meta-information about- notes (for example a collection of people and their birthdays), whereas- spreadsheets are quite useful for calculations since they support formulas.</p>+ href="#root/_help_2FvYrpmOXm29">Table</a> collection. In general the table+ collection is useful to track meta-information about notes (for example+ a collection of people and their birthdays), whereas spreadsheets are quite+ useful for calculations since they support formulas.</p><p>Spreadsheets also benefit from a wider range of features such as datavalidation, formatting and can work on a relatively large dataset.</p><h2>Important statement regarding data format</h2><p>For Trilium as a knowledge database, it is important that data is storedin a format that is easy to convert to something else. For example, <a- class="reference-link" href="#root/pOsGYCXsbNQG/KSZ04uQ2D1St/_help_iPIMuisry3hd">Text</a> notes can be exported to either HTML or Markdown, making+ class="reference-link" href="#root/_help_iPIMuisry3hd">Text</a> notes can be exported to either HTML or Markdown, makingit relatively easy to migrate to another software or simply to stand thetest of time.</p><p>For spreadsheets, Trilium uses a technology called <a href="https://docs.univer.ai/">Univer Sheets</a>,@@ -41,28 +41,16 @@<h2>Supported features</h2><p>The spreadsheet has support for the following features:</p><ul>- <li>- <p>Filtering</p>- </li>- <li>- <p>Sorting</p>- </li>- <li>- <p>Data validation</p>- </li>- <li>- <p>Conditional formatting</p>- </li>- <li>- <p>Notes / annotations</p>- </li>- <li>- <p>Find / replace</p>- </li>+ <li>Filtering</li>+ <li>Sorting</li>+ <li>Data validation</li>+ <li>Conditional formatting</li>+ <li>Notes / annotations</li>+ <li>Find / replace</li></ul><p>We might consider adding <a href="https://docs.univer.ai/guides/sheets/features/filter">other features</a> fromUniver at some point. If there is a particular feature that can be added- easily, it can be discussed over <a href="#root/pOsGYCXsbNQG/BgmBlOIl72jZ/_help_wy8So3yZZlH9">GitHub Issues</a>.</p>+ easily, it can be discussed over <a href="#root/_help_wy8So3yZZlH9">GitHub Issues</a>.</p><h2>Features not supported yet</h2><h3>Regarding Pro features</h3><p>Univer spreadsheets also feature a <a href="https://univer.ai/pro">Pro plan</a> which@@ -75,15 +63,9 @@<p>There are a few features that are already planned but are not supportedyet:</p><ul>- <li>- <p>Trilium-specific formulas (e.g. to obtain the title of a note).</p>- </li>- <li>- <p>User-defined formulas</p>- </li>- <li>- <p>Cross-workbook calculation</p>- </li>+ <li>Trilium-specific formulas (e.g. to obtain the title of a note).</li>+ <li>User-defined formulas</li>+ <li>Cross-workbook calculation</li></ul><p>If you would like us to work on these features, consider <a href="https://triliumnotes.org/en/support-us">supporting us</a>.</p><h2>Known limitations</h2>@@ -92,12 +74,10 @@<p>It is possible to share a spreadsheet, case in which a best-effort HTMLrendering of the spreadsheet is done.</p><ul>- <li>- <p>For more advanced use cases, this will most likely not work as intended.- Feel free to <a href="#root/pOsGYCXsbNQG/BgmBlOIl72jZ/_help_wy8So3yZZlH9">report issues</a>,- but keep in mind that we might not be able to have a complete feature parity- with all the features of Univer.</p>- </li>+ <li>For more advanced use cases, this will most likely not work as intended.+ Feel free to <a href="#root/_help_wy8So3yZZlH9">report issues</a>, but keep in+ mind that we might not be able to have a complete feature parity with all+ the features of Univer.</li></ul></li><li>diff --git a/docs/User Guide/!!!meta.json b/docs/User Guide/!!!meta.jsonindex c4d0e0a604..2a294ebda3 100644--- a/docs/User Guide/!!!meta.json+++ b/docs/User Guide/!!!meta.json@@ -10663,33 +10663,33 @@"type": "text","mime": "text/html","attributes": [- {- "type": "label",- "name": "iconClass",- "value": "bx bx-table",- "isInheritable": false,- "position": 30- },{"type": "relation","name": "internalLink","value": "2FvYrpmOXm29","isInheritable": false,- "position": 40+ "position": 10},{"type": "relation","name": "internalLink","value": "iPIMuisry3hd","isInheritable": false,- "position": 50+ "position": 20},{"type": "relation","name": "internalLink","value": "wy8So3yZZlH9","isInheritable": false,- "position": 60+ "position": 30+ },+ {+ "type": "label",+ "name": "iconClass",+ "value": "bx bx-table",+ "isInheritable": false,+ "position": 30}],"format": "markdown",diff --git a/docs/User Guide/User Guide.md b/docs/User Guide/User Guide.mdindex 3e5537135c..ce5357b26e 100644--- a/docs/User Guide/User Guide.md+++ b/docs/User Guide/User Guide.md@@ -15,7 +15,7 @@ Trilium is an open-source solution for note-taking and organizing a personal kno* <a class="reference-link" href="User%20Guide/Installation%20%26%20Setup/Desktop%20Installation.md">Desktop Installation</a>* <a class="reference-link" href="User%20Guide/Installation%20%26%20Setup/Server%20Installation.md">Server Installation</a>-* <a class="reference-link" href="User%20Guide/Scripting/Script%20API/Frontend%20API">Frontend API</a> or <a class="reference-link" href="User%20Guide/Scripting/Script%20API/Backend%20API.dat">Backend API</a>+* <a class="reference-link" href="User%20Guide/Scripting/Script%20API/Frontend%20API">Frontend API</a> or <a class="reference-link" href="User%20Guide/Scripting/Script%20API/Backend%20API.dat">[missing note]</a>* [ETAPI reference](User%20Guide/Advanced%20Usage/ETAPI%20\(REST%20API\)/API%20Reference.dat)## External linksdiff --git a/docs/User Guide/User Guide/Note Types/Mermaid Diagrams.md b/docs/User Guide/User Guide/Note Types/Mermaid Diagrams.mdindex ff2954f42a..14b0729875 100644--- a/docs/User Guide/User Guide/Note Types/Mermaid Diagrams.md+++ b/docs/User Guide/User Guide/Note Types/Mermaid Diagrams.md@@ -4,8 +4,15 @@<figure class="image image-style-align-center"><img style="aspect-ratio:886/663;" src="2_Mermaid Diagrams_image.png" width="886" height="663"></figure>+## Types of diagrams+Trilium supports Mermaid, which adds support for various diagrams such as flowchart, sequence diagram, class diagram, state diagram, pie charts, etc., all using a text description of the chart instead of manually drawing the diagram.+Starting with v0.103.0, Mermaid diagrams no longer start with a sample flowchart, but instead a pane at the bottom will show all the supported diagrams with sample code for each:++* Simply click on any of the samples to apply it.+* The pane will disappear as soon as something is typed in the code editor or a sample is selected. To make it appear again, simply remove the content of the note.+## LayoutsDepending on the chart being edited and user preference, there are two layouts supported by the Mermaid note type: