From 561e50f398e05d3603eb76b0f213293f0960a2d6 Mon Sep 17 00:00:00 2001 From: Denis Cornehl Date: Tue, 7 Apr 2026 07:44:41 +0200 Subject: [PATCH] set global alert to upcoming build-target change --- crates/bin/docs_rs_web/src/lib.rs | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/crates/bin/docs_rs_web/src/lib.rs b/crates/bin/docs_rs_web/src/lib.rs index 4ddbb8463..fcc834b10 100644 --- a/crates/bin/docs_rs_web/src/lib.rs +++ b/crates/bin/docs_rs_web/src/lib.rs @@ -32,12 +32,11 @@ pub use handlers::run_web_server; use page::GlobalAlert; // Warning message shown in the navigation bar of every page. Set to `None` to hide it. -pub(crate) static GLOBAL_ALERT: Option = None; -/* +// pub(crate) static GLOBAL_ALERT: Option = None; + pub(crate) static GLOBAL_ALERT: Option = Some(GlobalAlert { - url: "https://blog.rust-lang.org/2019/09/18/upcoming-docsrs-changes.html", - text: "Upcoming docs.rs breaking changes!", - css_class: "error", - fa_icon: "exclamation-triangle", + url: "https://blog.rust-lang.org/2026/04/04/docsrs-only-default-targets/", + text: "Upcoming changes to build targets!", + css_class: "warn", + fa_icon: crate::icons::IconTriangleExclamation, }); -*/