Skip to content
This repository was archived by the owner on Jun 24, 2025. It is now read-only.

Commit c3b742d

Browse files
committed
docs: Fix dynamic references to wiki
1 parent 85eaf0c commit c3b742d

File tree

13 files changed

+14
-14
lines changed

13 files changed

+14
-14
lines changed

src/public/app/services/glob.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ function setupGlobs() {
2727
window.glob.importMarkdownInline = async () => appContext.triggerCommand("importMarkdownInline");
2828

2929
window.glob.SEARCH_HELP_TEXT = `
30-
<strong>Search tips</strong> - also see <button class="btn btn-sm" type="button" data-help-page="Search">complete help on search</button>
30+
<strong>Search tips</strong> - also see <button class="btn btn-sm" type="button" data-help-page="search.md">complete help on search</button>
3131
<p>
3232
<ul>
3333
<li>Just enter any text for full text search</li>

src/public/app/services/utils.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -330,7 +330,7 @@ function initHelpDropdown($el) {
330330
initHelpButtons($dropdownMenu);
331331
}
332332

333-
const wikiBaseUrl = "https://github.com/zadam/trilium/wiki/";
333+
const wikiBaseUrl = "https://github.com/TriliumNext/Docs/blob/main/Wiki/";
334334

335335
function openHelp($button) {
336336
const helpPage = $button.attr("data-help-page");

src/public/app/widgets/attribute_widgets/attribute_detail.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -211,8 +211,8 @@ const ATTR_HELP = {
211211
"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.",
212212
"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.",
213213
"pageSize": "number of items per page in note listing",
214-
"customRequestHandler": 'see <a href="javascript:" data-help-page="Custom request handler">Custom request handler</a>',
215-
"customResourceProvider": 'see <a href="javascript:" data-help-page="Custom request handler">Custom request handler</a>',
214+
"customRequestHandler": 'see <a href="javascript:" data-help-page="custom-request-handler.md">Custom request handler</a>',
215+
"customResourceProvider": 'see <a href="javascript:" data-help-page="custom-request-handler.md">Custom request handler</a>',
216216
"widget": "marks this note as a custom widget which will be added to the Trilium component tree",
217217
"workspace": "marks this note as a workspace which allows easy hoisting",
218218
"workspaceIconClass": "defines box icon CSS class which will be used in tab when hoisted to this note",

src/public/app/widgets/dialogs/add_link.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ const TPL = `
1010
<div class="modal-header">
1111
<h5 class="modal-title mr-auto">Add link</h5>
1212
13-
<button type="button" class="help-button" title="Help on links" data-help-page="Links">?</button>
13+
<button type="button" class="help-button" title="Help on links" data-help-page="links.md">?</button>
1414
1515
<button type="button" class="close" data-dismiss="modal" aria-label="Close" style="margin-left: 0 !important;">
1616
<span aria-hidden="true">&times;</span>

src/public/app/widgets/dialogs/branch_prefix.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ const TPL = `<div class="branch-prefix-dialog modal fade mx-auto" tabindex="-1"
1515
<div class="modal-header">
1616
<h5 class="modal-title mr-auto">Edit branch prefix</h5>
1717
18-
<button class="help-button" type="button" data-help-page="Tree-concepts#prefix" title="Help on Tree prefix">?</button>
18+
<button class="help-button" type="button" data-help-page="tree-concepts.md#prefix" title="Help on Tree prefix">?</button>
1919
2020
<button type="button" class="close" data-dismiss="modal" aria-label="Close" style="margin-left: 0;">
2121
<span aria-hidden="true">&times;</span>

src/public/app/widgets/dialogs/clone_to.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ const TPL = `
1414
<div class="modal-header">
1515
<h5 class="modal-title mr-auto">Clone notes to ...</h5>
1616
17-
<button type="button" class="help-button" title="Help on links" data-help-page="Cloning-notes">?</button>
17+
<button type="button" class="help-button" title="Help on links" data-help-page="cloning-notes.md">?</button>
1818
1919
<button type="button" class="close" data-dismiss="modal" aria-label="Close" style="margin-left: 0 !important;">
2020
<span aria-hidden="true">&times;</span>

src/public/app/widgets/dialogs/protected_session_password.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ const TPL = `
99
<div class="modal-header">
1010
<h5 class="modal-title mr-auto">Protected session</h5>
1111
12-
<button class="help-button" type="button" data-help-page="Protected-notes" title="Help on Protected notes">?</button>
12+
<button class="help-button" type="button" data-help-page="protected-notes.md" title="Help on Protected notes">?</button>
1313
1414
<button type="button" class="close" data-dismiss="modal" aria-label="Close" style="margin-left: 0;">
1515
<span aria-hidden="true">&times;</span>

src/public/app/widgets/dialogs/revisions.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ const TPL = `
4545
title="Delete all revisions of this note"
4646
style="padding: 0 10px 0 10px;" type="button">Delete all revisions</button>
4747
48-
<button class="help-button" type="button" data-help-page="Note-revisions" title="Help on Note revisions">?</button>
48+
<button class="help-button" type="button" data-help-page="note-revisions.md" title="Help on Note revisions">?</button>
4949
5050
<button type="button" class="close" data-dismiss="modal" aria-label="Close" style="margin-left: 0 !important;">
5151
<span aria-hidden="true">&times;</span>

src/public/app/widgets/search_options/search_string.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ const TPL = `
1414
<div class="dropdown help-dropdown">
1515
<span class="bx bx-help-circle icon-action" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false"></span>
1616
<div class="dropdown-menu dropdown-menu-right p-4">
17-
<strong>Search syntax</strong> - also see <button class="btn btn-sm" type="button" data-help-page="Search">complete help on search syntax</button>
17+
<strong>Search syntax</strong> - also see <button class="btn btn-sm" type="button" data-help-page="search.md">complete help on search syntax</button>
1818
<p>
1919
<ul>
2020
<li>Just enter any text for full text search</li>

src/public/app/widgets/shared_switch.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ export default class SharedSwitchWidget extends SwitchWidget {
2020
this.$switchOffName.text("Shared");
2121
this.$switchOffButton.attr("title", "Unshare the note");
2222

23-
this.$helpButton.attr("data-help-page", "Sharing").show();
23+
this.$helpButton.attr("data-help-page", "sharing.md").show();
2424
this.$helpButton.on('click', e => utils.openHelp($(e.target)));
2525
}
2626

0 commit comments

Comments
 (0)