Since v0.102.0 it's possible to annotate PDFs. To do so, look for the
@@ -38,20 +32,20 @@ class="admonition tip">
Supported annotations
The following annotation methods are supported:
-
Highlight
+
Highlight Allows highlighting text with one of the predefined colors.
-
The thickness is also adjustable.
-
It's also possible to highlight the blank space, turning the feature more
+
The thickness is also adjustable.
+
It's also possible to highlight the blank space, turning the feature more
into a thicker pen.
-
Text
+
Text Allows adding arbitrary text, with a custom color and size.
-
Pen
+
Pen Allows free drawing on the document, with variable color, thickness and
opacity.
-
Image
+
Image Allows inserting images from outside Trilium directly into the document.
Editing existing annotations
@@ -69,7 +63,7 @@ class="admonition tip">
if downloading (for external use outside Trilium) or sharing the note.
The downside is that the entire PDF needs to be sent back to the server,
which can slow down performance for larger documents. If you encounter
- any issues from this system, feel free to report it.
+ any issues from this system, feel free to report it.
Filling out forms
Similar to annotations, forms are also supported by Trilium since v0.102.0.
If the document has fields that can be filled-in, they will be indicated
@@ -77,52 +71,49 @@ class="admonition tip">
Simply type text in the forms and they will be automatically saved.
Sidebar navigation
When a PDF file is opened in Trilium the Right Sidebar is
- augmented with PDF-specific navigation, with the following features:
+ href="#root/_help_RnaPdbciOfeq">Right Sidebar is augmented with PDF-specific
+ navigation, with the following features:
-
Table of contents/outline
+
Table of contents/outline
-
All the headings and “bookmarks” will be displayed hierarchially.
-
The heading on the current page is also highlighted (note that it can
+
All the headings and “bookmarks” will be displayed hierarchially.
+
The heading on the current page is also highlighted (note that it can
be slightly offset depending on how many headings are on the same page).
-
Clicking on a heading will jump to the corresponding position in the PDF.
+
Clicking on a heading will jump to the corresponding position in the PDF.
-
-
Pages
-
-
A preview of all the pages with a small thumbnail.
-
Clicking on a page will automatically navigate to that page.
-
-
-
Attachments
-
-
If the PDF has its own attachments (not to be confused with Trilium's
- Attachments), they will be displayed in a list.
-
Some information such as the name and size of the attachment are displayed.
-
It's possible to download the attachment by clicking on the download button.
+
+
Pages
+
+
A preview of all the pages with a small thumbnail.
+
Clicking on a page will automatically navigate to that page.
-
-
Layers
-
-
A less common feature, if the PDF has toggle-able layers, these layers
- will be displayed in a list here.
-
It's possible to toggle the visibility for each individual layer.
-
-
+
+
Attachments
+
+
If the PDF has its own attachments (not to be confused with Trilium's
+ Attachments), they will be displayed in a list.
+
Some information such as the name and size of the attachment are displayed.
+
It's possible to download the attachment by clicking on the download button.
+
+
+
Layers
+
+
A less common feature, if the PDF has toggle-able layers, these layers
+ will be displayed in a list here.
+
It's possible to toggle the visibility for each individual layer.
+
+
Share functionality
-
PDFs can also be shared using the Sharing feature.
+
PDFs can also be shared using the Sharing feature.
This will also use Trilium's customized PDF viewer.
If you are using a reverse proxy on your server with strict access limitations
- for the share functionality, make sure that [host].com/pdfjs directory
- is accessible. Note that this directory is outside the /share route
+ for the share functionality, make sure that [host].com/pdfjs directory
+ is accessible. Note that this directory is outside the /share route
as it's common with the rest of the application.
\ No newline at end of file
diff --git a/apps/server/src/assets/doc_notes/en/User Guide/User Guide/Note Types/Render Note.html b/apps/server/src/assets/doc_notes/en/User Guide/User Guide/Note Types/Render Note.html
index 832156f7a..5e90ab607 100644
--- a/apps/server/src/assets/doc_notes/en/User Guide/User Guide/Note Types/Render Note.html
+++ b/apps/server/src/assets/doc_notes/en/User Guide/User Guide/Note Types/Render Note.html
@@ -7,10 +7,13 @@
via an attribute.
Creating a render note
-
Create a Code note
- with the HTML language, with what needs to be displayed (for example <p>Hello world.</p>).
Assign the renderNoterelation to
point at the previously created code note.
Legacy scripting using jQuery
@@ -19,14 +22,14 @@
change parts of the note using JavaScript.
For a simple example, we are going to create a render note that displays
the current date in a field.
-
To do so, first create an HTML code note with the following content:
<h1>Current date & time</h1>
+
To do so, first create an HTML code note with the following content:
<h1>Current date & time</h1>
The current date & time is <span class="date"></span>
Now we need to add the script. Create another Code, but this time of JavaScript (frontend)
language. Make sure the newly created note is a direct child of the HTML
note created previously; with the following content:
Custom Widgets,
where JSX can be used to replace the old, jQuery-based mechanism.
To get started, the first step is to enable JSX in the list of Code languages.
@@ -20,10 +20,9 @@
Import/exports
When using Preact with JSX, there is a special syntax which provides ES-like
- imports. This import syntax makes way for
- a more intuitive that doesn't make use of global objects and paves the
- way for better auto-completion support that might be introduced in the
- future.
+ imports. This import syntax makes way for a more intuitive that
+ doesn't make use of global objects and paves the way for better auto-completion
+ support that might be introduced in the future.
These imports are syntactic sugar meant to replace the usage for the
- apiglobal object (see Script API).
+
These imports are syntactic sugar meant to replace the usage for the api global
+ object (see Script API).
Under the hood
Unlike JavaScript, JSX requires pre-processing to turn it into JavaScript
diff --git a/apps/server/src/assets/doc_notes/en/User Guide/User Guide/Scripting/Frontend Basics/Preact/Built-in components.html b/apps/server/src/assets/doc_notes/en/User Guide/User Guide/Scripting/Frontend Basics/Preact/Built-in components.html
index 209519800..7993c3517 100644
--- a/apps/server/src/assets/doc_notes/en/User Guide/User Guide/Scripting/Frontend Basics/Preact/Built-in components.html
+++ b/apps/server/src/assets/doc_notes/en/User Guide/User Guide/Scripting/Frontend Basics/Preact/Built-in components.html
@@ -7,7 +7,7 @@
also available to Custom Widgets and
Render Note.
-
To use these components, simply import them from trilium:preact:
import { ActionButton, Button, LinkButton } from "trilium:preact";
+
To use these components, simply import them from trilium:preact:
import { ActionButton, Button, LinkButton } from "trilium:preact";
and then use them:
export default function MyRenderNote() {
const onClick = () => showMessage("A button was pressed");
@@ -33,12 +33,12 @@
to custom widgets and JSX render notes.
To use it, simply:
-
Create a render note.
-
Create a child code note of JSX type with the content of this file:
+
Create a render note.
+
Create a child code note of JSX type with the content of this file:
Widget showcase
-
Set the ~renderNote relation of the parent
- note to the child note.
-
Refresh the render note to see the results.
+
Set the ~renderNote relation of the parent note to the child
+ note.
+
Refresh the render note to see the results.
\ No newline at end of file
diff --git a/apps/server/src/assets/doc_notes/en/User Guide/User Guide/Scripting/Frontend Basics/Preact/CSS.html b/apps/server/src/assets/doc_notes/en/User Guide/User Guide/Scripting/Frontend Basics/Preact/CSS.html
index a148c29f2..6f623f07b 100644
--- a/apps/server/src/assets/doc_notes/en/User Guide/User Guide/Scripting/Frontend Basics/Preact/CSS.html
+++ b/apps/server/src/assets/doc_notes/en/User Guide/User Guide/Scripting/Frontend Basics/Preact/CSS.html
@@ -9,4 +9,4 @@
Custom CSS file
Simply create a Custom app-wide CSS.
Make sure the class names are unique enough to not intersect with other
- UI elements, consider adding a prefix (e.g. x-mywidget-).
\ No newline at end of file
+ UI elements, consider adding a prefix (e.g. x-mywidget-).
\ No newline at end of file
diff --git a/apps/server/src/assets/doc_notes/en/User Guide/User Guide/Scripting/Frontend Basics/Preact/Component libraries.html b/apps/server/src/assets/doc_notes/en/User Guide/User Guide/Scripting/Frontend Basics/Preact/Component libraries.html
index 08c797737..15dc75646 100644
--- a/apps/server/src/assets/doc_notes/en/User Guide/User Guide/Scripting/Frontend Basics/Preact/Component libraries.html
+++ b/apps/server/src/assets/doc_notes/en/User Guide/User Guide/Scripting/Frontend Basics/Preact/Component libraries.html
@@ -6,21 +6,21 @@
Here's an example child hierarchy using Render Note:
-
My render note
+
My render note Note type: Render Note
- Link ~renderNote to the child note (Render note with subcomponents)
+ Link ~renderNote to the child note (Render note with subcomponents)
Note that the custom widget must be inside the content area (so note detail
widget) for this to work properly, especially when dealing with splits.
-
useActiveNoteContext
-
useActiveNoteContext is an alternative to useNoteContext which
- works even if the widget is not within the note detail section and it automatically
- switches the note context as the user is navigating around between tabs
- and splits.
-
useNoteProperty
-
This hook allows “listening” for changes to a particular property of a FNote,
- such as the title or type of a note. The benefit
- from using the hook is that it actually reacts to changes, for example
- if the note title or type is changed.
\ No newline at end of file
+
useActiveNoteContext
+
useActiveNoteContext is an alternative
+ to useNoteContext which works even if the
+ widget is not within the note detail section and it automatically switches
+ the note context as the user is navigating around between tabs and splits.
+
useNoteProperty
+
This hook allows “listening” for changes to a particular property of a
+ FNote, such as the title or
+ typeof a note. The benefit from using the hook is that it actually
+ reacts to changes, for example if the note title or type is changed.
\ No newline at end of file
diff --git a/docs/Developer Guide/Developer Guide/Documentation.md b/docs/Developer Guide/Developer Guide/Documentation.md
index ec75c8e75..ec8b903e0 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:
+There are multiple types of documentation for Trilium:
* The _User Guide_ represents the user-facing documentation. This documentation can be browsed by users directly from within Trilium, by pressing F1.
* The _Developer's Guide_ represents a set of Markdown documents that present the internals of Trilium, for developers.
diff --git a/docs/User Guide/User Guide/FAQ.md b/docs/User Guide/User Guide/FAQ.md
index f98ba3815..e97cbecc6 100644
--- a/docs/User Guide/User Guide/FAQ.md
+++ b/docs/User Guide/User Guide/FAQ.md
@@ -32,7 +32,7 @@ Common request is to allow multiple users collaborate, share notes etc. So far I
This is normally not supported - one Trilium process can open only a single instance of a [database](Advanced%20Usage/Database.md). However, you can run two Trilium processes (from one installation), each connected to a separate document. To achieve this, you need to set a location for the [data directory](Installation%20%26%20Setup/Data%20directory.md) in the `TRILIUM_DATA_DIR` environment variable and separate port on `TRILIUM_PORT` environment variable. How to do that depends on the platform, in Unix-based systems you can achieve that by running command such as this:
-```
+```sh
TRILIUM_DATA_DIR=/home/me/path/to/data/dir TRILIUM_PORT=12345 trilium
```
@@ -44,7 +44,7 @@ No.
These general purpose sync apps are not suitable to sync database files which are open and being worked on by another application. The result is that they will corrupt the database file, resulting in data loss and this message in the Trilium logs:
-```
+```plain
SqliteError: database disk image is malformed
```
diff --git a/docs/User Guide/User Guide/Note Types/Render Note.md b/docs/User Guide/User Guide/Note Types/Render Note.md
index 01e2e1c24..c0c4e4eea 100644
--- a/docs/User Guide/User Guide/Note Types/Render Note.md
+++ b/docs/User Guide/User Guide/Note Types/Render Note.md
@@ -17,7 +17,7 @@ For a simple example, we are going to create a render note that displays the cur
To do so, first create an HTML code note with the following content:
-```
+```html
Current date & time
The current date & time is
```
@@ -44,7 +44,7 @@ Here are the steps to creating a simple render note:
2. Create a child Code note with JSX as the language.
As an example, use the following content:
- ```
+ ```jsx
export default function() {
return (
<>
diff --git a/docs/User Guide/User Guide/Scripting/Frontend Basics/Preact/Component libraries.md b/docs/User Guide/User Guide/Scripting/Frontend Basics/Preact/Component libraries.md
index 150858815..65807e0fb 100644
--- a/docs/User Guide/User Guide/Scripting/Frontend Basics/Preact/Component libraries.md
+++ b/docs/User Guide/User Guide/Scripting/Frontend Basics/Preact/Component libraries.md
@@ -13,7 +13,7 @@ Here's an example child hierarchy using Note context aware widget, Preact exposes the current note context in the `useNoteContext` hook:
-```
+```jsx
import { defineWidget, useNoteContext, useNoteProperty } from "trilium:preact";
export default defineWidget({