From f15e261448238579dc66abf61802e82409a70e61 Mon Sep 17 00:00:00 2001 From: 魏曹先生 <1992414357@qq.com> Date: Sun, 12 Apr 2026 01:11:29 +0800 Subject: Change code blocks in examples from rust to ignore --- mingling/src/example_docs.rs | 18 +++++++++--------- mingling/src/example_docs.rs.tmpl | 4 ++-- 2 files changed, 11 insertions(+), 11 deletions(-) (limited to 'mingling/src') diff --git a/mingling/src/example_docs.rs b/mingling/src/example_docs.rs index 79a0626..b0ef26e 100644 --- a/mingling/src/example_docs.rs +++ b/mingling/src/example_docs.rs @@ -8,7 +8,7 @@ /// ``` /// /// Cargo.toml -/// ``` +/// ```ignore /// [package] /// name = "example-basic" /// version = "0.0.1" @@ -20,7 +20,7 @@ /// ``` /// /// main.rs -/// ```rust +/// ```ignore /// use mingling::{ /// macros::{chain, dispatcher, gen_program, pack, r_println, renderer}, /// marker::NextProcess, @@ -79,7 +79,7 @@ pub mod example_basic {} /// ``` /// /// 2. Write `build.rs` to generate completion scripts at compile time -/// ```rust +/// ```ignore /// use mingling::build::{build_comp_scripts, build_comp_scripts_with_bin_name}; /// fn main() { /// // Generate completion scripts for the current program @@ -94,7 +94,7 @@ pub mod example_basic {} /// 4. Execute `cargo install --path ./`, then run the corresponding completion script in your shell /// /// Cargo.toml -/// ``` +/// ```ignore /// [package] /// name = "example-completion" /// version = "0.0.1" @@ -106,7 +106,7 @@ pub mod example_basic {} /// ``` /// /// main.rs -/// ```rust +/// ```ignore /// use mingling::{ /// AnyOutput, Groupped, ShellContext, Suggest, /// macros::{chain, completion, dispatcher, gen_program, r_println, renderer, suggest}, @@ -233,7 +233,7 @@ pub mod example_completion {} /// ``` /// /// Cargo.toml -/// ``` +/// ```ignore /// [package] /// name = "example-general-renderer" /// version = "0.0.1" @@ -249,7 +249,7 @@ pub mod example_completion {} /// ``` /// /// main.rs -/// ```rust +/// ```ignore /// use mingling::{ /// AnyOutput, Groupped, /// macros::{chain, dispatcher, gen_program, r_println, renderer}, @@ -317,7 +317,7 @@ pub mod example_general_renderer {} /// ``` /// /// Cargo.toml -/// ``` +/// ```ignore /// [package] /// name = "example-picker" /// version = "0.0.1" @@ -329,7 +329,7 @@ pub mod example_general_renderer {} /// ``` /// /// main.rs -/// ```rust +/// ```ignore /// use mingling::{ /// AnyOutput, /// macros::{chain, dispatcher, gen_program, pack, r_println, renderer}, diff --git a/mingling/src/example_docs.rs.tmpl b/mingling/src/example_docs.rs.tmpl index 5a32126..4cd0af0 100644 --- a/mingling/src/example_docs.rs.tmpl +++ b/mingling/src/example_docs.rs.tmpl @@ -6,12 +6,12 @@ <<>> /// /// Cargo.toml -/// ``` +/// ```ignore <<>> /// ``` /// /// main.rs -/// ```rust +/// ```ignore <<>> /// ``` pub mod <<>> {} -- cgit