From 85eaf0cb52e02627f53dff93a54ded98a617dbee Mon Sep 17 00:00:00 2001
From: Elian Doran
Date: Tue, 6 Aug 2024 20:18:19 +0300
Subject: [PATCH] docs: Fix the remainder of hard-coded links to wiki
---
src/public/app/services/frontend_script_api.js | 2 +-
.../app/widgets/attribute_widgets/attribute_detail.js | 2 +-
src/public/app/widgets/dialogs/help.js | 8 ++++----
src/public/app/widgets/shared_info.js | 2 +-
src/public/app/widgets/type_widgets/book.js | 2 +-
src/public/app/widgets/type_widgets/options/etapi.js | 2 +-
.../options/other/revisions_snapshot_interval.js | 2 +-
src/public/app/widgets/type_widgets/options/password.js | 2 +-
src/public/app/widgets/type_widgets/render.js | 2 +-
src/services/backend_script_api.ts | 2 +-
10 files changed, 13 insertions(+), 13 deletions(-)
diff --git a/src/public/app/services/frontend_script_api.js b/src/public/app/services/frontend_script_api.js
index b03125370..f0e8cc30b 100644
--- a/src/public/app/services/frontend_script_api.js
+++ b/src/public/app/services/frontend_script_api.js
@@ -558,7 +558,7 @@ function FrontendScriptApi(startNote, currentNote, originEntity = null, $contain
this.getYearNote = dateNotesService.getYearNote;
/**
- * Hoist note in the current tab. See https://github.com/zadam/trilium/wiki/Note-hoisting
+ * Hoist note in the current tab. See https://github.com/TriliumNext/Docs/blob/main/Wiki/note-hoisting.md
*
* @method
* @param {string} noteId - set hoisted note. 'root' will effectively unhoist
diff --git a/src/public/app/widgets/attribute_widgets/attribute_detail.js b/src/public/app/widgets/attribute_widgets/attribute_detail.js
index 0ffac8fd7..9cecf6bdc 100644
--- a/src/public/app/widgets/attribute_widgets/attribute_detail.js
+++ b/src/public/app/widgets/attribute_widgets/attribute_detail.js
@@ -245,7 +245,7 @@ const ATTR_HELP = {
Log for \${now.format('YYYY-MM-DD HH:mm:ss')}
- See wiki with details, API docs for parentNote and now for details.`,
+ See wiki with details, API docs for parentNote and now for details.`,
"template": "This note will appear in the selection of available template when creating new note",
"toc": "#toc or #toc=show will force the Table of Contents to be shown, #toc=hide will force hiding it. If the label doesn't exist, the global setting is observed",
"color": "defines color of the note in note tree, links etc. Use any valid CSS color value like 'red' or #a13d5f",
diff --git a/src/public/app/widgets/dialogs/help.js b/src/public/app/widgets/dialogs/help.js
index d3f8ecf4f..2b39ef5c3 100644
--- a/src/public/app/widgets/dialogs/help.js
+++ b/src/public/app/widgets/dialogs/help.js
@@ -23,7 +23,7 @@ const TPL = `
UP, DOWN - go up/down in the list of notes
LEFT, RIGHT - collapse/expand node
not set, not set - go back / forwards in the history
- This note of type Book doesn't have any child notes so there's nothing to display. See wiki for details.
+ This note of type Book doesn't have any child notes so there's nothing to display. See wiki for details.
ETAPI is a REST API used to access Trilium instance programmatically, without UI.
- See more details on wiki and ETAPI OpenAPI spec.
+ See more details on wiki and ETAPI OpenAPI spec.
diff --git a/src/public/app/widgets/type_widgets/options/other/revisions_snapshot_interval.js b/src/public/app/widgets/type_widgets/options/other/revisions_snapshot_interval.js
index 7bd6315c6..a959c5b7b 100644
--- a/src/public/app/widgets/type_widgets/options/other/revisions_snapshot_interval.js
+++ b/src/public/app/widgets/type_widgets/options/other/revisions_snapshot_interval.js
@@ -4,7 +4,7 @@ const TPL = `
Note Revisions Snapshot Interval
-
Note revision snapshot time interval is time in seconds after which a new note revision will be created for the note. See wiki for more info.
+
Note revision snapshot time interval is time in seconds after which a new note revision will be created for the note. See wiki for more info.
Protected session timeout is a time period after which the protected session is wiped from
- the browser's memory. This is measured from the last interaction with protected notes. See wiki for more info.
+ the browser's memory. This is measured from the last interaction with protected notes. See wiki for more info.
This help note is shown because this note of type Render HTML doesn't have required relation to function properly.
-
Render HTML note type is used for scripting. In short, you have a HTML code note (optionally with some JavaScript) and this note will render it. To make it work, you need to define a relation called "renderNote" pointing to the HTML note to render.
+
Render HTML note type is used for scripting. In short, you have a HTML code note (optionally with some JavaScript) and this note will render it. To make it work, you need to define a relation called "renderNote" pointing to the HTML note to render.
diff --git a/src/services/backend_script_api.ts b/src/services/backend_script_api.ts
index 1c7c14e36..0147cbec9 100644
--- a/src/services/backend_script_api.ts
+++ b/src/services/backend_script_api.ts
@@ -251,7 +251,7 @@ interface Api {
*/
sortNotes(parentNoteId: string, sortConfig: {
/** 'title', 'dateCreated', 'dateModified' or a label name
- * See {@link https://github.com/zadam/trilium/wiki/Sorting} for details. */
+ * See {@link https://github.com/TriliumNext/Docs/blob/main/Wiki/sorting.md} for details. */
sortBy?: string;
reverse?: boolean;
foldersFirst?: boolean;