Turn bare URLs into cliclable links (#9854)

This PR adds angle brackets to URLs, making them clickable when reading
documentation.
This commit is contained in:
Han Junghyuk 2023-07-31 05:50:25 +09:00 committed by GitHub
parent 154856066f
commit ba0f069c31
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -269,7 +269,7 @@ pub enum ShellError {
/// ///
/// ## Resolution /// ## Resolution
/// ///
/// It is very likely that this is a bug. Please file an issue at https://github.com/nushell/nushell/issues with relevant information. /// It is very likely that this is a bug. Please file an issue at <https://github.com/nushell/nushell/issues> with relevant information.
#[error("Nushell failed: {msg}.")] #[error("Nushell failed: {msg}.")]
#[diagnostic( #[diagnostic(
code(nu::shell::nushell_failed), code(nu::shell::nushell_failed),
@ -283,7 +283,7 @@ pub enum ShellError {
/// ///
/// ## Resolution /// ## Resolution
/// ///
/// It is very likely that this is a bug. Please file an issue at https://github.com/nushell/nushell/issues with relevant information. /// It is very likely that this is a bug. Please file an issue at <https://github.com/nushell/nushell/issues> with relevant information.
#[error("Nushell failed: {msg}.")] #[error("Nushell failed: {msg}.")]
#[diagnostic( #[diagnostic(
code(nu::shell::nushell_failed_spanned), code(nu::shell::nushell_failed_spanned),
@ -302,7 +302,7 @@ pub enum ShellError {
/// ///
/// ## Resolution /// ## Resolution
/// ///
/// It is very likely that this is a bug. Please file an issue at https://github.com/nushell/nushell/issues with relevant information. /// It is very likely that this is a bug. Please file an issue at <https://github.com/nushell/nushell/issues> with relevant information.
#[error("Nushell failed: {msg}.")] #[error("Nushell failed: {msg}.")]
#[diagnostic(code(nu::shell::nushell_failed_help))] #[diagnostic(code(nu::shell::nushell_failed_help))]
// Only use this one if Nushell completely falls over and hits a state that isn't possible or isn't recoverable // Only use this one if Nushell completely falls over and hits a state that isn't possible or isn't recoverable