diff --git a/Source/AppScaffolding/LibationScaffolding.cs b/Source/AppScaffolding/LibationScaffolding.cs index 25249313..72e5d3a1 100644 --- a/Source/AppScaffolding/LibationScaffolding.cs +++ b/Source/AppScaffolding/LibationScaffolding.cs @@ -42,6 +42,8 @@ public static class LibationScaffolding public const string RepositoryUrl = "ht" + "tps://github.com/rmcrackan/Libation"; public const string WebsiteUrl = "ht" + "tps://getlibation.com"; public const string RepositoryLatestUrl = "ht" + "tps://github.com/rmcrackan/Libation/releases/latest"; + /// Documentation for naming template syntax + public const string NamingTemplatesDocUrl = WebsiteUrl + "/docs/features/naming-templates"; public static ReleaseIdentifier ReleaseIdentifier { get; private set; } public static Variety Variety { get; private set; } diff --git a/Source/LibationAvalonia/Dialogs/EditTemplateDialog.axaml.cs b/Source/LibationAvalonia/Dialogs/EditTemplateDialog.axaml.cs index b933e97d..ad5784ff 100644 --- a/Source/LibationAvalonia/Dialogs/EditTemplateDialog.axaml.cs +++ b/Source/LibationAvalonia/Dialogs/EditTemplateDialog.axaml.cs @@ -1,3 +1,4 @@ +using AppScaffolding; using Avalonia.Collections; using Avalonia.Controls; using Avalonia.Controls.Documents; @@ -98,7 +99,7 @@ public partial class EditTemplateDialog : DialogWindow } public void GoToNamingTemplateWiki() - => Go.To.Url(@"ht" + "tps://github.com/rmcrackan/Libation/blob/master/Documentation/NamingTemplates.md"); + => Go.To.Url(LibationScaffolding.NamingTemplatesDocUrl); // hold the work-in-progress value. not guaranteed to be valid public string? UserTemplateText diff --git a/Source/LibationAvalonia/Walkthrough.cs b/Source/LibationAvalonia/Walkthrough.cs index 3532c199..1b4341b2 100644 --- a/Source/LibationAvalonia/Walkthrough.cs +++ b/Source/LibationAvalonia/Walkthrough.cs @@ -1,4 +1,5 @@ -using ApplicationServices; +using AppScaffolding; +using ApplicationServices; using AudibleUtilities; using Avalonia.Controls; using Avalonia.Controls.Presenters; @@ -23,7 +24,7 @@ internal class Walkthrough { { "Important Settings", "From here you can change where liberated books are stored and how detailed Libation's logs are.\r\n\r\nIf you experience a problem and need help, you'll be asked to provide your log file. In certain circumstances we may need you to reproduce the error with a higher level of logging detail."}, { "Import Library", "In this tab you can change how your library is scanned and imported into Libation, as well as automatic liberation."}, - { "Download/Decrypt", "These settings allow you to control how liberated files and folders are named and stored.\r\nYou can customize the 'Naming Templates' to use any number of the audiobook's properties to build a customized file and folder naming format. Learn more about the syntax from the wiki at\r\n\r\nhttps://github.com/rmcrackan/Libation/blob/master/Documentation/NamingTemplates.md"}, + { "Download/Decrypt", "These settings allow you to control how liberated files and folders are named and stored.\r\nYou can customize the 'Naming Templates' to use any number of the audiobook's properties to build a customized file and folder naming format. Learn more about the syntax from the wiki at\r\n\r\n" + LibationScaffolding.NamingTemplatesDocUrl}, { "Audio File Settings", "Control how audio files are decrypted, including audio format and metadata handling.\r\n\r\nIf you choose to split your audiobook into multiple files by chapter marker, you may edit the chapter file 'Naming Template' to control how each chapter file is named."}, }; diff --git a/Source/LibationWinForms/Dialogs/EditTemplateDialog.cs b/Source/LibationWinForms/Dialogs/EditTemplateDialog.cs index 776bb241..f9dfa5c9 100644 --- a/Source/LibationWinForms/Dialogs/EditTemplateDialog.cs +++ b/Source/LibationWinForms/Dialogs/EditTemplateDialog.cs @@ -1,3 +1,4 @@ +using AppScaffolding; using Dinah.Core; using LibationFileManager; using LibationFileManager.Templates; @@ -151,7 +152,7 @@ public partial class EditTemplateDialog : Form private void llblGoToWiki_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e) { - Go.To.Url(@"ht" + "tps://github.com/rmcrackan/Libation/blob/master/Documentation/NamingTemplates.md"); + Go.To.Url(LibationScaffolding.NamingTemplatesDocUrl); e.Link?.Visited = true; } } diff --git a/Source/LibationWinForms/Walkthrough.cs b/Source/LibationWinForms/Walkthrough.cs index 0c76b1f2..937c9c20 100644 --- a/Source/LibationWinForms/Walkthrough.cs +++ b/Source/LibationWinForms/Walkthrough.cs @@ -1,4 +1,5 @@ -using ApplicationServices; +using AppScaffolding; +using ApplicationServices; using AudibleUtilities; using Dinah.Core; using Dinah.Core.StepRunner; @@ -19,7 +20,7 @@ internal class Walkthrough { { "Important settings", "From here you can change where liberated books are stored and how detailed Libation's logs are.\r\n\r\nIf you experience a problem and need help, you'll be asked to provide your log file. In certain circumstances we may need you to reproduce the error with a higher level of logging detail."}, { "Import library", "In this tab you can change how your library is scanned and imported into Libation, as well as automatic liberation."}, - { "Download/Decrypt", "These settings allow you to control how liberated files and folders are named and stored.\r\nYou can customize the 'Naming Templates' to use any number of the audiobook's properties to build a customized file and folder naming format. Learn more about the syntax from the wiki at\r\n\r\nhttps://github.com/rmcrackan/Libation/blob/master/Documentation/NamingTemplates.md"}, + { "Download/Decrypt", "These settings allow you to control how liberated files and folders are named and stored.\r\nYou can customize the 'Naming Templates' to use any number of the audiobook's properties to build a customized file and folder naming format. Learn more about the syntax from the wiki at\r\n\r\n" + LibationScaffolding.NamingTemplatesDocUrl}, { "Audio File Options", "Control how audio files are decrypted, including audio format and metadata handling.\r\n\r\nIf you choose to split your audiobook into multiple files by chapter marker, you may edit the chapter file 'Naming Template' to control how each chapter file is named."}, };