From b1eda435a503bb5382aa7c24260b8860d268cf3a Mon Sep 17 00:00:00 2001 From: Erb3 <49862976+Erb3@users.noreply.github.com> Date: Mon, 21 Oct 2024 21:08:06 +0200 Subject: [PATCH] fix: update old docs links (#2845) - Markdown guide link to support article - API version deprecated error to new docs - Modpack permissions error to support article - Labrinth README links to new docs - App WebView2 link to support article --- apps/app/src/main.rs | 2 +- apps/labrinth/README.md | 2 +- apps/labrinth/src/queue/moderation.rs | 2 +- apps/labrinth/src/routes/mod.rs | 2 +- packages/ui/src/components/base/MarkdownEditor.vue | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/apps/app/src/main.rs b/apps/app/src/main.rs index 8f97fcd70..667a28130 100644 --- a/apps/app/src/main.rs +++ b/apps/app/src/main.rs @@ -317,7 +317,7 @@ fn main() { MessageDialog::new() .set_type(MessageType::Error) .set_title("Initialization error") - .set_text("Your Microsoft Edge WebView2 installation is corrupt.\n\nMicrosoft Edge WebView2 is required to run Modrinth App.\n\nLearn how to repair it at https://docs.modrinth.com/faq/app/webview2") + .set_text("Your Microsoft Edge WebView2 installation is corrupt.\n\nMicrosoft Edge WebView2 is required to run Modrinth App.\n\nLearn how to repair it at https://support.modrinth.com/en/articles/8797765-corrupted-microsoft-edge-webview2-installation") .show_alert() .unwrap(); diff --git a/apps/labrinth/README.md b/apps/labrinth/README.md index 9054e6f15..de6976a45 100644 --- a/apps/labrinth/README.md +++ b/apps/labrinth/README.md @@ -2,4 +2,4 @@ ## Modrinth's laboratory for its backend service & API! -For contributing information, please see the labrinth section of the [Modrinth contributing guide](https://docs.modrinth.com/docs/details/contributing/#labrinth-backend-and-api). For documentation on the API itself, see the [API Spec](https://docs.modrinth.com/api-spec/). +For contributing information, please see the labrinth section of the [Modrinth contributing guide](https://docs.modrinth.com/contributing/labrinth/). For documentation on the API itself, see the [API Spec](https://docs.modrinth.com/api/). diff --git a/apps/labrinth/src/queue/moderation.rs b/apps/labrinth/src/queue/moderation.rs index d31a2ebda..49eac5b16 100644 --- a/apps/labrinth/src/queue/moderation.rs +++ b/apps/labrinth/src/queue/moderation.rs @@ -145,7 +145,7 @@ impl ModerationMessage { ModerationMessage::NoPrimaryFile => "Please attach a file to this version. All files on Modrinth must have files associated with their versions.\n".to_string(), ModerationMessage::PackFilesNotAllowed { files, .. } => { let mut str = "".to_string(); - str.push_str("This pack redistributes copyrighted material. Please refer to [Modrinth's guide on obtaining modpack permissions](https://docs.modrinth.com/modpacks/permissions) for more information.\n\n"); + str.push_str("This pack redistributes copyrighted material. Please refer to [Modrinth's guide on obtaining modpack permissions](https://support.modrinth.com/en/articles/8797527-obtaining-modpack-permissions) for more information.\n\n"); let mut attribute_mods = Vec::new(); let mut no_mods = Vec::new(); diff --git a/apps/labrinth/src/routes/mod.rs b/apps/labrinth/src/routes/mod.rs index 38247d053..79d2cc4c6 100644 --- a/apps/labrinth/src/routes/mod.rs +++ b/apps/labrinth/src/routes/mod.rs @@ -69,7 +69,7 @@ pub fn root_config(cfg: &mut web::ServiceConfig) { Ok(req.into_response( HttpResponse::Gone() .content_type("application/json") - .body(r#"{"error":"api_deprecated","description":"You are using an application that uses an outdated version of Modrinth's API. Please either update it or switch to another application. For developers: https://docs.modrinth.com/docs/migrations/v1-to-v2/"}"#) + .body(r#"{"error":"api_deprecated","description":"You are using an application that uses an outdated version of Modrinth's API. Please either update it or switch to another application. For developers: https://docs.modrinth.com/api/#versioning"}"#) )) }.boxed_local() }) diff --git a/packages/ui/src/components/base/MarkdownEditor.vue b/packages/ui/src/components/base/MarkdownEditor.vue index 69896f119..66ee8d86b 100644 --- a/packages/ui/src/components/base/MarkdownEditor.vue +++ b/packages/ui/src/components/base/MarkdownEditor.vue @@ -237,7 +237,7 @@ >This editor supports Markdown formatting.