diff options
| author | 魏曹先生 <1992414357@qq.com> | 2026-04-12 01:11:29 +0800 |
|---|---|---|
| committer | 魏曹先生 <1992414357@qq.com> | 2026-04-12 01:11:29 +0800 |
| commit | f15e261448238579dc66abf61802e82409a70e61 (patch) | |
| tree | 32e65968f047fda889df6d218d7909a6234d4e5d | |
| parent | 7c496151f571b872da523f4c46369751be6f4ca1 (diff) | |
Change code blocks in examples from rust to ignore
| -rw-r--r-- | examples/example-completion/src/main.rs | 2 | ||||
| -rw-r--r-- | mingling/src/example_docs.rs | 18 | ||||
| -rw-r--r-- | mingling/src/example_docs.rs.tmpl | 4 |
3 files changed, 12 insertions, 12 deletions
diff --git a/examples/example-completion/src/main.rs b/examples/example-completion/src/main.rs index cbbb7a8..a15ad84 100644 --- a/examples/example-completion/src/main.rs +++ b/examples/example-completion/src/main.rs @@ -10,7 +10,7 @@ //! ``` //! //! 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 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 @@ <<<example_header>>> /// /// Cargo.toml -/// ``` +/// ```ignore <<<example_import>>> /// ``` /// /// main.rs -/// ```rust +/// ```ignore <<<example_code>>> /// ``` pub mod <<<example_name>>> {} |
