2021-12-16 12:03:09 [WARN] (mdbook::preprocess::cmd): The command wasn't found, is the "search" preprocessor installed?
2021-12-16 12:03:09 [WARN] (mdbook::preprocess::cmd): Command: search
若将 command 改为 mdbook-search-chinese,则:
thread 'main' panicked at 'called `Result::unwrap()` on an `Err` value: Unable to deserialize the `RenderContext`
Caused by:
invalid type: map, expected a string at line 1 column 2', src/main.rs:41:56
stack backtrace:
0: rust_begin_unwind
at /rustc/a178d0322ce20e33eac124758e837cbd80a6f633/library/std/src/panicking.rs:515:5
1: core::panicking::panic_fmt
at /rustc/a178d0322ce20e33eac124758e837cbd80a6f633/library/core/src/panicking.rs:92:14
2: core::result::unwrap_failed
at /rustc/a178d0322ce20e33eac124758e837cbd80a6f633/library/core/src/result.rs:1355:5
3: core::result::Result<T,E>::unwrap
at /rustc/a178d0322ce20e33eac124758e837cbd80a6f633/library/core/src/result.rs:1037:23
4: mdbook_search_chinese::main
at ./mdbook-search-chinese/src/main.rs:41:19
5: core::ops::function::FnOnce::call_once
at /rustc/a178d0322ce20e33eac124758e837cbd80a6f633/library/core/src/ops/function.rs:227:5
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.
2021-12-16 12:04:34 [WARN] (mdbook::preprocess::cmd): Error writing the RenderContext to the backend, Broken pipe (os error 32)
2021-12-16 12:04:34 [ERROR] (mdbook::utils): Error: The "search" preprocessor exited unsuccessfully with exit status: 101 status
运行
mdbook-search-chinese install
后mdbook build
报错:若将
command
改为mdbook-search-chinese
,则: