From 4ae38ac5d6365835e4dd4b5513cb913ae1af42d5 Mon Sep 17 00:00:00 2001
From: Elian Doran Embeddings are important as it allows us to have an compact
AI “summary” (it's not human readable text) of each of your Notes, that
we can then perform mathematical functions on (such as cosine similarity)
@@ -79,59 +80,59 @@ class="image image_resized" style="width:74.04%;">
These are the tools that currently exist, and will certainly be updated
to be more effectively (and even more to be added!): To start, simply press the Chat with Notes button in the
Launch Bar.
- Embeddings
+
+Embeddings
-
@@ -146,12 +147,12 @@ class="image image_resized" style="width:74.04%;">
search_notes
+ search_notes
-
keyword_search
+ keyword_search
-
attribute_search
+ attribute_search
-
search_suggestion
+ search_suggestion
-
read_note
+ read_note
-
create_note
+ create_note
-
update_note
+ update_note
-
manage_attributes
+ manage_attributes
-
manage_relationships
+ manage_relationships
-
extract_content
+ extract_content
-
calendar_integration
+ calendar_integration
-
Overview
If you don't see the button in the Launch Bar, +
If you don't see the button in the Launch Bar, you might need to move it from the Available Launchers section to the Visible Launchers section:
This functionality is still in preview, expect possible issues or even
the feature disappearing completely.
-
Feel free to report any
- issues you might have.
The read-only database is an alternative to Sharing notes. - Although the share functionality works pretty well to publish pages to - the Internet in a wiki, blog-like format it does not offer the full functionality - behind Trilium (such as the advanced Search or - the interactivity behind Collections or - the various Note Types).
+ href="#root/_help_R9pX4DGra2Vt">Sharing notes. Although the share functionality + works pretty well to publish pages to the Internet in a wiki, blog-like + format it does not offer the full functionality behind Trilium (such as + the advanced Search or + the interactivity behind Collections or + the various Note Types).When the database is in read-only mode, the Trilium application can be used as normal, but editing is disabled and changes are made in-memory only.
ERROR: read-only DB ignored will be shown
+ ERROR: read-only DB ignored will be shown
in the logs.First, make sure the database is initialized (e.g. the first set up is
- complete). Then modify the config.ini by
+ complete). Then modify the config.ini by
looking for the [General] section and adding a new readOnly field:
[General]
readOnly=true
If your server is already running, restart it to apply the changes.
diff --git a/apps/server/src/assets/doc_notes/en/User Guide/User Guide/Installation & Setup/Data directory.html b/apps/server/src/assets/doc_notes/en/User Guide/User Guide/Installation & Setup/Data directory.html index ad81d00c1..9f2de8853 100644 --- a/apps/server/src/assets/doc_notes/en/User Guide/User Guide/Installation & Setup/Data directory.html +++ b/apps/server/src/assets/doc_notes/en/User Guide/User Guide/Installation & Setup/Data directory.html @@ -1,12 +1,12 @@Data directory contains:
document.db - database
+ document.db - database
config.ini - instance level settings like port on which the
+ config.ini - instance level settings like port on which the
Trilium application runsbackup - contains automatically backup of
+ backup - contains automatically backup of
documentslog - contains application log fileslog - contains application log filesEasy way how to find out which data directory Trilium uses is to look @@ -18,14 +18,11 @@
Data directory is normally named trilium-data and it is stored
in:
/home/[user]/.local/share for LinuxC:\Users\[user]\AppData\Roaming for Windows Vista and up/Users/[user]/Library/Application Support for Mac OS/home/[user]/.local/share for LinuxC:\Users\[user]\AppData\Roaming for Windows Vista and up/Users/[user]/Library/Application Support for Mac OSIf you want to back up your Trilium data, just backup this single directory - it contains everything you need.
@@ -35,17 +32,15 @@ variable to some other location:TRILIUM_DATA_DIR.TRILIUM_DATA_DIR.export TRILIUM_DATA_DIR=/home/myuser/data/my-trilium-data
Apart from the data directory, some of the subdirectories of it can be moved elsewhere by changing an environment variable:
-| Environment variable | -Default value | -Description | -
|---|---|---|
TRILIUM_DOCUMENT_PATH
- |
- ${TRILIUM_DATA_DIR}/document.db
- |
- Path to the Database (storing - all notes and metadata). | -
TRILIUM_BACKUP_DIR
- |
- ${TRILIUM_DATA_DIR}/backup
- |
- Directory where automated Backup databases - are stored. | -
TRILIUM_LOG_DIR
- |
- ${TRILIUM_DATA_DIR}/log
- |
- Directory where daily Backend (server) logs are - stored. | -
TRILIUM_TMP_DIR
- |
- ${TRILIUM_DATA_DIR}/tmp
- |
- Directory where temporary files are stored (for example when opening in - an external app). | -
TRILIUM_ANONYMIZED_DB_DIR
- |
- ${TRILIUM_DATA_DIR}/anonymized-db
- |
- Directory where a Anonymized Database is - stored. | -
TRILIUM_CONFIG_INI_PATH
- |
- ${TRILIUM_DATA_DIR}/config.ini
- |
- Path to Configuration (config.ini or environment variables) file. | -
| Environment variable | +Default value | +Description | +
|---|---|---|
TRILIUM_DOCUMENT_PATH
+ |
+ ${TRILIUM_DATA_DIR}/document.db
+ |
+ Path to the Database (storing + all notes and metadata). | +
TRILIUM_BACKUP_DIR
+ |
+ ${TRILIUM_DATA_DIR}/backup
+ |
+ Directory where automated Backup databases + are stored. | +
TRILIUM_LOG_DIR
+ |
+ ${TRILIUM_DATA_DIR}/log
+ |
+ Directory where daily Backend (server) logs are + stored. | +
TRILIUM_TMP_DIR
+ |
+ ${TRILIUM_DATA_DIR}/tmp
+ |
+ Directory where temporary files are stored (for example when opening in + an external app). | +
TRILIUM_ANONYMIZED_DB_DIR
+ |
+ ${TRILIUM_DATA_DIR}/anonymized-db
+ |
+ Directory where a Anonymized Database is + stored. | +
TRILIUM_CONFIG_INI_PATH
+ |
+ ${TRILIUM_DATA_DIR}/config.ini
+ |
+ Path to Configuration (config.ini or environment variables) file. | +
To implement this widget:
JS Frontend note in Trilium and paste in the code
+ JS Frontend note in Trilium and paste in the code
above.#widget attribute to
+ #widget attribute to
the note.To verify that the widget is working, open the developer tools (Cmd + Shift + I)
+
To verify that the widget is working, open the developer tools (Ctrl + Shift + I)
and run document.querySelector("#my-widget"). If the element
is found, the widget is functioning correctly. If undefined is
returned, double-check that the note has
the #widget attribute.
Next, let's improve the widget by adding a button to it.
const template = ``;
+Next, let's improve the widget by adding a button to it.
const template = `<div id="my-widget"><button>Click Me!</button></div>`;
class MyWidget extends api.BasicWidget {
get position() {return 1;}
@@ -47,7 +47,7 @@ module.exports = new MyWidget();
To make the button more visually appealing and position it correctly,
we'll apply some custom styling. Trilium includes Box Icons,
which we'll use to replace the button text with an icon. For example the bx bxs-magic-wand icon.
-Here's the updated template:
const template = ``;
+Here's the updated template:
const template = `<div id="my-widget"><button class="tree-floating-button bx bxs-magic-wand tree-settings-button"></button></div>`;
Next, we'll adjust the button's position using CSS:
class MyWidget extends api.BasicWidget {
get position() { return 1; }
get parentWidget() { return "left-pane"; }
@@ -89,13 +89,14 @@ module.exports = new MyWidget();
module.exports = new MyWidget();
parentWidget() can be given the following values:
left-pane - This renders the widget on the left side of the
+ left-pane - This renders the widget on the left side of the
screen where the note tree lives.center-pane - This renders the widget in the center of the
+ center-pane - This renders the widget in the center of the
layout in the same location that notes and splits appear.note-detail-pane - This renders the widget with the
+ note-detail-pane - This renders the widget with the
note in the center pane. This means it can appear multiple times with splits.right-pane - This renders the widget to the right of any opened
+ right-pane - This renders the widget to the right of any opened
notes.Reload the application one last time.
diff --git a/docs/Developer Guide/Developer Guide/Documentation.md b/docs/Developer Guide/Developer Guide/Documentation.md
index c11d3164c..5d7b25eac 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/!!!meta.json b/docs/User Guide/!!!meta.json
index c046fac03..12f9549ca 100644
--- a/docs/User Guide/!!!meta.json
+++ b/docs/User Guide/!!!meta.json
@@ -14166,6 +14166,48 @@
"type": "text",
"mime": "text/html",
"attributes": [
+ {
+ "type": "relation",
+ "name": "internalLink",
+ "value": "Gzjqa934BdH4",
+ "isInheritable": false,
+ "position": 10
+ },
+ {
+ "type": "relation",
+ "name": "internalLink",
+ "value": "wy8So3yZZlH9",
+ "isInheritable": false,
+ "position": 20
+ },
+ {
+ "type": "relation",
+ "name": "internalLink",
+ "value": "R9pX4DGra2Vt",
+ "isInheritable": false,
+ "position": 30
+ },
+ {
+ "type": "relation",
+ "name": "internalLink",
+ "value": "eIg8jdvaoNNd",
+ "isInheritable": false,
+ "position": 40
+ },
+ {
+ "type": "relation",
+ "name": "internalLink",
+ "value": "GTwFsgaA0lCt",
+ "isInheritable": false,
+ "position": 50
+ },
+ {
+ "type": "relation",
+ "name": "internalLink",
+ "value": "KSZ04uQ2D1St",
+ "isInheritable": false,
+ "position": 60
+ },
{
"type": "label",
"name": "iconClass",
@@ -14179,48 +14221,6 @@
"value": "read-only-db",
"isInheritable": false,
"position": 40
- },
- {
- "type": "relation",
- "name": "internalLink",
- "value": "wy8So3yZZlH9",
- "isInheritable": false,
- "position": 50
- },
- {
- "type": "relation",
- "name": "internalLink",
- "value": "R9pX4DGra2Vt",
- "isInheritable": false,
- "position": 60
- },
- {
- "type": "relation",
- "name": "internalLink",
- "value": "Gzjqa934BdH4",
- "isInheritable": false,
- "position": 70
- },
- {
- "type": "relation",
- "name": "internalLink",
- "value": "eIg8jdvaoNNd",
- "isInheritable": false,
- "position": 80
- },
- {
- "type": "relation",
- "name": "internalLink",
- "value": "GTwFsgaA0lCt",
- "isInheritable": false,
- "position": 90
- },
- {
- "type": "relation",
- "name": "internalLink",
- "value": "KSZ04uQ2D1St",
- "isInheritable": false,
- "position": 100
}
],
"format": "markdown",
@@ -14250,6 +14250,13 @@
"isInheritable": false,
"position": 10
},
+ {
+ "type": "relation",
+ "name": "internalLink",
+ "value": "xYmIYSP6wE3F",
+ "isInheritable": false,
+ "position": 20
+ },
{
"type": "label",
"name": "shareAlias",
@@ -14263,13 +14270,6 @@
"value": "bx bx-bot",
"isInheritable": false,
"position": 30
- },
- {
- "type": "relation",
- "name": "internalLink",
- "value": "xYmIYSP6wE3F",
- "isInheritable": false,
- "position": 40
}
],
"format": "markdown",
diff --git a/docs/User Guide/User Guide/Scripting/Frontend Basics/Custom Widgets/Widget Basics.md b/docs/User Guide/User Guide/Scripting/Frontend Basics/Custom Widgets/Widget Basics.md
index 474cba983..39867172f 100644
--- a/docs/User Guide/User Guide/Scripting/Frontend Basics/Custom Widgets/Widget Basics.md
+++ b/docs/User Guide/User Guide/Scripting/Frontend Basics/Custom Widgets/Widget Basics.md
@@ -11,7 +11,7 @@ class MyWidget extends api.BasicWidget {
get parentWidget() { return "left-pane"; }
doRender() {
- this.$widget = $("");
+ this.$widget = $("