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: Fix dynamic references to wiki
Elian Doranc3b742df3bef
diff --git a/src/public/app/services/glob.js b/src/public/app/services/glob.jsindex f2ef871287..925feaf825 100644--- a/src/public/app/services/glob.js+++ b/src/public/app/services/glob.js@@ -27,7 +27,7 @@ function setupGlobs() {window.glob.importMarkdownInline = async () => appContext.triggerCommand("importMarkdownInline");window.glob.SEARCH_HELP_TEXT = `- <strong>Search tips</strong> - also see <button class="btn btn-sm" type="button" data-help-page="Search">complete help on search</button>+ <strong>Search tips</strong> - also see <button class="btn btn-sm" type="button" data-help-page="search.md">complete help on search</button><p><ul><li>Just enter any text for full text search</li>diff --git a/src/public/app/services/utils.js b/src/public/app/services/utils.jsindex 9e17f1c38b..7802ff128e 100644--- a/src/public/app/services/utils.js+++ b/src/public/app/services/utils.js@@ -330,7 +330,7 @@ function initHelpDropdown($el) {initHelpButtons($dropdownMenu);}-const wikiBaseUrl = "https://github.com/zadam/trilium/wiki/";+const wikiBaseUrl = "https://github.com/TriliumNext/Docs/blob/main/Wiki/";function openHelp($button) {const helpPage = $button.attr("data-help-page");diff --git a/src/public/app/widgets/attribute_widgets/attribute_detail.js b/src/public/app/widgets/attribute_widgets/attribute_detail.jsindex 9cecf6bdcf..fa4dc724db 100644--- a/src/public/app/widgets/attribute_widgets/attribute_detail.js+++ b/src/public/app/widgets/attribute_widgets/attribute_detail.js@@ -211,8 +211,8 @@ const ATTR_HELP = {"cssClass": "value of this label is then added as CSS class to the node representing given note in the tree. This can be useful for advanced theming. Can be used in template notes.","iconClass": "value of this label is added as a CSS class to the icon on the tree which can help visually distinguish the notes in the tree. Example might be bx bx-home - icons are taken from boxicons. Can be used in template notes.","pageSize": "number of items per page in note listing",- "customRequestHandler": 'see <a href="javascript:" data-help-page="Custom request handler">Custom request handler</a>',- "customResourceProvider": 'see <a href="javascript:" data-help-page="Custom request handler">Custom request handler</a>',+ "customRequestHandler": 'see <a href="javascript:" data-help-page="custom-request-handler.md">Custom request handler</a>',+ "customResourceProvider": 'see <a href="javascript:" data-help-page="custom-request-handler.md">Custom request handler</a>',"widget": "marks this note as a custom widget which will be added to the Trilium component tree","workspace": "marks this note as a workspace which allows easy hoisting","workspaceIconClass": "defines box icon CSS class which will be used in tab when hoisted to this note",diff --git a/src/public/app/widgets/dialogs/add_link.js b/src/public/app/widgets/dialogs/add_link.jsindex 117bc052ff..0c7772fc85 100644--- a/src/public/app/widgets/dialogs/add_link.js+++ b/src/public/app/widgets/dialogs/add_link.js@@ -10,7 +10,7 @@ const TPL = `<div class="modal-header"><h5 class="modal-title mr-auto">Add link</h5>- <button type="button" class="help-button" title="Help on links" data-help-page="Links">?</button>+ <button type="button" class="help-button" title="Help on links" data-help-page="links.md">?</button><button type="button" class="close" data-dismiss="modal" aria-label="Close" style="margin-left: 0 !important;"><span aria-hidden="true">×</span>diff --git a/src/public/app/widgets/dialogs/branch_prefix.js b/src/public/app/widgets/dialogs/branch_prefix.jsindex 2ae8133c24..5167d83f10 100644--- a/src/public/app/widgets/dialogs/branch_prefix.js+++ b/src/public/app/widgets/dialogs/branch_prefix.js@@ -15,7 +15,7 @@ const TPL = `<div class="branch-prefix-dialog modal fade mx-auto" tabindex="-1"<div class="modal-header"><h5 class="modal-title mr-auto">Edit branch prefix</h5>- <button class="help-button" type="button" data-help-page="Tree-concepts#prefix" title="Help on Tree prefix">?</button>+ <button class="help-button" type="button" data-help-page="tree-concepts.md#prefix" title="Help on Tree prefix">?</button><button type="button" class="close" data-dismiss="modal" aria-label="Close" style="margin-left: 0;"><span aria-hidden="true">×</span>diff --git a/src/public/app/widgets/dialogs/clone_to.js b/src/public/app/widgets/dialogs/clone_to.jsindex 68ac46bf5f..2011178bd7 100644--- a/src/public/app/widgets/dialogs/clone_to.js+++ b/src/public/app/widgets/dialogs/clone_to.js@@ -14,7 +14,7 @@ const TPL = `<div class="modal-header"><h5 class="modal-title mr-auto">Clone notes to ...</h5>- <button type="button" class="help-button" title="Help on links" data-help-page="Cloning-notes">?</button>+ <button type="button" class="help-button" title="Help on links" data-help-page="cloning-notes.md">?</button><button type="button" class="close" data-dismiss="modal" aria-label="Close" style="margin-left: 0 !important;"><span aria-hidden="true">×</span>diff --git a/src/public/app/widgets/dialogs/protected_session_password.js b/src/public/app/widgets/dialogs/protected_session_password.jsindex 23ddd3726a..4985fc09d9 100644--- a/src/public/app/widgets/dialogs/protected_session_password.js+++ b/src/public/app/widgets/dialogs/protected_session_password.js@@ -9,7 +9,7 @@ const TPL = `<div class="modal-header"><h5 class="modal-title mr-auto">Protected session</h5>- <button class="help-button" type="button" data-help-page="Protected-notes" title="Help on Protected notes">?</button>+ <button class="help-button" type="button" data-help-page="protected-notes.md" title="Help on Protected notes">?</button><button type="button" class="close" data-dismiss="modal" aria-label="Close" style="margin-left: 0;"><span aria-hidden="true">×</span>diff --git a/src/public/app/widgets/dialogs/revisions.js b/src/public/app/widgets/dialogs/revisions.jsindex b040ed9947..f455cb3fee 100644--- a/src/public/app/widgets/dialogs/revisions.js+++ b/src/public/app/widgets/dialogs/revisions.js@@ -45,7 +45,7 @@ const TPL = `title="Delete all revisions of this note"style="padding: 0 10px 0 10px;" type="button">Delete all revisions</button>- <button class="help-button" type="button" data-help-page="Note-revisions" title="Help on Note revisions">?</button>+ <button class="help-button" type="button" data-help-page="note-revisions.md" title="Help on Note revisions">?</button><button type="button" class="close" data-dismiss="modal" aria-label="Close" style="margin-left: 0 !important;"><span aria-hidden="true">×</span>diff --git a/src/public/app/widgets/search_options/search_string.js b/src/public/app/widgets/search_options/search_string.jsindex 03e3e2b50b..e36b2d534e 100644--- a/src/public/app/widgets/search_options/search_string.js+++ b/src/public/app/widgets/search_options/search_string.js@@ -14,7 +14,7 @@ const TPL = `<div class="dropdown help-dropdown"><span class="bx bx-help-circle icon-action" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false"></span><div class="dropdown-menu dropdown-menu-right p-4">- <strong>Search syntax</strong> - also see <button class="btn btn-sm" type="button" data-help-page="Search">complete help on search syntax</button>+ <strong>Search syntax</strong> - also see <button class="btn btn-sm" type="button" data-help-page="search.md">complete help on search syntax</button><p><ul><li>Just enter any text for full text search</li>diff --git a/src/public/app/widgets/shared_switch.js b/src/public/app/widgets/shared_switch.jsindex c219bac3e6..d68a086d37 100644--- a/src/public/app/widgets/shared_switch.js+++ b/src/public/app/widgets/shared_switch.js@@ -20,7 +20,7 @@ export default class SharedSwitchWidget extends SwitchWidget {this.$switchOffName.text("Shared");this.$switchOffButton.attr("title", "Unshare the note");- this.$helpButton.attr("data-help-page", "Sharing").show();+ this.$helpButton.attr("data-help-page", "sharing.md").show();this.$helpButton.on('click', e => utils.openHelp($(e.target)));}diff --git a/src/public/app/widgets/type_widgets/attachment_detail.js b/src/public/app/widgets/type_widgets/attachment_detail.jsindex fbc38e5615..03041b54e4 100644--- a/src/public/app/widgets/type_widgets/attachment_detail.js+++ b/src/public/app/widgets/type_widgets/attachment_detail.js@@ -47,7 +47,7 @@ export default class AttachmentDetailTypeWidget extends TypeWidget {this.$wrapper.empty();this.children = [];- const $helpButton = $('<button class="attachment-help-button" type="button" data-help-page="attachments" title="Open help page on attachments"><span class="bx bx-help-circle"></span></button>');+ const $helpButton = $('<button class="attachment-help-button" type="button" data-help-page="attachments.md" title="Open help page on attachments"><span class="bx bx-help-circle"></span></button>');utils.initHelpButtons($helpButton);this.$linksWrapper.empty().append(diff --git a/src/public/app/widgets/type_widgets/attachment_list.js b/src/public/app/widgets/type_widgets/attachment_list.jsindex 8f6aa9f9e6..247f9e1e05 100644--- a/src/public/app/widgets/type_widgets/attachment_list.js+++ b/src/public/app/widgets/type_widgets/attachment_list.js@@ -39,7 +39,7 @@ export default class AttachmentListTypeWidget extends TypeWidget {}async doRefresh(note) {- const $helpButton = $('<button class="attachment-help-button" type="button" data-help-page="attachments" title="Open help page on attachments"><span class="bx bx-help-circle"></span></button>');+ const $helpButton = $('<button class="attachment-help-button" type="button" data-help-page="attachments.md" title="Open help page on attachments"><span class="bx bx-help-circle"></span></button>');utils.initHelpButtons($helpButton);const noteLink = await linkService.createLink(this.noteId); // do separately to avoid race condition between empty() and .append()diff --git a/src/public/app/widgets/type_widgets/options/sync.js b/src/public/app/widgets/type_widgets/options/sync.jsindex 3f7ad72b6f..b9ebc39afe 100644--- a/src/public/app/widgets/type_widgets/options/sync.js+++ b/src/public/app/widgets/type_widgets/options/sync.js@@ -28,7 +28,7 @@ const TPL = `<div style="display: flex; justify-content: space-between;"><button class="btn btn-primary">Save</button>- <button class="btn" type="button" data-help-page="Synchronization">Help</button>+ <button class="btn" type="button" data-help-page="synchronization.md">Help</button></div></form></div>