New: Update all wiki links to point to the Servarr Wiki

Fixes:
https://github.com/lidarr/Lidarr/issues/1805
https://github.com/lidarr/Lidarr/issues/1803
This commit is contained in:
bakerboy448 2020-12-17 16:17:26 -06:00 committed by Qstick
parent eb5a95cfa6
commit 1268f90f26
16 changed files with 26 additions and 27 deletions

View file

@ -128,7 +128,7 @@ class FileBrowserModalContent extends Component {
className={styles.mappedDrivesWarning} className={styles.mappedDrivesWarning}
kind={kinds.WARNING} kind={kinds.WARNING}
> >
Mapped network drives are not available when running as a Windows Service, see the <Link className={styles.faqLink} to="https://github.com/Lidarr/Lidarr/wiki/FAQ">FAQ</Link> for more information. Mapped network drives are not available when running as a Windows Service, see the <Link className={styles.faqLink} to="https://wiki.servarr.com/Lidarr_FAQ">FAQ</Link> for more information.
</Alert> </Alert>
} }

View file

@ -63,7 +63,7 @@ function UpdateSettings(props) {
type={inputTypes.TEXT} type={inputTypes.TEXT}
name="branch" name="branch"
helpText={usingExternalUpdateMechanism ? 'Branch used by external update mechanism' : 'Branch to use to update Lidarr'} helpText={usingExternalUpdateMechanism ? 'Branch used by external update mechanism' : 'Branch to use to update Lidarr'}
helpLink="https://github.com/Lidarr/Lidarr/wiki/Release-Branches" helpLink="https://wiki.servarr.com/Lidarr_FAQ#How_do_I_update_my_Lidarr"
{...branch} {...branch}
onChange={onInputChange} onChange={onInputChange}
readOnly={usingExternalUpdateMechanism} readOnly={usingExternalUpdateMechanism}
@ -100,7 +100,7 @@ function UpdateSettings(props) {
name="updateMechanism" name="updateMechanism"
values={updateOptions} values={updateOptions}
helpText="Use Lidarr's built-in updater or a script" helpText="Use Lidarr's built-in updater or a script"
helpLink="https://github.com/Lidarr/Lidarr/wiki/Updating" helpLink="https://wiki.servarr.com/Lidarr_FAQ#How_do_I_update_my_Lidarr"
onChange={onInputChange} onChange={onInputChange}
{...updateMechanism} {...updateMechanism}
/> />

View file

@ -88,7 +88,7 @@ function IndexerOptions(props) {
unit="minutes" unit="minutes"
helpText="Interval in minutes. Set to zero to disable (this will stop all automatic release grabbing)" helpText="Interval in minutes. Set to zero to disable (this will stop all automatic release grabbing)"
helpTextWarning="This will apply to all indexers, please follow the rules set forth by them" helpTextWarning="This will apply to all indexers, please follow the rules set forth by them"
helpLink="https://github.com/Lidarr/Lidarr/wiki/RSS-Sync" helpLink="https://wiki.servarr.com/Lidarr_FAQ#How_does_Lidarr_work"
onChange={onInputChange} onChange={onInputChange}
{...settings.rssSyncInterval} {...settings.rssSyncInterval}
/> />

View file

@ -54,7 +54,7 @@ function MetadataProvider(props) {
type={inputTypes.TEXT} type={inputTypes.TEXT}
name="metadataSource" name="metadataSource"
helpText="Alternative Metadata Source (Leave blank for default)" helpText="Alternative Metadata Source (Leave blank for default)"
helpLink="https://github.com/Lidarr/Lidarr/wiki/Metadata-Source" helpLink="https://wiki.servarr.com/Lidarr_Settings#Metadata"
onChange={onInputChange} onChange={onInputChange}
{...settings.metadataSource} {...settings.metadataSource}
/> />
@ -70,7 +70,7 @@ function MetadataProvider(props) {
type={inputTypes.SELECT} type={inputTypes.SELECT}
name="writeAudioTags" name="writeAudioTags"
helpTextWarning="Selecting 'All files' will alter existing files when they are imported." helpTextWarning="Selecting 'All files' will alter existing files when they are imported."
helpLink="https://github.com/Lidarr/Lidarr/wiki/Write-Tags" helpLink="https://wiki.servarr.com/Lidarr_Settings#Write_Metadata_to_Audio_Files"
values={writeAudioTagOptions} values={writeAudioTagOptions}
onChange={onInputChange} onChange={onInputChange}
{...settings.writeAudioTags} {...settings.writeAudioTags}

View file

@ -39,7 +39,7 @@ function NotificationEventItems(props) {
<div> <div>
<FormInputHelpText <FormInputHelpText
text="Select which events should trigger this notification" text="Select which events should trigger this notification"
link="https://github.com/lidarr/Lidarr/wiki/Connections" link="https://wiki.servarr.com/Lidarr_Settings#Connections"
/> />
<div className={styles.events}> <div className={styles.events}>
<div> <div>

View file

@ -14,7 +14,7 @@ function Tags(props) {
if (!items.length) { if (!items.length) {
return ( return (
<div>No tags have been added yet. Add tags to link artists with delay profiles, restrictions, or notifications. Click <Link to='https://github.com/lidarr/Lidarr/wiki/Tags'>here</Link> to find out more about tags in Lidarr.</div> <div>No tags have been added yet. Add tags to link artists with delay profiles, restrictions, or notifications. Click <Link to='https://wiki.servarr.com/Lidarr_Settings#Tags'>here</Link> to find out more about tags in Lidarr.</div>
); );
} }

View file

@ -12,7 +12,7 @@ function createHealthCheckSelector() {
source: 'UI', source: 'UI',
type: 'warning', type: 'warning',
message: 'Could not connect to SignalR, UI won\'t update', message: 'Could not connect to SignalR, UI won\'t update',
wikiUrl: 'https://github.com/Lidarr/Lidarr/wiki/Health-Checks#could-not-connect-to-signalr' wikiUrl: 'https://wiki.servarr.com/Lidarr_System#Could_not_connect_to_signalR'
}); });
} }

View file

@ -21,7 +21,7 @@ class MoreInfo extends Component {
<DescriptionListItemTitle>Wiki</DescriptionListItemTitle> <DescriptionListItemTitle>Wiki</DescriptionListItemTitle>
<DescriptionListItemDescription> <DescriptionListItemDescription>
<Link to="https://github.com/lidarr/Lidarr/wiki">wiki.lidarr.audio</Link> <Link to="https://wiki.servarr.com/Lidarr">wiki.lidarr.audio</Link>
</DescriptionListItemDescription> </DescriptionListItemDescription>
<DescriptionListItemTitle>Reddit</DescriptionListItemTitle> <DescriptionListItemTitle>Reddit</DescriptionListItemTitle>

View file

@ -251,7 +251,7 @@
</span> </span>
<a <a
href="https://github.com/lidarr/Lidarr/wiki/Forgot-my-Password" href="https://wiki.servarr.com/Lidarr_FAQ#Help_I_have_locked_my_self_out"
class="forgot-password" class="forgot-password"
>Forgot your password?</a >Forgot your password?</a
> >

View file

@ -38,8 +38,7 @@ namespace Lidarr.Api.V1
Tags = definition.Tags, Tags = definition.Tags,
Fields = SchemaBuilder.ToSchema(definition.Settings), Fields = SchemaBuilder.ToSchema(definition.Settings),
InfoLink = string.Format("https://github.com/Lidarr/Lidarr/wiki/Supported-{0}#{1}", InfoLink = string.Format("https://wiki.servarr.com/Lidarr_Supported_{0}",
typeof(TProviderResource).Name.Replace("Resource", "s"),
definition.Implementation.ToLower()) definition.Implementation.ToLower())
}; };
} }

View file

@ -1,4 +1,4 @@
using FluentAssertions; using FluentAssertions;
using NUnit.Framework; using NUnit.Framework;
using NzbDrone.Core.HealthCheck; using NzbDrone.Core.HealthCheck;
using NzbDrone.Core.Test.Framework; using NzbDrone.Core.Test.Framework;
@ -8,11 +8,11 @@ namespace NzbDrone.Core.Test.HealthCheck
[TestFixture] [TestFixture]
public class HealthCheckFixture : CoreTest public class HealthCheckFixture : CoreTest
{ {
private const string WikiRoot = "https://github.com/Lidarr/Lidarr/wiki/"; private const string WikiRoot = "https://wiki.servarr.com/";
[TestCase("I blew up because of some weird user mistake", null, WikiRoot + "Health-checks#i-blew-up-because-of-some-weird-user-mistake")] [TestCase("I blew up because of some weird user mistake", null, WikiRoot + "Lidarr_System#i_blew_up_because_of_some_weird_user_mistake")]
[TestCase("I blew up because of some weird user mistake", "#my-health-check", WikiRoot + "Health-checks#my-health-check")] [TestCase("I blew up because of some weird user mistake", "#my_health_check", WikiRoot + "Lidarr_System#my_health_check")]
[TestCase("I blew up because of some weird user mistake", "Custom-Page#my-health-check", WikiRoot + "Custom-Page#my-health-check")] [TestCase("I blew up because of some weird user mistake", "Custom_Page#my_health_check", WikiRoot + "Custom_Page#my_health_check")]
public void should_format_wiki_url(string message, string wikiFragment, string expectedUrl) public void should_format_wiki_url(string message, string wikiFragment, string expectedUrl)
{ {
var subject = new NzbDrone.Core.HealthCheck.HealthCheck(typeof(HealthCheckBase), HealthCheckResult.Warning, message, wikiFragment); var subject = new NzbDrone.Core.HealthCheck.HealthCheck(typeof(HealthCheckBase), HealthCheckResult.Warning, message, wikiFragment);

View file

@ -119,10 +119,10 @@ namespace NzbDrone.Core.Datastore
if (OsInfo.IsOsx) if (OsInfo.IsOsx)
{ {
throw new CorruptDatabaseException("Database file: {0} is corrupt, restore from backup if available. See: https://github.com/Sonarr/Sonarr/wiki/FAQ#i-use-sonarr-on-a-mac-and-it-suddenly-stopped-working-what-happened", e, fileName); throw new CorruptDatabaseException("Database file: {0} is corrupt, restore from backup if available. See: https://wiki.servarr.com/Lidarr_FAQ#I_use_Lidarr_on_a_Mac_and_it_suddenly_stopped_working_What_happened", e, fileName);
} }
throw new CorruptDatabaseException("Database file: {0} is corrupt, restore from backup if available. See: https://github.com/Lidarr/Lidarr/wiki/FAQ#i-am-getting-an-error-database-disk-image-is-malformed", e, fileName); throw new CorruptDatabaseException("Database file: {0} is corrupt, restore from backup if available. See: https://wiki.servarr.com/Lidarr_FAQ#I_am_getting_an_error_Database_disk_image_is_malformed", e, fileName);
} }
catch (Exception e) catch (Exception e)
{ {

View file

@ -1,4 +1,4 @@
using System; using System;
using System.Text.RegularExpressions; using System.Text.RegularExpressions;
using NzbDrone.Common.Http; using NzbDrone.Common.Http;
using NzbDrone.Core.Datastore; using NzbDrone.Core.Datastore;
@ -34,12 +34,12 @@ namespace NzbDrone.Core.HealthCheck
private static string MakeWikiFragment(string message) private static string MakeWikiFragment(string message)
{ {
return "#" + CleanFragmentRegex.Replace(message.ToLower(), string.Empty).Replace(' ', '-'); return "#" + CleanFragmentRegex.Replace(message.ToLower(), string.Empty).Replace(' ', '_');
} }
private static HttpUri MakeWikiUrl(string fragment) private static HttpUri MakeWikiUrl(string fragment)
{ {
return new HttpUri("https://github.com/Lidarr/Lidarr/wiki/Health-checks") + new HttpUri(fragment); return new HttpUri("https://wiki.servarr.com/Lidarr_System") + new HttpUri(fragment);
} }
} }

View file

@ -28,7 +28,7 @@ namespace NzbDrone.Core.Notifications.CustomScript
public override string Name => "Custom Script"; public override string Name => "Custom Script";
public override string Link => "https://github.com/Lidarr/Lidarr/wiki/Custom-Post-Processing-Scripts"; public override string Link => "https://wiki.servarr.com/Lidarr_Settings#Connections";
public override ProviderMessage Message => new ProviderMessage("Testing will execute the script with the EventType set to Test, ensure your script handles this correctly", ProviderMessageType.Warning); public override ProviderMessage Message => new ProviderMessage("Testing will execute the script with the EventType set to Test, ensure your script handles this correctly", ProviderMessageType.Warning);

View file

@ -38,10 +38,10 @@ namespace NzbDrone.Core.Notifications.Twitter
AuthorizeNotification = "startOAuth"; AuthorizeNotification = "startOAuth";
} }
[FieldDefinition(0, Label = "Consumer Key", Privacy = PrivacyLevel.ApiKey, HelpText = "Consumer key from a Twitter application", HelpLink = "https://github.com/Lidarr/Lidarr/wiki/Twitter-Notifications")] [FieldDefinition(0, Label = "Consumer Key", Privacy = PrivacyLevel.ApiKey, HelpText = "Consumer key from a Twitter application", HelpLink = "https://wiki.servarr.com/Useful_Tools#Twitter_Connect")]
public string ConsumerKey { get; set; } public string ConsumerKey { get; set; }
[FieldDefinition(1, Label = "Consumer Secret", Privacy = PrivacyLevel.ApiKey, HelpText = "Consumer secret from a Twitter application", HelpLink = "https://github.com/Lidarr/Lidarr/wiki/Twitter-Notifications")] [FieldDefinition(1, Label = "Consumer Secret", Privacy = PrivacyLevel.ApiKey, HelpText = "Consumer secret from a Twitter application", HelpLink = "https://wiki.servarr.com/Useful_Tools#Twitter_Connect")]
public string ConsumerSecret { get; set; } public string ConsumerSecret { get; set; }
[FieldDefinition(2, Label = "Access Token", Privacy = PrivacyLevel.ApiKey, Advanced = true)] [FieldDefinition(2, Label = "Access Token", Privacy = PrivacyLevel.ApiKey, Advanced = true)]

View file

@ -16,7 +16,7 @@ namespace NzbDrone.Core.Notifications.Webhook
_proxy = proxy; _proxy = proxy;
} }
public override string Link => "https://github.com/Lidarr/Lidarr/wiki/Webhook"; public override string Link => "https://wiki.servarr.com/Lidarr_Settings#Connect";
public override void OnGrab(GrabMessage message) public override void OnGrab(GrabMessage message)
{ {