diff --git a/crates/ruff_dev/src/generate_ty_options.rs b/crates/ruff_dev/src/generate_ty_options.rs index 4e4ab0a949..733af8b00a 100644 --- a/crates/ruff_dev/src/generate_ty_options.rs +++ b/crates/ruff_dev/src/generate_ty_options.rs @@ -144,8 +144,8 @@ fn emit_field(output: &mut String, name: &str, field: &OptionField, parents: &[S output.push('\n'); if let Some(deprecated) = &field.deprecated { - output.push_str("> [!WARN] \"Deprecated\"\n"); - output.push_str("> This option has been deprecated"); + output.push_str("!!! warning \"Deprecated\"\n"); + output.push_str(" This option has been deprecated"); if let Some(since) = deprecated.since { write!(output, " in {since}").unwrap(); diff --git a/crates/ty/docs/configuration.md b/crates/ty/docs/configuration.md index 0768f1b26a..edbea9c803 100644 --- a/crates/ty/docs/configuration.md +++ b/crates/ty/docs/configuration.md @@ -432,8 +432,8 @@ respect-ignore-files = false ### `root` -> [!WARN] "Deprecated" -> This option has been deprecated. Use `environment.root` instead. +!!! warning "Deprecated" + This option has been deprecated. Use `environment.root` instead. The root of the project, used for finding first-party modules.